|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.common.notify.impl.BasicNotifierImpl org.eclipse.emf.ecore.impl.BasicEObjectImpl 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
public class 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
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.xsd.impl.XSDConcreteComponentImpl |
---|
XSDConcreteComponentImpl.XSDContentsEList |
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
---|
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl |
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
---|
BasicNotifierImpl.EAdapterList<E extends java.lang.Object & Adapter> |
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
InternalEObject.EStore |
Field Summary | |
---|---|
protected EList<XSDDiagnostic> |
allDiagnostics
The cached value of the ' All Diagnostics ' reference list |
protected EList<XSDAnnotation> |
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 static int |
ATTRIBUTE_FORM_DEFAULT_ESETFLAG
The flag representing whether the Attribute Form Default attribute has been set |
protected EList<XSDAttributeDeclaration> |
attributeDeclarations
The cached value of the ' Attribute Declarations ' reference list |
protected XSDForm |
attributeFormDefault
The cached value of the ' Attribute Form Default ' attribute |
protected EList<XSDAttributeGroupDefinition> |
attributeGroupDefinitions
The cached value of the ' Attribute Group Definitions ' reference list |
protected EList<XSDDisallowedSubstitutions> |
blockDefault
The cached value of the ' Block Default ' attribute list |
protected EList<XSDSchemaContent> |
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 static int |
ELEMENT_FORM_DEFAULT_ESETFLAG
The flag representing whether the Element Form Default attribute has been set |
protected EList<XSDElementDeclaration> |
elementDeclarations
The cached value of the ' Element Declarations ' reference list |
protected XSDForm |
elementFormDefault
The cached value of the ' Element Form Default ' attribute |
protected org.w3c.dom.events.EventListener |
eventListener
|
protected EList<XSDProhibitedSubstitutions> |
finalDefault
The cached value of the ' Final Default ' attribute list |
protected static ResourceSet |
globalResourceSet
|
protected boolean |
hasRetargetedNamespace
|
protected EList<XSDIdentityConstraintDefinition> |
identityConstraintDefinitions
The cached value of the ' Identity Constraint Definitions ' reference list |
protected EList<XSDSchema> |
incorporatedVersions
The cached value of the ' Incorporated Versions ' containment reference list |
protected java.util.List<XSDSchema> |
incorporatingSchemas
|
protected boolean |
isIncrementalUpdate
|
protected EList<XSDModelGroupDefinition> |
modelGroupDefinitions
The cached value of the ' Model Group Definitions ' reference list |
protected EList<XSDNotationDeclaration> |
notationDeclarations
The cached value of the ' Notation Declarations ' reference list |
protected java.lang.String |
pendingSchemaLocation
|
protected java.util.Map<java.lang.String,java.lang.String> |
qNamePrefixToNamespaceMap
|
protected java.util.Map<XSDComponent,XSDComponent> |
redefinitionMap
|
protected EList<XSDSchemaDirective> |
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.List<XSDSchemaImpl> |
schemasToRedefine
|
protected java.util.Map<java.lang.String,XSDSimpleTypeDefinition> |
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 EList<XSDTypeDefinition> |
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, forceResolve, INFORMATION, isReconciling, UNANALYZED, updatingDOM, WARNING, xsdContents |
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
---|
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY |
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
---|
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET |
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
EOPPOSITE_FEATURE_BASE |
Constructor Summary | |
---|---|
protected |
XSDSchemaImpl()
|
Method Summary | |
---|---|
protected void |
adoptContent(EReference eReference,
XSDConcreteComponent xsdConcreteComponent)
|
protected boolean |
analyze()
|
protected void |
changeAttribute(EAttribute eAttribute)
|
protected void |
changeReference(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 ResourceSet |
createResourceSet()
|
static XSDSchema |
createSchema(org.w3c.dom.Node node)
|
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType)
|
NotificationChain |
eInverseRemove(InternalEObject otherEnd,
int featureID,
NotificationChain msgs)
|
boolean |
eIsSet(int featureID)
|
void |
eSet(int featureID,
java.lang.Object newValue)
|
protected EClass |
eStaticClass()
|
void |
eUnset(int featureID)
|
EList<XSDDiagnostic> |
getAllDiagnostics()
|
EList<XSDAnnotation> |
getAnnotations()
|
EList<XSDAttributeDeclaration> |
getAttributeDeclarations()
|
XSDForm |
getAttributeFormDefault()
|
EList<XSDAttributeGroupDefinition> |
getAttributeGroupDefinitions()
|
EList<XSDDisallowedSubstitutions> |
getBlockDefault()
|
EList<XSDSchemaContent> |
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()
|
EList<XSDElementDeclaration> |
getElementDeclarations()
|
XSDForm |
getElementFormDefault()
|
protected org.w3c.dom.events.EventListener |
getEventListener()
|
EList<XSDProhibitedSubstitutions> |
getFinalDefault()
|
static ResourceSet |
getGlobalResourceSet()
|
EList<XSDIdentityConstraintDefinition> |
getIdentityConstraintDefinitions()
|
EList<XSDSchema> |
getIncorporatedVersions()
|
XSDSchema |
getMagicSchemaForSchema()
|
static XSDSchema |
getMagicSchemaForSchema(java.lang.String namespace)
|
EList<XSDModelGroupDefinition> |
getModelGroupDefinitions()
|
EList<XSDNotationDeclaration> |
getNotationDeclarations()
|
XSDSchema |
getOriginalVersion()
Returns the value of the 'Original Version' reference |
java.lang.String |
getPendingSchemaLocation()
|
java.util.Map<java.lang.String,java.lang.String> |
getQNamePrefixToNamespaceMap()
This returns the map defined by the xmlns attributes of the underlying XML representation. |
java.util.Map<XSDComponent,XSDComponent> |
getRedefinitionMap()
|
EList<XSDSchemaDirective> |
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.List<XSDSchemaImpl> |
getSchemasToRedefine()
|
java.util.Map<java.lang.String,XSDSimpleTypeDefinition> |
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()
|
EList<XSDTypeDefinition> |
getTypeDefinitions()
|
java.lang.String |
getVersion()
|
protected void |
handleReconciliation(java.util.List<XSDConcreteComponent> newContents,
java.util.List<XSDConcreteComponent> remainingContents)
|
protected void |
handleUnreconciledElement(org.w3c.dom.Element child,
java.util.List<XSDConcreteComponent> newContents,
java.util.List<XSDConcreteComponent> 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(EReference eReference,
XSDConcreteComponent xsdConcreteComponent)
|
protected void |
patch()
|
protected void |
patchContents()
|
void |
propogateComponents(XSDSchema otherXSDSchema)
|
protected void |
reconcileAttributes(org.w3c.dom.Element changedElement)
|
XSDSchema |
redefined(XSDRedefine xsdRedefine)
|
void |
reset()
Resets the effects of imports, includes, and redefines so that they will be reprocessed. |
protected void |
reset(java.util.List<? extends XSDConcreteComponent> components)
|
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(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<XSDSchema> |
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. |
void |
update(boolean force)
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,
EList<? extends XSDNamedComponent> xsdNamedComponents)
|
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
---|
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI |
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, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
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 static final int ATTRIBUTE_FORM_DEFAULT_ESETFLAG
protected static final XSDForm ELEMENT_FORM_DEFAULT_EDEFAULT
Element Form Default
' attribute.
getElementFormDefault()
protected XSDForm elementFormDefault
Element Form Default
' attribute.
getElementFormDefault()
protected static final int ELEMENT_FORM_DEFAULT_ESETFLAG
protected EList<XSDProhibitedSubstitutions> finalDefault
Final Default
' attribute list.
getFinalDefault()
protected EList<XSDDisallowedSubstitutions> 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 EList<XSDSchemaContent> contents
Contents
' containment reference list.
getContents()
protected EList<XSDElementDeclaration> elementDeclarations
Element Declarations
' reference list.
getElementDeclarations()
protected EList<XSDAttributeDeclaration> attributeDeclarations
Attribute Declarations
' reference list.
getAttributeDeclarations()
protected EList<XSDAttributeGroupDefinition> attributeGroupDefinitions
Attribute Group Definitions
' reference list.
getAttributeGroupDefinitions()
protected EList<XSDTypeDefinition> typeDefinitions
Type Definitions
' reference list.
getTypeDefinitions()
protected EList<XSDModelGroupDefinition> modelGroupDefinitions
Model Group Definitions
' reference list.
getModelGroupDefinitions()
protected EList<XSDIdentityConstraintDefinition> identityConstraintDefinitions
Identity Constraint Definitions
' reference list.
getIdentityConstraintDefinitions()
protected EList<XSDNotationDeclaration> notationDeclarations
Notation Declarations
' reference list.
getNotationDeclarations()
protected EList<XSDAnnotation> annotations
Annotations
' reference list.
getAnnotations()
protected EList<XSDDiagnostic> allDiagnostics
All Diagnostics
' reference list.
getAllDiagnostics()
protected EList<XSDSchemaDirective> referencingDirectives
Referencing Directives
' reference list.
getReferencingDirectives()
protected EList<XSDSchema> incorporatedVersions
Incorporated Versions
' containment reference list.
getIncorporatedVersions()
protected static 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<java.lang.String,java.lang.String> qNamePrefixToNamespaceMap
protected java.lang.String schemaForSchemaQNamePrefix
protected boolean hasRetargetedNamespace
protected java.util.Map<java.lang.String,XSDSimpleTypeDefinition> simpleTypeIdMap
protected java.util.List<XSDSchema> incorporatingSchemas
protected org.w3c.dom.events.EventListener eventListener
protected org.w3c.dom.Node deletionNode
protected boolean isIncrementalUpdate
protected java.lang.String pendingSchemaLocation
protected java.util.List<XSDSchemaImpl> schemasToRedefine
protected java.util.Map<XSDComponent,XSDComponent> 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 ResourceSet getGlobalResourceSet()
public static 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 EClass eStaticClass()
eStaticClass
in class XSDScopeImpl
public org.w3c.dom.Document getDocument()
getDocument
in interface XSDSchema
XSDSchema.setDocument(Document)
,
XSDPackage.getXSDSchema_Document()
public void setDocument(org.w3c.dom.Document newDocument)
setDocument
in interface XSDSchema
newDocument
- the new value of the 'Document' attribute.XSDSchema.getDocument()
public java.lang.String getSchemaLocation()
getSchemaLocation
in interface XSDSchema
XSDSchema.setSchemaLocation(String)
,
XSDPackage.getXSDSchema_SchemaLocation()
public void setSchemaLocation(java.lang.String newSchemaLocation)
setSchemaLocation
in interface XSDSchema
newSchemaLocation
- the new value of the 'Schema Location' attribute.XSDSchema.getSchemaLocation()
public java.lang.String getTargetNamespace()
getTargetNamespace
in interface XSDSchema
XSDSchema.setTargetNamespace(String)
,
XSDPackage.getXSDSchema_TargetNamespace()
public void setTargetNamespace(java.lang.String newTargetNamespace)
setTargetNamespace
in interface XSDSchema
newTargetNamespace
- the new value of the 'Target Namespace' attribute.XSDSchema.getTargetNamespace()
public XSDForm getAttributeFormDefault()
getAttributeFormDefault
in interface XSDSchema
XSDForm
,
XSDSchema.isSetAttributeFormDefault()
,
XSDSchema.unsetAttributeFormDefault()
,
XSDSchema.setAttributeFormDefault(XSDForm)
,
XSDPackage.getXSDSchema_AttributeFormDefault()
public void setAttributeFormDefault(XSDForm newAttributeFormDefault)
setAttributeFormDefault
in interface XSDSchema
newAttributeFormDefault
- the new value of the 'Attribute Form Default' attribute.XSDForm
,
XSDSchema.isSetAttributeFormDefault()
,
XSDSchema.unsetAttributeFormDefault()
,
XSDSchema.getAttributeFormDefault()
public void unsetAttributeFormDefault()
unsetAttributeFormDefault
in interface XSDSchema
XSDSchema.isSetAttributeFormDefault()
,
XSDSchema.getAttributeFormDefault()
,
XSDSchema.setAttributeFormDefault(XSDForm)
public boolean isSetAttributeFormDefault()
isSetAttributeFormDefault
in interface XSDSchema
XSDSchema.unsetAttributeFormDefault()
,
XSDSchema.getAttributeFormDefault()
,
XSDSchema.setAttributeFormDefault(XSDForm)
public XSDForm getElementFormDefault()
getElementFormDefault
in interface XSDSchema
XSDForm
,
XSDSchema.isSetElementFormDefault()
,
XSDSchema.unsetElementFormDefault()
,
XSDSchema.setElementFormDefault(XSDForm)
,
XSDPackage.getXSDSchema_ElementFormDefault()
public void setElementFormDefault(XSDForm newElementFormDefault)
setElementFormDefault
in interface XSDSchema
newElementFormDefault
- the new value of the 'Element Form Default' attribute.XSDForm
,
XSDSchema.isSetElementFormDefault()
,
XSDSchema.unsetElementFormDefault()
,
XSDSchema.getElementFormDefault()
public void unsetElementFormDefault()
unsetElementFormDefault
in interface XSDSchema
XSDSchema.isSetElementFormDefault()
,
XSDSchema.getElementFormDefault()
,
XSDSchema.setElementFormDefault(XSDForm)
public boolean isSetElementFormDefault()
isSetElementFormDefault
in interface XSDSchema
XSDSchema.unsetElementFormDefault()
,
XSDSchema.getElementFormDefault()
,
XSDSchema.setElementFormDefault(XSDForm)
public EList<XSDProhibitedSubstitutions> getFinalDefault()
getFinalDefault
in interface XSDSchema
XSDProhibitedSubstitutions
,
XSDSchema.isSetFinalDefault()
,
XSDSchema.unsetFinalDefault()
,
XSDPackage.getXSDSchema_FinalDefault()
public void unsetFinalDefault()
unsetFinalDefault
in interface XSDSchema
XSDSchema.isSetFinalDefault()
,
XSDSchema.getFinalDefault()
public boolean isSetFinalDefault()
isSetFinalDefault
in interface XSDSchema
XSDSchema.unsetFinalDefault()
,
XSDSchema.getFinalDefault()
public EList<XSDDisallowedSubstitutions> getBlockDefault()
getBlockDefault
in interface XSDSchema
XSDDisallowedSubstitutions
,
XSDSchema.isSetBlockDefault()
,
XSDSchema.unsetBlockDefault()
,
XSDPackage.getXSDSchema_BlockDefault()
public void unsetBlockDefault()
unsetBlockDefault
in interface XSDSchema
XSDSchema.isSetBlockDefault()
,
XSDSchema.getBlockDefault()
public boolean isSetBlockDefault()
isSetBlockDefault
in interface XSDSchema
XSDSchema.unsetBlockDefault()
,
XSDSchema.getBlockDefault()
public java.lang.String getVersion()
getVersion
in interface XSDSchema
XSDSchema.setVersion(String)
,
XSDPackage.getXSDSchema_Version()
public void setVersion(java.lang.String newVersion)
setVersion
in interface XSDSchema
newVersion
- the new value of the 'Version' attribute.XSDSchema.getVersion()
public EList<XSDSchemaContent> getContents()
getContents
in interface XSDSchema
XSDPackage.getXSDSchema_Contents()
public EList<XSDElementDeclaration> getElementDeclarations()
getElementDeclarations
in interface XSDSchema
XSDPackage.getXSDSchema_ElementDeclarations()
public EList<XSDAttributeDeclaration> getAttributeDeclarations()
getAttributeDeclarations
in interface XSDSchema
XSDPackage.getXSDSchema_AttributeDeclarations()
public EList<XSDAttributeGroupDefinition> getAttributeGroupDefinitions()
getAttributeGroupDefinitions
in interface XSDSchema
XSDPackage.getXSDSchema_AttributeGroupDefinitions()
public EList<XSDTypeDefinition> getTypeDefinitions()
getTypeDefinitions
in interface XSDSchema
XSDPackage.getXSDSchema_TypeDefinitions()
public EList<XSDModelGroupDefinition> getModelGroupDefinitions()
getModelGroupDefinitions
in interface XSDSchema
XSDPackage.getXSDSchema_ModelGroupDefinitions()
public EList<XSDIdentityConstraintDefinition> getIdentityConstraintDefinitions()
getIdentityConstraintDefinitions
in interface XSDSchema
XSDPackage.getXSDSchema_IdentityConstraintDefinitions()
public EList<XSDNotationDeclaration> getNotationDeclarations()
getNotationDeclarations
in interface XSDSchema
XSDPackage.getXSDSchema_NotationDeclarations()
public EList<XSDAnnotation> getAnnotations()
getAnnotations
in interface XSDSchema
XSDPackage.getXSDSchema_Annotations()
public EList<XSDDiagnostic> getAllDiagnostics()
getAllDiagnostics
in interface XSDSchema
XSDPackage.getXSDSchema_AllDiagnostics()
public EList<XSDSchemaDirective> getReferencingDirectives()
getReferencingDirectives
in interface 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
XSDPackage.getXSDSchema_OriginalVersion()
public EList<XSDSchema> getIncorporatedVersions()
getIncorporatedVersions
in interface 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
XSDPackage.getXSDSchema_RootVersion()
public java.util.Map<java.lang.String,java.lang.String> getQNamePrefixToNamespaceMap()
getQNamePrefixToNamespaceMap
in interface XSDSchema
XSDSchema.getSchemaForSchemaQNamePrefix()
,
XSDSchema.getSchemaForSchemaNamespace()
public java.lang.String getSchemaForSchemaQNamePrefix()
getQNamePrefixToNamespaceMap()
.
getSchemaForSchemaQNamePrefix
in interface 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
qNamePrefix
- the new schema for schema QName prefix.XSDSchema.getSchemaForSchemaQNamePrefix()
,
XSDSchema.getQNamePrefixToNamespaceMap()
public java.lang.String getSchemaForSchemaNamespace()
getSchemaForSchemaNamespace
in interface XSDSchema
XSDSchema.getQNamePrefixToNamespaceMap()
,
XSDSchema.getSchemaForSchemaQNamePrefix()
public java.lang.String getStringBlockDefault()
XSDSchema
Block Default
' attribute list.
getStringBlockDefault
in interface XSDSchema
XSDSchema.getBlockDefault()
,
XSDSchema.setStringBlockDefault(java.lang.String)
public void setStringBlockDefault(java.lang.String blockDefault)
XSDSchema
Block Default
' attribute list.
setStringBlockDefault
in interface 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
XSDSchema.getFinalDefault()
,
XSDSchema.setStringFinalDefault(java.lang.String)
public void setStringFinalDefault(java.lang.String finalDefault)
XSDSchema
Final Default
' attribute list.
setStringFinalDefault
in interface 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 patchContents()
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.
The effect of calling this for a component not directly or indirectly contained by a schema
is undefined, and is likely to result in null pointer exceptions.
validate
in interface XSDConcreteComponent
validate
in class XSDConcreteComponentImpl
XSDConcreteComponent.getDiagnostics()
,
XSDConcreteComponent.clearDiagnostics()
public void validateNoDuplicates(java.lang.String componentNoun, EList<? extends XSDNamedComponent> xsdNamedComponents)
protected void updateSortedList(XSDNamedComponent xsdNamedComponent)
protected void adoptContent(EReference eReference, XSDConcreteComponent xsdConcreteComponent)
adoptContent
in class XSDConcreteComponentImpl
protected void orphanContent(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<XSDConcreteComponent> newContents, java.util.List<XSDConcreteComponent> remainingContents)
handleUnreconciledElement
in class XSDConcreteComponentImpl
protected void handleReconciliation(java.util.List<XSDConcreteComponent> newContents, java.util.List<XSDConcreteComponent> remainingContents)
handleReconciliation
in class XSDConcreteComponentImpl
public XSDConcreteComponent getCorrespondingComponent(org.w3c.dom.Node node)
XSDSchema
getCorrespondingComponent
in interface XSDSchema
node
- the node to find.
XSDConcreteComponent.getElement()
public java.util.Map<java.lang.String,XSDSimpleTypeDefinition> 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
XSDSimpleTypeDefinition
XSDSchema.getSchemaForSchema()
public java.util.Collection<XSDSchema> resolveSchema(java.lang.String namespace)
protected XSDNamedComponent resolveNamedComponent(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
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
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
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
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
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
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
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
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
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(EAttribute eAttribute)
changeAttribute
in class XSDConcreteComponentImpl
protected void changeReference(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
element
- 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
XSDPackage.getXSDSchema_SchemaForSchema()
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
eInverseRemove
in class XSDConcreteComponentImpl
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface InternalEObject
eGet
in class XSDConcreteComponentImpl
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface InternalEObject
eSet
in class XSDConcreteComponentImpl
public void eUnset(int featureID)
eUnset
in interface InternalEObject
eUnset
in class XSDConcreteComponentImpl
public boolean eIsSet(int featureID)
eIsSet
in interface InternalEObject
eIsSet
in class XSDConcreteComponentImpl
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
XSDConcreteComponent.updateElement()
public void setIncrementalUpdate(boolean isIncrementalUpdate)
XSDSchema
true
will also result in an update.
setIncrementalUpdate
in interface XSDSchema
isIncrementalUpdate
- the new value.XSDSchema.isIncrementalUpdate()
,
XSDSchema.update()
public boolean isIncrementalUpdate()
XSDSchema
isIncrementalUpdate
in interface XSDSchema
XSDSchema.setIncrementalUpdate(boolean)
,
XSDSchema.update()
public void update()
XSDSchema
update
in interface XSDSchema
XSDSchema.isIncrementalUpdate()
,
XSDSchema.update()
public void update(boolean force)
XSDSchema
force
is true
even previously resolved QNames are resolved again.
update
in interface XSDSchema
force
- whether previously resolved names should be resolved again.XSDSchema.isIncrementalUpdate()
,
XSDSchema.update()
public void reset()
XSDSchema
reset
in interface XSDSchema
reset
in class XSDConcreteComponentImpl
XSDSchema.update()
protected void reset(java.util.List<? extends XSDConcreteComponent> components)
public java.lang.String getPendingSchemaLocation()
public java.util.List<XSDSchemaImpl> getSchemasToRedefine()
public java.util.Map<XSDComponent,XSDComponent> 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
deep
- whether the clone should be deep.shareDOM
- whether the clone should share the original DOM
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |