|
|||||||||
PREV CLASS SOURCE NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.emf.common.notify.impl.NotifierImpl | +--org.eclipse.emf.ecore.impl.EObjectImpl | +--org.eclipse.xsd.impl.XSDConcreteComponentImpl | +--org.eclipse.xsd.impl.XSDComponentImpl | +--org.eclipse.xsd.impl.XSDScopeImpl | +--org.eclipse.xsd.impl.XSDSchemaImpl
An implementation of the model object 'Schema'.
The following features are implemented:
Document
Schema Location
Target Namespace
Attribute Form Default
Element Form Default
Final Default
Block Default
Version
Contents
Element Declarations
Attribute Declarations
Attribute Group Definitions
Type Definitions
Model Group Definitions
Identity Constraint Definitions
Notation Declarations
Annotations
All Diagnostics
Referencing Directives
Root Version
Original Version
Incorporated Versions
Schema For Schema
Inner classes inherited from class org.eclipse.xsd.impl.XSDConcreteComponentImpl |
XSDConcreteComponentImpl.XSDContentsEList |
Inner classes inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
org.eclipse.emf.ecore.impl.EObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.EObjectImpl.EPropertiesHolderImpl |
Field Summary | |
protected org.eclipse.emf.common.util.EList |
allDiagnostics
The cached value of the ' All Diagnostics ' reference list. |
protected org.eclipse.emf.common.util.EList |
annotations
The cached value of the ' Annotations ' reference list. |
protected static XSDForm |
ATTRIBUTE_FORM_DEFAULT_EDEFAULT
The default value of the ' Attribute Form Default ' attribute. |
protected org.eclipse.emf.common.util.EList |
attributeDeclarations
The cached value of the ' Attribute Declarations ' reference list. |
protected XSDForm |
attributeFormDefault
The cached value of the ' Attribute Form Default ' attribute. |
protected boolean |
attributeFormDefaultESet
This is true if the Attribute Form Default attribute has been set. |
protected org.eclipse.emf.common.util.EList |
attributeGroupDefinitions
The cached value of the ' Attribute Group Definitions ' reference list. |
protected org.eclipse.emf.common.util.EList |
blockDefault
The cached value of the ' Block Default ' attribute list. |
protected org.eclipse.emf.common.util.EList |
contents
The cached value of the ' Contents ' containment reference list. |
protected org.w3c.dom.Node |
deletionNode
|
protected org.w3c.dom.Document |
document
The cached value of the ' Document ' attribute. |
protected static org.w3c.dom.Document |
DOCUMENT_EDEFAULT
The default value of the ' Document ' attribute. |
protected static XSDForm |
ELEMENT_FORM_DEFAULT_EDEFAULT
The default value of the ' Element Form Default ' attribute. |
protected org.eclipse.emf.common.util.EList |
elementDeclarations
The cached value of the ' Element Declarations ' reference list. |
protected XSDForm |
elementFormDefault
The cached value of the ' Element Form Default ' attribute. |
protected boolean |
elementFormDefaultESet
This is true if the Element Form Default attribute has been set. |
protected org.w3c.dom.events.EventListener |
eventListener
|
protected org.eclipse.emf.common.util.EList |
finalDefault
The cached value of the ' Final Default ' attribute list. |
protected static org.eclipse.emf.ecore.resource.ResourceSet |
globalResourceSet
|
protected boolean |
hasRetargetedNamespace
|
protected org.eclipse.emf.common.util.EList |
identityConstraintDefinitions
The cached value of the ' Identity Constraint Definitions ' reference list. |
protected org.eclipse.emf.common.util.EList |
incorporatedVersions
The cached value of the ' Incorporated Versions ' containment reference list. |
protected boolean |
isIncrementalUpdate
|
protected org.eclipse.emf.common.util.EList |
modelGroupDefinitions
The cached value of the ' Model Group Definitions ' reference list. |
protected org.eclipse.emf.common.util.EList |
notationDeclarations
The cached value of the ' Notation Declarations ' reference list. |
protected java.util.Map |
qNamePrefixToNamespaceMap
|
protected java.util.Map |
redefinitionMap
|
protected org.eclipse.emf.common.util.EList |
referencingDirectives
The cached value of the ' Referencing Directives ' reference list. |
protected static java.lang.String |
SCHEMA_LOCATION_EDEFAULT
The default value of the ' Schema Location ' attribute. |
protected java.lang.String |
schemaForSchemaQNamePrefix
|
protected java.lang.String |
schemaLocation
The cached value of the ' Schema Location ' attribute. |
protected java.util.Map |
simpleTypeIdMap
|
protected static java.lang.String |
TARGET_NAMESPACE_EDEFAULT
The default value of the ' Target Namespace ' attribute. |
protected java.lang.String |
targetNamespace
The cached value of the ' Target Namespace ' attribute. |
protected org.eclipse.emf.common.util.EList |
typeDefinitions
The cached value of the ' Type Definitions ' reference list. |
protected java.lang.String |
version
The cached value of the ' Version ' attribute. |
protected static java.lang.String |
VERSION_EDEFAULT
The default value of the ' Version ' attribute. |
protected static XSDSchema |
xsdMagicSchemaForSchema1999
|
protected static XSDSchema |
xsdMagicSchemaForSchema2000_10
|
protected static XSDSchema |
xsdMagicSchemaForSchema2001
|
protected static XSDSchema |
xsdSchemaForSchema1999
|
protected static XSDSchema |
xsdSchemaForSchema2000_10
|
protected static XSDSchema |
xsdSchemaForSchema2001
|
protected static XSDSchema |
xsdSchemaInstance2001
|
Fields inherited from class org.eclipse.xsd.impl.XSDConcreteComponentImpl |
ANALYZED, ANALYZING, CIRCULAR, diagnostics, element, ELEMENT_EDEFAULT, ERROR, FATAL, INFORMATION, isReconciling, UNANALYZED, updatingDOM, WARNING, xsdContents |
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
eContainer, eContainerFeatureID, ELAST_EOBJECT_FLAG, eProperties |
Fields inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl |
eAdapters, EDELIVER, eFlags, ELAST_NOTIFIER_FLAG |
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject |
EOPPOSITE_FEATURE_BASE |
Constructor Summary | |
protected |
XSDSchemaImpl()
|
Method Summary | |
protected void |
adoptContent(org.eclipse.emf.ecore.EReference eReference,
XSDConcreteComponent xsdConcreteComponent)
|
protected boolean |
analyze()
|
protected void |
changeAttribute(org.eclipse.emf.ecore.EAttribute eAttribute)
|
protected void |
changeReference(org.eclipse.emf.ecore.EReference eReference)
|
XSDConcreteComponent |
cloneConcreteComponent(boolean deep,
boolean shareDOM)
Creates a clone of the component. |
org.w3c.dom.Element |
createElement()
|
static XSDSchema |
createMetaSchema(org.w3c.dom.Node node)
|
static org.eclipse.emf.ecore.resource.ResourceSet |
createResourceSet()
|
static XSDSchema |
createSchema(org.w3c.dom.Node node)
|
java.lang.Object |
eGet(org.eclipse.emf.ecore.EStructuralFeature eFeature,
boolean resolve)
|
org.eclipse.emf.common.notify.NotificationChain |
eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
java.lang.Class baseClass,
org.eclipse.emf.common.notify.NotificationChain msgs)
|
boolean |
eIsSet(org.eclipse.emf.ecore.EStructuralFeature eFeature)
|
void |
eSet(org.eclipse.emf.ecore.EStructuralFeature eFeature,
java.lang.Object newValue)
|
protected org.eclipse.emf.ecore.EClass |
eStaticClass()
|
void |
eUnset(org.eclipse.emf.ecore.EStructuralFeature eFeature)
|
org.eclipse.emf.common.util.EList |
getAllDiagnostics()
|
org.eclipse.emf.common.util.EList |
getAnnotations()
|
org.eclipse.emf.common.util.EList |
getAttributeDeclarations()
|
XSDForm |
getAttributeFormDefault()
|
org.eclipse.emf.common.util.EList |
getAttributeGroupDefinitions()
|
org.eclipse.emf.common.util.EList |
getBlockDefault()
|
org.eclipse.emf.common.util.EList |
getContents()
|
XSDConcreteComponent |
getCorrespondingComponent(org.w3c.dom.Node node)
Returns the best concrete component that corresponds to the given node. |
org.w3c.dom.Node |
getDeletionNode()
|
org.w3c.dom.Document |
getDocument()
|
org.eclipse.emf.common.util.EList |
getElementDeclarations()
|
XSDForm |
getElementFormDefault()
|
protected org.w3c.dom.events.EventListener |
getEventListener()
|
org.eclipse.emf.common.util.EList |
getFinalDefault()
|
static org.eclipse.emf.ecore.resource.ResourceSet |
getGlobalResourceSet()
|
org.eclipse.emf.common.util.EList |
getIdentityConstraintDefinitions()
|
org.eclipse.emf.common.util.EList |
getIncorporatedVersions()
|
XSDSchema |
getMagicSchemaForSchema()
|
static XSDSchema |
getMagicSchemaForSchema(java.lang.String namespace)
|
org.eclipse.emf.common.util.EList |
getModelGroupDefinitions()
|
org.eclipse.emf.common.util.EList |
getNotationDeclarations()
|
XSDSchema |
getOriginalVersion()
Returns the value of the 'Original Version' reference. |
java.util.Map |
getQNamePrefixToNamespaceMap()
This returns the map defined by the xmlns attributes of the underlying XML representation. |
java.util.Map |
getRedefinitionMap()
|
org.eclipse.emf.common.util.EList |
getReferencingDirectives()
|
XSDSchema |
getRootVersion()
Returns the value of the 'Root Version' reference. |
XSDSchema |
getSchemaForSchema()
Returns the value of the 'Schema For Schema' reference. |
static XSDSchema |
getSchemaForSchema(java.lang.String namespace)
|
java.lang.String |
getSchemaForSchemaNamespace()
This returns (String)getQNamePrefixToNamespaceMap().get(getSchemaForSchemaQNamePrefix()); you can't set this directly. |
java.lang.String |
getSchemaForSchemaQNamePrefix()
This returns the QName prefix used to reference the schema for schema; it must be a key in getQNamePrefixToNamespaceMap() . |
static XSDSchema |
getSchemaInstance(java.lang.String namespace)
|
java.lang.String |
getSchemaLocation()
|
java.util.Map |
getSimpleTypeIdMap()
Returns a map from String ID to XSDSimpleTypeDefinition
based on the IDs in the DOM representation. |
java.lang.String |
getStringBlockDefault()
Returns the String value of the ' Block Default ' attribute list. |
java.lang.String |
getStringFinalDefault()
Returns the String value of the ' Final Default ' attribute list. |
java.lang.String |
getTargetNamespace()
|
org.eclipse.emf.common.util.EList |
getTypeDefinitions()
|
java.lang.String |
getVersion()
|
protected void |
handleReconciliation(java.util.List newContents,
java.util.List remainingContents)
|
protected void |
handleUnreconciledElement(org.w3c.dom.Element child,
java.util.List newContents,
java.util.List remainingContents)
|
boolean |
hasRetargetedNamespace()
|
XSDSchema |
imported(XSDImport xsdImport)
|
XSDSchema |
included(XSDInclude xsdInclude)
|
protected void |
incorporate(XSDSchemaCompositor xsdSchemaCompositor)
|
boolean |
isIncrementalUpdate()
Returns whether the schema will incrementally resolve QNames and perform analysis after each edit change. |
boolean |
isSetAttributeFormDefault()
|
boolean |
isSetBlockDefault()
|
boolean |
isSetElementFormDefault()
|
boolean |
isSetFinalDefault()
|
protected void |
orphanContent(org.eclipse.emf.ecore.EReference eReference,
XSDConcreteComponent xsdConcreteComponent)
|
protected void |
patch()
|
void |
propogateComponents(XSDSchema otherXSDSchema)
|
protected void |
reconcileAttributes(org.w3c.dom.Element changedElement)
|
XSDSchema |
redefined(XSDRedefine xsdRedefine)
|
XSDAttributeDeclaration |
resolveAttributeDeclaration(java.lang.String namespace,
java.lang.String localName)
Returns the resolved attribute declaration of the given namespace and name . |
XSDAttributeGroupDefinition |
resolveAttributeGroupDefinition(java.lang.String namespace,
java.lang.String localName)
Returns the resolved attribute group definition the given namespace and name . |
XSDComplexTypeDefinition |
resolveComplexTypeDefinition(java.lang.String namespace,
java.lang.String localName)
Returns the resolved complex type definition of the given namespace and name . |
XSDElementDeclaration |
resolveElementDeclaration(java.lang.String namespace,
java.lang.String localName)
Returns the resolved element declaration of the given namespace and name . |
XSDIdentityConstraintDefinition |
resolveIdentityConstraintDefinition(java.lang.String namespace,
java.lang.String localName)
Returns the resolved identity constraint definition of the given namespace and name . |
XSDModelGroupDefinition |
resolveModelGroupDefinition(java.lang.String namespace,
java.lang.String localName)
Returns the resolved model group definition of the given namespace and name . |
protected XSDNamedComponent |
resolveNamedComponent(org.eclipse.emf.ecore.EReference namedComponentsRefReference,
java.lang.String namespace,
java.lang.String localName)
This is a helper method for searching for a name in one of the schemas named component relations. |
XSDNotationDeclaration |
resolveNotationDeclaration(java.lang.String namespace,
java.lang.String localName)
Returns the resolved notation declaration of the given namespace and name . |
java.util.Collection |
resolveSchema(java.lang.String namespace)
This returns set of schemas with the given namespace as it's target namespace. |
XSDSimpleTypeDefinition |
resolveSimpleTypeDefinition(java.lang.String namespace,
java.lang.String localName)
Returns the resolved simple type definition of the given namespace and name . |
XSDTypeDefinition |
resolveTypeDefinition(java.lang.String namespace,
java.lang.String localName)
Returns the resolved type definition of the given namespace and name . |
void |
setAttributeFormDefault(XSDForm newAttributeFormDefault)
|
void |
setDocument(org.w3c.dom.Document newDocument)
|
void |
setElement(org.w3c.dom.Element element)
Sets the value of the ' Element ' attribute. |
void |
setElementFormDefault(XSDForm newElementFormDefault)
|
void |
setIncrementalUpdate(boolean isIncrementalUpdate)
Sets whether the schema will incrementally resolve QNames and perform analysis after each edit change. |
void |
setSchemaForSchemaQNamePrefix(java.lang.String qNamePrefix)
This sets the QName prefix used to reference the schema for schema; it must be a key in getQNamePrefixToNamespaceMap() that maps to a valid schema for schema namespace. |
void |
setSchemaLocation(java.lang.String newSchemaLocation)
|
void |
setStringBlockDefault(java.lang.String blockDefault)
Returns the String value of the ' Block Default ' attribute list. |
void |
setStringFinalDefault(java.lang.String finalDefault)
Set the String value of the ' Final Default ' attribute list. |
void |
setTargetNamespace(java.lang.String newTargetNamespace)
|
void |
setVersion(java.lang.String newVersion)
|
java.lang.String |
toString()
|
protected void |
traverseToRootForAnalysis()
|
protected void |
traverseToRootForPatching()
|
void |
unsetAttributeFormDefault()
|
void |
unsetBlockDefault()
|
void |
unsetElementFormDefault()
|
void |
unsetFinalDefault()
|
void |
update()
Resolves QNames and performs analysis. |
org.w3c.dom.Document |
updateDocument()
Ensures that the document will be set to an instance that can be used to create a DOM serialization. |
protected void |
updateSortedList(XSDNamedComponent xsdNamedComponent)
|
void |
validate()
Validates whether this component conforms to the constraints defined in the XML Schema standard. |
void |
validateNoDuplicates(java.lang.String componentNoun,
org.eclipse.emf.common.util.EList xsdNamedComponents)
|
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eClass, eContainer, eContainerFeatureID, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicFeatureID, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eHasSettings, eInternalResource, eInverseAdd, eIsProxy, eProperties, eProxyURI, eResource, eSetClass, eSetProxyURI, eSetResource, eSetting, eSettingDelegate, eSettings, eStaticFeatureCount |
Methods inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl |
eAdapters, eDeliver, eSetDeliver |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
eAllContents, eClass, eContainer, eContainmentFeature, eContents, eCrossReferences, eGet, eIsProxy, eResource |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
eAdapters, eDeliver, eNotify, eSetDeliver |
Field Detail |
protected static final org.w3c.dom.Document DOCUMENT_EDEFAULT
Document
' attribute.
getDocument()
protected org.w3c.dom.Document document
Document
' attribute.
getDocument()
protected static final java.lang.String SCHEMA_LOCATION_EDEFAULT
Schema Location
' attribute.
getSchemaLocation()
protected java.lang.String schemaLocation
Schema Location
' attribute.
getSchemaLocation()
protected static final java.lang.String TARGET_NAMESPACE_EDEFAULT
Target Namespace
' attribute.
getTargetNamespace()
protected java.lang.String targetNamespace
Target Namespace
' attribute.
getTargetNamespace()
protected static final XSDForm ATTRIBUTE_FORM_DEFAULT_EDEFAULT
Attribute Form Default
' attribute.
getAttributeFormDefault()
protected XSDForm attributeFormDefault
Attribute Form Default
' attribute.
getAttributeFormDefault()
protected boolean attributeFormDefaultESet
protected static final XSDForm ELEMENT_FORM_DEFAULT_EDEFAULT
Element Form Default
' attribute.
getElementFormDefault()
protected XSDForm elementFormDefault
Element Form Default
' attribute.
getElementFormDefault()
protected boolean elementFormDefaultESet
protected org.eclipse.emf.common.util.EList finalDefault
Final Default
' attribute list.
getFinalDefault()
protected org.eclipse.emf.common.util.EList blockDefault
Block Default
' attribute list.
getBlockDefault()
protected static final java.lang.String VERSION_EDEFAULT
Version
' attribute.
getVersion()
protected java.lang.String version
Version
' attribute.
getVersion()
protected org.eclipse.emf.common.util.EList contents
Contents
' containment reference list.
getContents()
protected org.eclipse.emf.common.util.EList elementDeclarations
Element Declarations
' reference list.
getElementDeclarations()
protected org.eclipse.emf.common.util.EList attributeDeclarations
Attribute Declarations
' reference list.
getAttributeDeclarations()
protected org.eclipse.emf.common.util.EList attributeGroupDefinitions
Attribute Group Definitions
' reference list.
getAttributeGroupDefinitions()
protected org.eclipse.emf.common.util.EList typeDefinitions
Type Definitions
' reference list.
getTypeDefinitions()
protected org.eclipse.emf.common.util.EList modelGroupDefinitions
Model Group Definitions
' reference list.
getModelGroupDefinitions()
protected org.eclipse.emf.common.util.EList identityConstraintDefinitions
Identity Constraint Definitions
' reference list.
getIdentityConstraintDefinitions()
protected org.eclipse.emf.common.util.EList notationDeclarations
Notation Declarations
' reference list.
getNotationDeclarations()
protected org.eclipse.emf.common.util.EList annotations
Annotations
' reference list.
getAnnotations()
protected org.eclipse.emf.common.util.EList allDiagnostics
All Diagnostics
' reference list.
getAllDiagnostics()
protected org.eclipse.emf.common.util.EList referencingDirectives
Referencing Directives
' reference list.
getReferencingDirectives()
protected org.eclipse.emf.common.util.EList incorporatedVersions
Incorporated Versions
' containment reference list.
getIncorporatedVersions()
protected static org.eclipse.emf.ecore.resource.ResourceSet globalResourceSet
protected static XSDSchema xsdMagicSchemaForSchema2001
protected static XSDSchema xsdSchemaForSchema2001
protected static XSDSchema xsdSchemaInstance2001
protected static XSDSchema xsdMagicSchemaForSchema2000_10
protected static XSDSchema xsdSchemaForSchema2000_10
protected static XSDSchema xsdMagicSchemaForSchema1999
protected static XSDSchema xsdSchemaForSchema1999
protected java.util.Map qNamePrefixToNamespaceMap
protected java.lang.String schemaForSchemaQNamePrefix
protected boolean hasRetargetedNamespace
protected java.util.Map simpleTypeIdMap
protected org.w3c.dom.events.EventListener eventListener
protected org.w3c.dom.Node deletionNode
protected boolean isIncrementalUpdate
protected java.util.Map redefinitionMap
Constructor Detail |
protected XSDSchemaImpl()
Method Detail |
public static XSDSchema createSchema(org.w3c.dom.Node node)
public static XSDSchema createMetaSchema(org.w3c.dom.Node node)
public static org.eclipse.emf.ecore.resource.ResourceSet getGlobalResourceSet()
public static org.eclipse.emf.ecore.resource.ResourceSet createResourceSet()
public static XSDSchema getMagicSchemaForSchema(java.lang.String namespace)
public static XSDSchema getSchemaForSchema(java.lang.String namespace)
public static XSDSchema getSchemaInstance(java.lang.String namespace)
protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass
in class XSDScopeImpl
public org.w3c.dom.Document getDocument()
getDocument
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDSchema.setDocument(Document)
,
XSDPackage.getXSDSchema_Document()
public void setDocument(org.w3c.dom.Document newDocument)
setDocument
in interface XSDSchema
org.eclipse.xsd.XSDSchema
value
- the new value of the 'Document' attribute.XSDSchema.getDocument()
public java.lang.String getSchemaLocation()
getSchemaLocation
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDSchema.setSchemaLocation(String)
,
XSDPackage.getXSDSchema_SchemaLocation()
public void setSchemaLocation(java.lang.String newSchemaLocation)
setSchemaLocation
in interface XSDSchema
org.eclipse.xsd.XSDSchema
value
- the new value of the 'Schema Location' attribute.XSDSchema.getSchemaLocation()
public java.lang.String getTargetNamespace()
getTargetNamespace
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDSchema.setTargetNamespace(String)
,
XSDPackage.getXSDSchema_TargetNamespace()
public void setTargetNamespace(java.lang.String newTargetNamespace)
setTargetNamespace
in interface XSDSchema
org.eclipse.xsd.XSDSchema
value
- the new value of the 'Target Namespace' attribute.XSDSchema.getTargetNamespace()
public XSDForm getAttributeFormDefault()
getAttributeFormDefault
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDForm
,
XSDSchema.isSetAttributeFormDefault()
,
XSDSchema.unsetAttributeFormDefault()
,
XSDSchema.setAttributeFormDefault(XSDForm)
,
XSDPackage.getXSDSchema_AttributeFormDefault()
public void setAttributeFormDefault(XSDForm newAttributeFormDefault)
setAttributeFormDefault
in interface XSDSchema
org.eclipse.xsd.XSDSchema
value
- the new value of the 'Attribute Form Default' attribute.XSDForm
,
XSDSchema.isSetAttributeFormDefault()
,
XSDSchema.unsetAttributeFormDefault()
,
XSDSchema.getAttributeFormDefault()
public void unsetAttributeFormDefault()
unsetAttributeFormDefault
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDSchema.isSetAttributeFormDefault()
,
XSDSchema.getAttributeFormDefault()
,
XSDSchema.setAttributeFormDefault(XSDForm)
public boolean isSetAttributeFormDefault()
isSetAttributeFormDefault
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDSchema.unsetAttributeFormDefault()
,
XSDSchema.getAttributeFormDefault()
,
XSDSchema.setAttributeFormDefault(XSDForm)
public XSDForm getElementFormDefault()
getElementFormDefault
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDForm
,
XSDSchema.isSetElementFormDefault()
,
XSDSchema.unsetElementFormDefault()
,
XSDSchema.setElementFormDefault(XSDForm)
,
XSDPackage.getXSDSchema_ElementFormDefault()
public void setElementFormDefault(XSDForm newElementFormDefault)
setElementFormDefault
in interface XSDSchema
org.eclipse.xsd.XSDSchema
value
- the new value of the 'Element Form Default' attribute.XSDForm
,
XSDSchema.isSetElementFormDefault()
,
XSDSchema.unsetElementFormDefault()
,
XSDSchema.getElementFormDefault()
public void unsetElementFormDefault()
unsetElementFormDefault
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDSchema.isSetElementFormDefault()
,
XSDSchema.getElementFormDefault()
,
XSDSchema.setElementFormDefault(XSDForm)
public boolean isSetElementFormDefault()
isSetElementFormDefault
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDSchema.unsetElementFormDefault()
,
XSDSchema.getElementFormDefault()
,
XSDSchema.setElementFormDefault(XSDForm)
public org.eclipse.emf.common.util.EList getFinalDefault()
getFinalDefault
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDProhibitedSubstitutions
,
XSDSchema.isSetFinalDefault()
,
XSDSchema.unsetFinalDefault()
,
XSDPackage.getXSDSchema_FinalDefault()
public void unsetFinalDefault()
unsetFinalDefault
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDSchema.isSetFinalDefault()
,
XSDSchema.getFinalDefault()
public boolean isSetFinalDefault()
isSetFinalDefault
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDSchema.unsetFinalDefault()
,
XSDSchema.getFinalDefault()
public org.eclipse.emf.common.util.EList getBlockDefault()
getBlockDefault
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDDisallowedSubstitutions
,
XSDSchema.isSetBlockDefault()
,
XSDSchema.unsetBlockDefault()
,
XSDPackage.getXSDSchema_BlockDefault()
public void unsetBlockDefault()
unsetBlockDefault
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDSchema.isSetBlockDefault()
,
XSDSchema.getBlockDefault()
public boolean isSetBlockDefault()
isSetBlockDefault
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDSchema.unsetBlockDefault()
,
XSDSchema.getBlockDefault()
public java.lang.String getVersion()
getVersion
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDSchema.setVersion(String)
,
XSDPackage.getXSDSchema_Version()
public void setVersion(java.lang.String newVersion)
setVersion
in interface XSDSchema
org.eclipse.xsd.XSDSchema
value
- the new value of the 'Version' attribute.XSDSchema.getVersion()
public org.eclipse.emf.common.util.EList getContents()
getContents
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDPackage.getXSDSchema_Contents()
public org.eclipse.emf.common.util.EList getElementDeclarations()
getElementDeclarations
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDPackage.getXSDSchema_ElementDeclarations()
public org.eclipse.emf.common.util.EList getAttributeDeclarations()
getAttributeDeclarations
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDPackage.getXSDSchema_AttributeDeclarations()
public org.eclipse.emf.common.util.EList getAttributeGroupDefinitions()
getAttributeGroupDefinitions
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDPackage.getXSDSchema_AttributeGroupDefinitions()
public org.eclipse.emf.common.util.EList getTypeDefinitions()
getTypeDefinitions
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDPackage.getXSDSchema_TypeDefinitions()
public org.eclipse.emf.common.util.EList getModelGroupDefinitions()
getModelGroupDefinitions
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDPackage.getXSDSchema_ModelGroupDefinitions()
public org.eclipse.emf.common.util.EList getIdentityConstraintDefinitions()
getIdentityConstraintDefinitions
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDPackage.getXSDSchema_IdentityConstraintDefinitions()
public org.eclipse.emf.common.util.EList getNotationDeclarations()
getNotationDeclarations
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDPackage.getXSDSchema_NotationDeclarations()
public org.eclipse.emf.common.util.EList getAnnotations()
getAnnotations
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDPackage.getXSDSchema_Annotations()
public org.eclipse.emf.common.util.EList getAllDiagnostics()
getAllDiagnostics
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDPackage.getXSDSchema_AllDiagnostics()
public org.eclipse.emf.common.util.EList getReferencingDirectives()
getReferencingDirectives
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDPackage.getXSDSchema_ReferencingDirectives()
public boolean hasRetargetedNamespace()
public XSDSchema getOriginalVersion()
XSDSchema
This represents the schema from which an incorporated version
originates.
The root version
has itself as its original version.
getOriginalVersion
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDPackage.getXSDSchema_OriginalVersion()
public org.eclipse.emf.common.util.EList getIncorporatedVersions()
getIncorporatedVersions
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDSchemaCompositor.getIncorporatedSchema()
,
XSDPackage.getXSDSchema_IncorporatedVersions()
public XSDSchema getRootVersion()
XSDSchema
This walks the original versions
until it hits one that has no original version.
getRootVersion
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDPackage.getXSDSchema_RootVersion()
public java.util.Map getQNamePrefixToNamespaceMap()
getQNamePrefixToNamespaceMap
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDSchema.getSchemaForSchemaQNamePrefix()
,
XSDSchema.getSchemaForSchemaNamespace()
public java.lang.String getSchemaForSchemaQNamePrefix()
getQNamePrefixToNamespaceMap()
.getSchemaForSchemaQNamePrefix
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDSchema.setSchemaForSchemaQNamePrefix(java.lang.String)
,
XSDSchema.getQNamePrefixToNamespaceMap()
public void setSchemaForSchemaQNamePrefix(java.lang.String qNamePrefix)
getQNamePrefixToNamespaceMap()
that maps to a valid schema for schema namespace.
It can also be used to rename the prefix, one it's established.setSchemaForSchemaQNamePrefix
in interface XSDSchema
org.eclipse.xsd.XSDSchema
qNamePrefix
- the new schema for schema QName prefix.XSDSchema.getSchemaForSchemaQNamePrefix()
,
XSDSchema.getQNamePrefixToNamespaceMap()
public java.lang.String getSchemaForSchemaNamespace()
getSchemaForSchemaNamespace
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDSchema.getQNamePrefixToNamespaceMap()
,
XSDSchema.getSchemaForSchemaQNamePrefix()
public java.lang.String getStringBlockDefault()
XSDSchema
Block Default
' attribute list.
getStringBlockDefault
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDSchema.getBlockDefault()
,
XSDSchema.setStringBlockDefault(java.lang.String)
public void setStringBlockDefault(java.lang.String blockDefault)
XSDSchema
Block Default
' attribute list.
setStringBlockDefault
in interface XSDSchema
org.eclipse.xsd.XSDSchema
blockDefault
- the new value of the 'Block Default' attribute list.XSDSchema.getBlockDefault()
,
XSDSchema.getStringBlockDefault()
public java.lang.String getStringFinalDefault()
XSDSchema
Final Default
' attribute list.
getStringFinalDefault
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDSchema.getFinalDefault()
,
XSDSchema.setStringFinalDefault(java.lang.String)
public void setStringFinalDefault(java.lang.String finalDefault)
XSDSchema
Final Default
' attribute list.
setStringFinalDefault
in interface XSDSchema
org.eclipse.xsd.XSDSchema
finalDefault
- the new value of the 'Final Default' attribute list.XSDSchema.getFinalDefault()
,
XSDSchema.getStringFinalDefault()
public org.w3c.dom.Element createElement()
createElement
in class XSDConcreteComponentImpl
protected void traverseToRootForPatching()
traverseToRootForPatching
in class XSDConcreteComponentImpl
protected void patch()
patch
in class XSDConcreteComponentImpl
protected void traverseToRootForAnalysis()
traverseToRootForAnalysis
in class XSDConcreteComponentImpl
protected boolean analyze()
analyze
in class XSDConcreteComponentImpl
public void validate()
XSDConcreteComponent
Diagnostics
are produced to report any problems.validate
in interface XSDConcreteComponent
validate
in class XSDConcreteComponentImpl
org.eclipse.xsd.XSDConcreteComponent
XSDConcreteComponent.getDiagnostics()
,
XSDConcreteComponent.clearDiagnostics()
public void validateNoDuplicates(java.lang.String componentNoun, org.eclipse.emf.common.util.EList xsdNamedComponents)
protected void updateSortedList(XSDNamedComponent xsdNamedComponent)
protected void adoptContent(org.eclipse.emf.ecore.EReference eReference, XSDConcreteComponent xsdConcreteComponent)
adoptContent
in class XSDConcreteComponentImpl
protected void orphanContent(org.eclipse.emf.ecore.EReference eReference, XSDConcreteComponent xsdConcreteComponent)
orphanContent
in class XSDConcreteComponentImpl
protected void reconcileAttributes(org.w3c.dom.Element changedElement)
reconcileAttributes
in class XSDConcreteComponentImpl
protected void handleUnreconciledElement(org.w3c.dom.Element child, java.util.List newContents, java.util.List remainingContents)
handleUnreconciledElement
in class XSDConcreteComponentImpl
protected void handleReconciliation(java.util.List newContents, java.util.List remainingContents)
handleReconciliation
in class XSDConcreteComponentImpl
public XSDConcreteComponent getCorrespondingComponent(org.w3c.dom.Node node)
XSDSchema
getCorrespondingComponent
in interface XSDSchema
org.eclipse.xsd.XSDSchema
node
- the node to find.XSDConcreteComponent.getElement()
public java.util.Map getSimpleTypeIdMap()
XSDSchema
XSDSimpleTypeDefinition
based on the IDs in the DOM representation.
For the schema for schema
,
this represents the
built-in datatypes.getSimpleTypeIdMap
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDSimpleTypeDefinition
XSDSchema.getSchemaForSchema()
public java.util.Collection resolveSchema(java.lang.String namespace)
protected XSDNamedComponent resolveNamedComponent(org.eclipse.emf.ecore.EReference namedComponentsRefReference, java.lang.String namespace, java.lang.String localName)
public XSDAttributeDeclaration resolveAttributeDeclaration(java.lang.String namespace, java.lang.String localName)
XSDConcreteComponent
namespace
and name
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.resolveAttributeDeclaration
in interface XSDConcreteComponent
resolveAttributeDeclaration
in class XSDConcreteComponentImpl
org.eclipse.xsd.XSDConcreteComponent
namespace
- the namespace to resolve.localName
- the name to resolve.XSDConcreteComponent.resolveAttributeDeclarationURI(java.lang.String)
,
XSDConcreteComponent.resolveAttributeDeclaration(java.lang.String)
,
XSDNamedComponent.getTargetNamespace()
,
XSDNamedComponent.getName()
public XSDAttributeGroupDefinition resolveAttributeGroupDefinition(java.lang.String namespace, java.lang.String localName)
XSDConcreteComponent
namespace
and name
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.resolveAttributeGroupDefinition
in interface XSDConcreteComponent
resolveAttributeGroupDefinition
in class XSDConcreteComponentImpl
org.eclipse.xsd.XSDConcreteComponent
namespace
- the namespace to resolve.localName
- the name to resolve.XSDConcreteComponent.resolveAttributeGroupDefinitionURI(java.lang.String)
,
XSDConcreteComponent.resolveAttributeGroupDefinition(java.lang.String)
,
XSDNamedComponent.getTargetNamespace()
,
XSDNamedComponent.getName()
public XSDElementDeclaration resolveElementDeclaration(java.lang.String namespace, java.lang.String localName)
XSDConcreteComponent
namespace
and name
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.resolveElementDeclaration
in interface XSDConcreteComponent
resolveElementDeclaration
in class XSDConcreteComponentImpl
org.eclipse.xsd.XSDConcreteComponent
namespace
- the namespace to resolve.localName
- the name to resolve.XSDConcreteComponent.resolveElementDeclarationURI(java.lang.String)
,
XSDConcreteComponent.resolveElementDeclaration(java.lang.String)
,
XSDNamedComponent.getTargetNamespace()
,
XSDNamedComponent.getName()
public XSDTypeDefinition resolveTypeDefinition(java.lang.String namespace, java.lang.String localName)
XSDConcreteComponent
namespace
and name
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.resolveTypeDefinition
in interface XSDConcreteComponent
resolveTypeDefinition
in class XSDConcreteComponentImpl
org.eclipse.xsd.XSDConcreteComponent
namespace
- the namespace to resolve.localName
- the name to resolve.XSDConcreteComponent.resolveTypeDefinitionURI(java.lang.String)
,
XSDConcreteComponent.resolveTypeDefinition(java.lang.String)
,
XSDNamedComponent.getTargetNamespace()
,
XSDNamedComponent.getName()
public XSDSimpleTypeDefinition resolveSimpleTypeDefinition(java.lang.String namespace, java.lang.String localName)
XSDConcreteComponent
namespace
and name
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.resolveSimpleTypeDefinition
in interface XSDConcreteComponent
resolveSimpleTypeDefinition
in class XSDConcreteComponentImpl
org.eclipse.xsd.XSDConcreteComponent
namespace
- the namespace to resolve.localName
- the name to resolve.XSDConcreteComponent.resolveSimpleTypeDefinitionURI(java.lang.String)
,
XSDConcreteComponent.resolveSimpleTypeDefinition(java.lang.String)
,
XSDNamedComponent.getTargetNamespace()
,
XSDNamedComponent.getName()
public XSDComplexTypeDefinition resolveComplexTypeDefinition(java.lang.String namespace, java.lang.String localName)
XSDConcreteComponent
namespace
and name
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.resolveComplexTypeDefinition
in interface XSDConcreteComponent
resolveComplexTypeDefinition
in class XSDConcreteComponentImpl
org.eclipse.xsd.XSDConcreteComponent
namespace
- the namespace to resolve.localName
- the name to resolve.XSDConcreteComponent.resolveComplexTypeDefinitionURI(java.lang.String)
,
XSDConcreteComponent.resolveComplexTypeDefinition(java.lang.String)
,
XSDNamedComponent.getTargetNamespace()
,
XSDNamedComponent.getName()
public XSDModelGroupDefinition resolveModelGroupDefinition(java.lang.String namespace, java.lang.String localName)
XSDConcreteComponent
namespace
and name
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.resolveModelGroupDefinition
in interface XSDConcreteComponent
resolveModelGroupDefinition
in class XSDConcreteComponentImpl
org.eclipse.xsd.XSDConcreteComponent
namespace
- the namespace to resolve.localName
- the name to resolve.XSDConcreteComponent.resolveModelGroupDefinitionURI(java.lang.String)
,
XSDConcreteComponent.resolveModelGroupDefinition(java.lang.String)
,
XSDNamedComponent.getTargetNamespace()
,
XSDNamedComponent.getName()
public XSDIdentityConstraintDefinition resolveIdentityConstraintDefinition(java.lang.String namespace, java.lang.String localName)
XSDConcreteComponent
namespace
and name
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.resolveIdentityConstraintDefinition
in interface XSDConcreteComponent
resolveIdentityConstraintDefinition
in class XSDConcreteComponentImpl
org.eclipse.xsd.XSDConcreteComponent
namespace
- the namespace to resolve.localName
- the name to resolve.XSDConcreteComponent.resolveIdentityConstraintDefinitionURI(java.lang.String)
,
XSDConcreteComponent.resolveIdentityConstraintDefinition(java.lang.String)
,
XSDNamedComponent.getTargetNamespace()
,
XSDNamedComponent.getName()
public XSDNotationDeclaration resolveNotationDeclaration(java.lang.String namespace, java.lang.String localName)
XSDConcreteComponent
namespace
and name
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.resolveNotationDeclaration
in interface XSDConcreteComponent
resolveNotationDeclaration
in class XSDConcreteComponentImpl
org.eclipse.xsd.XSDConcreteComponent
namespace
- the namespace to resolve.localName
- the name to resolve.XSDConcreteComponent.resolveNotationDeclarationURI(java.lang.String)
,
XSDConcreteComponent.resolveNotationDeclaration(java.lang.String)
,
XSDNamedComponent.getTargetNamespace()
,
XSDNamedComponent.getName()
protected void changeAttribute(org.eclipse.emf.ecore.EAttribute eAttribute)
changeAttribute
in class XSDConcreteComponentImpl
protected void changeReference(org.eclipse.emf.ecore.EReference eReference)
changeReference
in class XSDConcreteComponentImpl
public void setElement(org.w3c.dom.Element element)
XSDConcreteComponent
Element
' attribute.
setElement
in interface XSDConcreteComponent
setElement
in class XSDConcreteComponentImpl
org.eclipse.xsd.XSDConcreteComponent
value
- the new value of the 'Element' attribute.XSDConcreteComponent.getElement()
public XSDSchema getSchemaForSchema()
XSDSchema
This represents the
'schema for schemas'.
It is computed from the schema for schema namespace
and should typically not be set directly.
getSchemaForSchema
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDPackage.getXSDSchema_SchemaForSchema()
public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, java.lang.Class baseClass, org.eclipse.emf.common.notify.NotificationChain msgs)
eInverseRemove
in class XSDScopeImpl
public java.lang.Object eGet(org.eclipse.emf.ecore.EStructuralFeature eFeature, boolean resolve)
eGet
in interface org.eclipse.emf.ecore.EObject
eGet
in class XSDScopeImpl
public void eSet(org.eclipse.emf.ecore.EStructuralFeature eFeature, java.lang.Object newValue)
eSet
in interface org.eclipse.emf.ecore.EObject
eSet
in class XSDScopeImpl
public void eUnset(org.eclipse.emf.ecore.EStructuralFeature eFeature)
eUnset
in interface org.eclipse.emf.ecore.EObject
eUnset
in class XSDScopeImpl
public boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature eFeature)
eIsSet
in interface org.eclipse.emf.ecore.EObject
eIsSet
in class XSDScopeImpl
public java.lang.String toString()
toString
in class XSDConcreteComponentImpl
public XSDSchema getMagicSchemaForSchema()
public org.w3c.dom.Node getDeletionNode()
protected org.w3c.dom.events.EventListener getEventListener()
public org.w3c.dom.Document updateDocument()
XSDSchema
document
will be set to an instance that can be used to create a DOM serialization.updateDocument
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDConcreteComponent.updateElement()
public void setIncrementalUpdate(boolean isIncrementalUpdate)
XSDSchema
true
will also result in an update.setIncrementalUpdate
in interface XSDSchema
org.eclipse.xsd.XSDSchema
isIncrementalUpdate
- the new value.XSDSchema.isIncrementalUpdate()
,
XSDSchema.update()
public boolean isIncrementalUpdate()
XSDSchema
isIncrementalUpdate
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDSchema.setIncrementalUpdate(boolean)
,
XSDSchema.update()
public void update()
XSDSchema
update
in interface XSDSchema
org.eclipse.xsd.XSDSchema
XSDSchema.isIncrementalUpdate()
,
XSDSchema.update()
public java.util.Map getRedefinitionMap()
public XSDSchema imported(XSDImport xsdImport)
public void propogateComponents(XSDSchema otherXSDSchema)
public XSDSchema redefined(XSDRedefine xsdRedefine)
public XSDSchema included(XSDInclude xsdInclude)
protected void incorporate(XSDSchemaCompositor xsdSchemaCompositor)
public XSDConcreteComponent cloneConcreteComponent(boolean deep, boolean shareDOM)
XSDConcreteComponent
cloneConcreteComponent
in interface XSDConcreteComponent
cloneConcreteComponent
in class XSDConcreteComponentImpl
org.eclipse.xsd.XSDConcreteComponent
deep
- whether the clone should be deep.shareDOM
- whether the clone should share the original DOM
|
Copyright 2001-2003 IBM Corporation and others. All Rights Reserved. |
||||||||
PREV CLASS SOURCE NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |