org.eclipse.jpt.jaxb.core.context
Interface XmlRootElement

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IResourcePart, JavaContextNode, JaxbContextNode, JaxbNode, Model

public interface XmlRootElement
extends JavaContextNode

Represents a JAXB xml root element. (A class with either an explicit @XmlRootElement annotation)

Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

Since:
3.0
Version:
3.0

Field Summary
static java.lang.String SPECIFIED_NAME_PROPERTY
          String constant associated with changes to the specified name
static java.lang.String SPECIFIED_NAMESPACE_PROPERTY
          String constant associated with changes to the specified namespace
 
Method Summary
 java.lang.String getDefaultName()
          Return the default name
 java.lang.String getDefaultNamespace()
          Return the default namespace
 java.lang.String getName()
          Return the specified name or the default type name if it is not specified
 java.lang.String getNamespace()
          Return the specified namespace or the default namespace if it is not specified
 java.lang.String getSpecifiedName()
          Return the specified name or null if it is not specified
 java.lang.String getSpecifiedNamespace()
          Return the specified namespace or null if it is not specified
 void setSpecifiedName(java.lang.String name)
          Set the name, null to unspecify (use the default)
 void setSpecifiedNamespace(java.lang.String namespace)
          Set the namespace, null to unspecify (use the default)
 
Methods inherited from interface org.eclipse.jpt.jaxb.core.context.java.JavaContextNode
getJavaCompletionProposals, getValidationTextRange, validate
 
Methods inherited from interface org.eclipse.jpt.jaxb.core.context.JaxbContextNode
getContextRoot, getResourceType, synchronizeWithResourceModel, update
 
Methods inherited from interface org.eclipse.jpt.jaxb.core.JaxbNode
getJaxbProject, getParent, stateChanged
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.common.core.IResourcePart
getResource
 

Field Detail

SPECIFIED_NAME_PROPERTY

static final java.lang.String SPECIFIED_NAME_PROPERTY
String constant associated with changes to the specified name

See Also:
Constant Field Values

SPECIFIED_NAMESPACE_PROPERTY

static final java.lang.String SPECIFIED_NAMESPACE_PROPERTY
String constant associated with changes to the specified namespace

See Also:
Constant Field Values
Method Detail

getName

java.lang.String getName()
Return the specified name or the default type name if it is not specified


getSpecifiedName

java.lang.String getSpecifiedName()
Return the specified name or null if it is not specified


setSpecifiedName

void setSpecifiedName(java.lang.String name)
Set the name, null to unspecify (use the default)


getDefaultName

java.lang.String getDefaultName()
Return the default name


getNamespace

java.lang.String getNamespace()
Return the specified namespace or the default namespace if it is not specified


getSpecifiedNamespace

java.lang.String getSpecifiedNamespace()
Return the specified namespace or null if it is not specified


setSpecifiedNamespace

void setSpecifiedNamespace(java.lang.String namespace)
Set the namespace, null to unspecify (use the default)


getDefaultNamespace

java.lang.String getDefaultNamespace()
Return the default namespace