public class XSDParticleImpl extends XSDComplexTypeContentImpl implements XSDParticle
The following features are implemented:
Modifier and Type | Class and Description |
---|---|
static class |
XSDParticleImpl.XSDNFA |
XSDConcreteComponentImpl.XSDContentsEList
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl
BasicNotifierImpl.EAdapterList<E extends java.lang.Object & Adapter>, BasicNotifierImpl.EObservableAdapterList
XSDParticle.DFA
InternalEObject.EStore
Modifier and Type | Field and Description |
---|---|
protected XSDParticleContent |
content
The cached value of the '
Content ' containment reference. |
static boolean |
debug |
protected static int |
MAX_OCCURS_EDEFAULT
The default value of the '
Max Occurs ' attribute. |
protected static int |
MAX_OCCURS_ESETFLAG
The flag representing whether the Max Occurs attribute has been set.
|
protected static int |
MAXIMUM_STATES |
protected int |
maxOccurs
The cached value of the '
Max Occurs ' attribute. |
protected static int |
MIN_OCCURS_EDEFAULT
The default value of the '
Min Occurs ' attribute. |
protected static int |
MIN_OCCURS_ESETFLAG
The flag representing whether the Min Occurs attribute has been set.
|
protected int |
minOccurs
The cached value of the '
Min Occurs ' attribute. |
protected XSDTerm |
term
The cached value of the '
Term ' reference. |
protected XSDParticleImpl.XSDNFA |
xsdNFA |
protected int |
xsdNFACheckSum |
ANALYZED, ANALYZING, CIRCULAR, diagnostics, element, ELEMENT_EDEFAULT, ERROR, FATAL, forceResolve, INFORMATION, isReconciling, UNANALYZED, updatingDOM, WARNING, xsdContents
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
UNBOUNDED
EOPPOSITE_FEATURE_BASE
Modifier | Constructor and Description |
---|---|
protected |
XSDParticleImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
adoptContent(EReference eReference,
XSDConcreteComponent xsdConcreteComponent) |
boolean |
analyze() |
NotificationChain |
basicSetContent(XSDParticleContent newContent,
NotificationChain msgs) |
protected void |
changeAttribute(EAttribute eAttribute) |
XSDConcreteComponent |
cloneConcreteComponent(boolean deep,
boolean shareDOM)
Creates a clone of the component.
|
org.w3c.dom.Element |
createElement() |
static XSDParticle |
createParticle(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) |
XSDParticleContent |
getContent() |
protected java.util.Collection<org.w3c.dom.Element> |
getContentNodes(org.w3c.dom.Element changedElement) |
XSDParticle.DFA |
getDFA()
Returns the deterministic finite state automaton that implements this particle's content model.
|
int |
getMaxOccurs() |
int |
getMinOccurs() |
XSDTerm |
getTerm() |
boolean |
isEmptiable()
Returns whether the particle is
emptiable.
|
boolean |
isSetMaxOccurs() |
boolean |
isSetMinOccurs() |
boolean |
isSubset(XSDParticle otherParticle)
This returns whether this particle accepts a subset of the content accepted by the other particle,
i.e., whether this is a
valid restriction.
|
boolean |
isSubset(XSDParticle otherParticle,
boolean diagnose) |
protected void |
orphanContent(EReference eReference,
XSDConcreteComponent xsdConcreteComponent) |
protected void |
patch() |
protected void |
patchHelper() |
protected void |
reconcileAttributes(org.w3c.dom.Element changedElement) |
protected void |
reconcileContents(org.w3c.dom.Element changedElement) |
void |
setContent(XSDParticleContent newContent) |
void |
setMaxOccurs(int newMaxOccurs) |
void |
setMinOccurs(int newMinOccurs) |
void |
setTerm(XSDTerm newTerm) |
java.lang.String |
toString() |
void |
unsetMaxOccurs() |
void |
unsetMinOccurs() |
void |
validate()
Validates whether this component conforms to the constraints defined in the XML Schema standard.
|
adoptBy, adoptDiagnostic, changeReference, checkAttributes, checkAttributeTypeConstraint, checkAttributeTypeConstraint, checkBuiltInTypeConstraint, checkComplexContent, checkComplexContent, checkElementComplexContent, checkSimpleTypeConstraint, clearDiagnostics, cloneConcreteComponents, considerAllContainsForBestConcreteComponent, contains, convertToBoolean, createDiagnostic, createDiagnostic, createDiagnostic, createDiagnostic, createElement, createRequiredAttributeDiagnostic, createUnresolvedAttributeDeclaration, createUnresolvedAttributeGroupDefinition, createUnresolvedComplexTypeDefinition, createUnresolvedElementDeclaration, createUnresolvedIdentityConstraintDefinition, createUnresolvedModelGroupDefinition, createUnresolvedNotationDeclaration, createUnresolvedSimpleTypeDefinition, createUnresolvedTypeDefinition, elementAttributesChanged, elementChanged, elementContentsChanged, eNotificationRequired, eNotify, eObjectForURIFragmentSegment, eURIFragmentSegment, forceEngulf, forceEngulf, forceNiceInsertBefore, forceNiceRemoveChild, forceReplace, getAdoptionParentNode, getBestConcreteComponent, getComponentsWithApplicationInformation, getComponentsWithInformation, getComponentsWithUserInformation, getContainer, getDiagnostics, getDiagnosticTarget, getElement, getRootContainer, getSchema, getURIReferenceLabel, getXSDConcreteComponentImpls, getXSDContents, getXSDFactory, getXSDPackage, handleAnnotationReconciliation, handleElementForAdopt, handleReconciliation, handleUnreconciledElement, isUpdatingDOM, moveContent, niceCreateNamespaceAttribute, niceInsertBefore, niceRemoveChild, niceSetAttribute, niceSetAttributeURIValue, orphanBy, orphanDiagnostic, populateDiagnostic, printDFA, reconcile, reportConstraintViolation, reset, resolveAttributeDeclaration, resolveAttributeDeclaration, resolveAttributeDeclarationURI, resolveAttributeGroupDefinition, resolveAttributeGroupDefinition, resolveAttributeGroupDefinitionURI, resolveComplexTypeDefinition, resolveComplexTypeDefinition, resolveComplexTypeDefinitionURI, resolveElementDeclaration, resolveElementDeclaration, resolveElementDeclarationURI, resolveIdentityConstraintDefinition, resolveIdentityConstraintDefinition, resolveIdentityConstraintDefinitionURI, resolveModelGroupDefinition, resolveModelGroupDefinition, resolveModelGroupDefinitionURI, resolveNotationDeclaration, resolveNotationDeclaration, resolveNotationDeclarationURI, resolveSimpleTypeDefinition, resolveSimpleTypeDefinition, resolveSimpleTypeDefinitionURI, resolveTypeDefinition, resolveTypeDefinition, resolveTypeDefinitionURI, setElement, setElementGen, setListContentAndOrder, traverseToRootForAnalysis, traverseToRootForPatching, updateElement, updateElement, updatePrefix
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
eBasicAdapterArray, eBasicHasAdapters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clearDiagnostics, contains, elementAttributesChanged, elementChanged, elementContentsChanged, getComponentsWithApplicationInformation, getComponentsWithUserInformation, getContainer, getDiagnostics, getElement, getRootContainer, getSchema, resolveAttributeDeclaration, resolveAttributeDeclaration, resolveAttributeDeclarationURI, resolveAttributeGroupDefinition, resolveAttributeGroupDefinition, resolveAttributeGroupDefinitionURI, resolveComplexTypeDefinition, resolveComplexTypeDefinition, resolveComplexTypeDefinitionURI, resolveElementDeclaration, resolveElementDeclaration, resolveElementDeclarationURI, resolveIdentityConstraintDefinition, resolveIdentityConstraintDefinition, resolveIdentityConstraintDefinitionURI, resolveModelGroupDefinition, resolveModelGroupDefinition, resolveModelGroupDefinitionURI, resolveNotationDeclaration, resolveNotationDeclaration, resolveNotationDeclarationURI, resolveSimpleTypeDefinition, resolveSimpleTypeDefinition, resolveSimpleTypeDefinitionURI, resolveTypeDefinition, resolveTypeDefinition, resolveTypeDefinitionURI, setElement, updateElement, updateElement
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
protected static final int MAXIMUM_STATES
protected static final int MIN_OCCURS_EDEFAULT
Min Occurs
' attribute.
getMinOccurs()
,
Constant Field Valuesprotected int minOccurs
Min Occurs
' attribute.
getMinOccurs()
protected static final int MIN_OCCURS_ESETFLAG
protected static final int MAX_OCCURS_EDEFAULT
Max Occurs
' attribute.
getMaxOccurs()
,
Constant Field Valuesprotected int maxOccurs
Max Occurs
' attribute.
getMaxOccurs()
protected static final int MAX_OCCURS_ESETFLAG
protected XSDParticleContent content
Content
' containment reference.
getContent()
public static final boolean debug
protected XSDParticleImpl.XSDNFA xsdNFA
protected int xsdNFACheckSum
public static XSDParticle createParticle(org.w3c.dom.Node node)
protected EClass eStaticClass()
eStaticClass
in class XSDComplexTypeContentImpl
public int getMinOccurs()
getMinOccurs
in interface XSDParticle
XSDParticle.isSetMinOccurs()
,
XSDParticle.unsetMinOccurs()
,
XSDParticle.setMinOccurs(int)
,
XSDPackage.getXSDParticle_MinOccurs()
public void setMinOccurs(int newMinOccurs)
setMinOccurs
in interface XSDParticle
newMinOccurs
- the new value of the 'Min Occurs' attribute.XSDParticle.isSetMinOccurs()
,
XSDParticle.unsetMinOccurs()
,
XSDParticle.getMinOccurs()
public void unsetMinOccurs()
unsetMinOccurs
in interface XSDParticle
XSDParticle.isSetMinOccurs()
,
XSDParticle.getMinOccurs()
,
XSDParticle.setMinOccurs(int)
public boolean isSetMinOccurs()
isSetMinOccurs
in interface XSDParticle
XSDParticle.unsetMinOccurs()
,
XSDParticle.getMinOccurs()
,
XSDParticle.setMinOccurs(int)
public int getMaxOccurs()
getMaxOccurs
in interface XSDParticle
XSDParticle.UNBOUNDED
,
XSDParticle.isSetMaxOccurs()
,
XSDParticle.unsetMaxOccurs()
,
XSDParticle.setMaxOccurs(int)
,
XSDPackage.getXSDParticle_MaxOccurs()
public void setMaxOccurs(int newMaxOccurs)
setMaxOccurs
in interface XSDParticle
newMaxOccurs
- the new value of the 'Max Occurs' attribute.XSDParticle.isSetMaxOccurs()
,
XSDParticle.unsetMaxOccurs()
,
XSDParticle.getMaxOccurs()
public void unsetMaxOccurs()
unsetMaxOccurs
in interface XSDParticle
XSDParticle.isSetMaxOccurs()
,
XSDParticle.getMaxOccurs()
,
XSDParticle.setMaxOccurs(int)
public boolean isSetMaxOccurs()
isSetMaxOccurs
in interface XSDParticle
XSDParticle.unsetMaxOccurs()
,
XSDParticle.getMaxOccurs()
,
XSDParticle.setMaxOccurs(int)
public XSDParticleContent getContent()
getContent
in interface XSDParticle
XSDParticle.getTerm()
,
XSDParticle.setContent(XSDParticleContent)
,
XSDPackage.getXSDParticle_Content()
public void setContent(XSDParticleContent newContent)
setContent
in interface XSDParticle
newContent
- the new value of the 'Content' containment reference.XSDParticle.getContent()
public NotificationChain basicSetContent(XSDParticleContent newContent, NotificationChain msgs)
public XSDTerm getTerm()
getTerm
in interface XSDParticle
XSDParticle.getContent()
,
XSDParticle.setTerm(XSDTerm)
,
XSDPackage.getXSDParticle_Term()
public void setTerm(XSDTerm newTerm)
setTerm
in interface XSDParticle
newTerm
- the new value of the 'Term' reference.XSDParticle.getTerm()
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
InternalEObject.eGet(EStructuralFeature, boolean, boolean)
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface InternalEObject
eSet
in class XSDConcreteComponentImpl
EObject.eSet(EStructuralFeature, Object)
public void eUnset(int featureID)
eUnset
in interface InternalEObject
eUnset
in class XSDConcreteComponentImpl
EObject.eUnset(EStructuralFeature)
public boolean eIsSet(int featureID)
eIsSet
in interface InternalEObject
eIsSet
in class XSDConcreteComponentImpl
EObject.eIsSet(EStructuralFeature)
public java.lang.String toString()
toString
in class XSDConcreteComponentImpl
public org.w3c.dom.Element createElement()
createElement
in class XSDConcreteComponentImpl
protected void patch()
patch
in class XSDConcreteComponentImpl
protected void patchHelper()
public 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()
protected java.util.Collection<org.w3c.dom.Element> getContentNodes(org.w3c.dom.Element changedElement)
getContentNodes
in class XSDConcreteComponentImpl
protected void reconcileAttributes(org.w3c.dom.Element changedElement)
reconcileAttributes
in class XSDConcreteComponentImpl
protected void reconcileContents(org.w3c.dom.Element changedElement)
reconcileContents
in class XSDConcreteComponentImpl
protected void changeAttribute(EAttribute eAttribute)
changeAttribute
in class XSDConcreteComponentImpl
protected void adoptContent(EReference eReference, XSDConcreteComponent xsdConcreteComponent)
adoptContent
in class XSDConcreteComponentImpl
protected void orphanContent(EReference eReference, XSDConcreteComponent xsdConcreteComponent)
orphanContent
in class XSDConcreteComponentImpl
public XSDParticle.DFA getDFA()
XSDParticle
getDFA
in interface XSDParticle
public boolean isEmptiable()
XSDParticle
isEmptiable
in interface XSDParticle
public boolean isSubset(XSDParticle otherParticle)
XSDParticle
isSubset
in interface XSDParticle
otherParticle
- some other particle.public boolean isSubset(XSDParticle otherParticle, boolean diagnose)
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