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

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

public interface XmlSchema
extends JavaContextNode

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 DEFAULT_LOCATION
           
static java.lang.String LOCATION_PROPERTY
           
static java.lang.String SPECIFIED_ATTRIBUTE_FORM_DEFAULT_PROPERTY
          String constant associated with changes to the specified attribute form default
static java.lang.String SPECIFIED_ELEMENT_FORM_DEFAULT_PROPERTY
          String constant associated with changes to the specified attribute form default
static java.lang.String SPECIFIED_NAMESPACE_PROPERTY
          String constant associated with changes to the specified namespace
static java.lang.String XML_NS_PREFIXES_LIST
           
 
Method Summary
 XmlNs addXmlNsPrefix(int index)
           
 XmlNsForm getAttributeFormDefault()
          Return the specified attribute form default or XmlNsForm.UNSET (default value)
 XmlNsForm getElementFormDefault()
          Return the specified element form default or XmlNsForm.UNSET (default value)
 java.lang.String getLocation()
          Corresponds to the XmlSchema annotation location element
 java.lang.String getNamespace()
          Return the specified namespace or "" (default value)
 XmlNsForm getSpecifiedAttributeFormDefault()
          Return the specified attribute form default, null if it is not specified
 XmlNsForm getSpecifiedElementFormDefault()
          Return the specified element form default, null if it is not specified
 java.lang.String getSpecifiedNamespace()
          Return the specified namespace, null if it is not specified
 org.eclipse.jpt.common.utility.internal.iterables.ListIterable<XmlNs> getXmlNsPrefixes()
           
 int getXmlNsPrefixesSize()
           
 void moveXmlNsPrefix(int targetIndex, int sourceIndex)
           
 void removeXmlNsPrefix(int index)
           
 void removeXmlNsPrefix(XmlNs xmlNsPrefix)
           
 void setLocation(java.lang.String location)
           
 void setSpecifiedAttributeFormDefault(XmlNsForm attributeFormDefault)
          Set the attribute form default, null to unspecify
 void setSpecifiedElementFormDefault(XmlNsForm elementFormDefault)
          Set the element form default, null to unspecify
 void setSpecifiedNamespace(java.lang.String namespace)
          Set the namespace, null to unspecify
 
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_NAMESPACE_PROPERTY

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

See Also:
Constant Field Values

LOCATION_PROPERTY

static final java.lang.String LOCATION_PROPERTY
See Also:
Constant Field Values

DEFAULT_LOCATION

static final java.lang.String DEFAULT_LOCATION
See Also:
Constant Field Values

SPECIFIED_ATTRIBUTE_FORM_DEFAULT_PROPERTY

static final java.lang.String SPECIFIED_ATTRIBUTE_FORM_DEFAULT_PROPERTY
String constant associated with changes to the specified attribute form default

See Also:
Constant Field Values

SPECIFIED_ELEMENT_FORM_DEFAULT_PROPERTY

static final java.lang.String SPECIFIED_ELEMENT_FORM_DEFAULT_PROPERTY
String constant associated with changes to the specified attribute form default

See Also:
Constant Field Values

XML_NS_PREFIXES_LIST

static final java.lang.String XML_NS_PREFIXES_LIST
See Also:
Constant Field Values
Method Detail

getNamespace

java.lang.String getNamespace()
Return the specified namespace or "" (default value)


getSpecifiedNamespace

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


setSpecifiedNamespace

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


getLocation

java.lang.String getLocation()
Corresponds to the XmlSchema annotation location element


setLocation

void setLocation(java.lang.String location)

getAttributeFormDefault

XmlNsForm getAttributeFormDefault()
Return the specified attribute form default or XmlNsForm.UNSET (default value)


getSpecifiedAttributeFormDefault

XmlNsForm getSpecifiedAttributeFormDefault()
Return the specified attribute form default, null if it is not specified


setSpecifiedAttributeFormDefault

void setSpecifiedAttributeFormDefault(XmlNsForm attributeFormDefault)
Set the attribute form default, null to unspecify


getElementFormDefault

XmlNsForm getElementFormDefault()
Return the specified element form default or XmlNsForm.UNSET (default value)


getSpecifiedElementFormDefault

XmlNsForm getSpecifiedElementFormDefault()
Return the specified element form default, null if it is not specified


setSpecifiedElementFormDefault

void setSpecifiedElementFormDefault(XmlNsForm elementFormDefault)
Set the element form default, null to unspecify


getXmlNsPrefixes

org.eclipse.jpt.common.utility.internal.iterables.ListIterable<XmlNs> getXmlNsPrefixes()

getXmlNsPrefixesSize

int getXmlNsPrefixesSize()

addXmlNsPrefix

XmlNs addXmlNsPrefix(int index)

removeXmlNsPrefix

void removeXmlNsPrefix(int index)

removeXmlNsPrefix

void removeXmlNsPrefix(XmlNs xmlNsPrefix)

moveXmlNsPrefix

void moveXmlNsPrefix(int targetIndex,
                     int sourceIndex)