|
||||||||||
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.XSDNamedComponentImpl org.eclipse.xsd.impl.XSDRedefinableComponentImpl org.eclipse.xsd.impl.XSDTypeDefinitionImpl org.eclipse.xsd.impl.XSDSimpleTypeDefinitionImpl
public class XSDSimpleTypeDefinitionImpl
An implementation of the model object 'Simple Type Definition'.
The following features are implemented:
Variety
Final
Lexical Final
Valid Facets
Contents
Facet Contents
Facets
Member Type Definitions
Fundamental Facets
Base Type Definition
Primitive Type Definition
Item Type Definition
Root Type Definition
Min Facet
Max Facet
Max Inclusive Facet
Min Inclusive Facet
Min Exclusive Facet
Max Exclusive Facet
Length Facet
White Space Facet
Enumeration Facets
Pattern Facets
Cardinality Facet
Numeric Facet
Max Length Facet
Min Length Facet
Total Digits Facet
Fraction Digits Facet
Ordered Facet
Bounded Facet
Effective Max Facet
Effective White Space Facet
Effective Max Length Facet
Effective Fraction Digits Facet
Effective Pattern Facet
Effective Enumeration Facet
Effective Total Digits Facet
Effective Min Length Facet
Effective Length Facet
Effective Min Facet
Synthetic Facets
Nested Class Summary | |
---|---|
static class |
XSDSimpleTypeDefinitionImpl.AssessmentImpl
This is used to gather selectively the information determined when assessing a literal string with respect to a XSDSimpleTypeDefinition . |
Nested classes/interfaces inherited from class org.eclipse.xsd.impl.XSDNamedComponentImpl |
---|
XSDNamedComponentImpl.Comparator, XSDNamedComponentImpl.StringPairComparator, XSDNamedComponentImpl.XSDNamedComponentList<E extends java.lang.Object & XSDNamedComponent> |
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.xsd.XSDSimpleTypeDefinition |
---|
XSDSimpleTypeDefinition.Assessment |
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
InternalEObject.EStore |
Field Summary | |
---|---|
protected XSDSimpleTypeDefinition |
baseTypeDefinition
The cached value of the ' Base Type Definition ' reference |
protected XSDBoundedFacet |
boundedFacet
|
protected XSDCardinalityFacet |
cardinalityFacet
|
protected EList<XSDSimpleTypeDefinition> |
contents
The cached value of the ' Contents ' containment reference list |
protected XSDEnumerationFacetImpl |
effectiveEnumerationFacet
|
protected XSDPatternFacetImpl |
effectivePatternFacet
|
protected XSDWhiteSpaceFacet |
effectiveWhiteSpaceFacet
|
protected EcoreEList<XSDConstrainingFacet> |
facetContents
The cached value of the ' Facet Contents ' containment reference list |
protected EcoreEList<XSDConstrainingFacet> |
facets
The cached value of the ' Facets ' reference list |
protected EList<XSDSimpleFinal> |
final_
The cached value of the ' Final ' attribute list |
protected EList<XSDFundamentalFacet> |
fundamentalFacets
The cached value of the ' Fundamental Facets ' containment reference list |
protected XSDSimpleTypeDefinition |
itemTypeDefinition
The cached value of the ' Item Type Definition ' reference |
protected EList<XSDSimpleFinal> |
lexicalFinal
The cached value of the ' Lexical Final ' attribute list |
protected EList<XSDSimpleTypeDefinition> |
memberTypeDefinitions
The cached value of the ' Member Type Definitions ' reference list |
protected XSDNumericFacet |
numericFacet
|
protected XSDOrderedFacet |
orderedFacet
|
protected XSDSimpleTypeDefinition |
primitiveTypeDefinition
The cached value of the ' Primitive Type Definition ' reference |
protected EList<XSDFacet> |
syntheticFacets
The cached value of the ' Synthetic Facets ' containment reference list |
protected EList<java.lang.String> |
validFacets
The cached value of the ' Valid Facets ' attribute list |
protected static EList<java.lang.String> |
validFacetsForList
|
protected static EList<java.lang.String> |
validFacetsForUnion
|
protected XSDVariety |
variety
The cached value of the ' Variety ' attribute |
protected static XSDVariety |
VARIETY_EDEFAULT
The default value of the ' Variety ' attribute |
protected static int |
VARIETY_ESETFLAG
The flag representing whether the Variety attribute has been set |
Fields inherited from class org.eclipse.xsd.impl.XSDTypeDefinitionImpl |
---|
analysisState, annotation, annotations, derivationAnnotation |
Fields inherited from class org.eclipse.xsd.impl.XSDRedefinableComponentImpl |
---|
CIRCULAR_EDEFAULT |
Fields inherited from class org.eclipse.xsd.impl.XSDNamedComponentImpl |
---|
ALIAS_NAME_EDEFAULT, ALIAS_URI_EDEFAULT, name, NAME_EDEFAULT, QNAME_EDEFAULT, TARGET_NAMESPACE_EDEFAULT, targetNamespace, URI_EDEFAULT |
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 |
XSDSimpleTypeDefinitionImpl()
|
Method Summary | |
---|---|
protected void |
adoptContent(EReference eReference,
XSDConcreteComponent xsdConcreteComponent)
|
XSDSimpleTypeDefinition.Assessment |
assess(org.w3c.dom.Node node)
Returns an assessment of the node. |
XSDSimpleTypeDefinition.Assessment |
assess(java.lang.String literal)
Returns an assessment of the literal. |
XSDSimpleTypeDefinitionImpl.AssessmentImpl |
assess(XSDSimpleTypeDefinitionImpl.AssessmentImpl assessment)
|
XSDSimpleTypeDefinitionImpl.AssessmentImpl |
assess(XSDSimpleTypeDefinitionImpl.AssessmentImpl assessment,
boolean validate)
|
protected void |
changeAttribute(EAttribute eAttribute)
|
protected void |
changeReference(EReference eReference)
|
XSDConcreteComponent |
cloneConcreteComponent(boolean deep,
boolean shareDOM)
Creates a clone of the component. |
int |
compareLiterals(java.lang.String literal1,
java.lang.String literal2)
Returns -1 , 0 , or 1 ,
depending on the order of the value of each of the given literals. |
int |
compareValues(java.lang.Object value1,
java.lang.Object value2)
Returns -1 , 0 , or 1 ,
depending on the order of the value s. |
protected org.w3c.dom.Element |
createChildElement()
|
org.w3c.dom.Element |
createElement()
|
protected void |
createFundamentalFacets()
|
static XSDSimpleTypeDefinition |
createSimpleTypeDefinition(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)
|
boolean |
equalLiterals(java.lang.String literal1,
java.lang.String literal2)
Returns whether the value of each of the given literals are equal. |
boolean |
equalValues(java.lang.Object value1,
java.lang.Object value2)
Returns whether the value s are equal. |
void |
eSet(int featureID,
java.lang.Object newValue)
|
protected EClass |
eStaticClass()
|
void |
eUnset(int featureID)
|
protected org.w3c.dom.Node |
getAdoptionParentNode(EReference eReference)
|
XSDTypeDefinition |
getBadTypeDerivation(XSDTypeDefinition xsdTypeDefinition,
boolean extension,
boolean restriction)
Returns the first type between this and the given one, that derives from it's base in a way not permitted as constrained by Type Derivation OK Complex and Simple. |
XSDTypeDefinition |
getBaseType()
Returns the value of the 'Base Type' reference |
XSDSimpleTypeDefinition |
getBaseTypeDefinition()
|
XSDBoundedFacet |
getBoundedFacet()
Returns the value of the 'Bounded Facet' reference |
java.lang.String |
getCanonicalLiteral(java.lang.String literal)
Returns the canonical literal of the literal with respect to this simple type definition. |
XSDCardinalityFacet |
getCardinalityFacet()
Returns the value of the 'Cardinality Facet' reference |
XSDParticle |
getComplexType()
|
protected java.util.Collection<org.w3c.dom.Element> |
getContentNodes(org.w3c.dom.Element changedElement)
|
EList<XSDSimpleTypeDefinition> |
getContents()
|
XSDEnumerationFacet |
getEffectiveEnumerationFacet()
Returns the value of the 'Effective Enumeration Facet' reference |
XSDFractionDigitsFacet |
getEffectiveFractionDigitsFacet()
Returns the value of the 'Effective Fraction Digits Facet' reference |
XSDLengthFacet |
getEffectiveLengthFacet()
Returns the value of the 'Effective Length Facet' reference |
XSDMaxFacet |
getEffectiveMaxFacet()
Returns the value of the 'Effective Max Facet' reference |
XSDMaxLengthFacet |
getEffectiveMaxLengthFacet()
Returns the value of the 'Effective Max Length Facet' reference |
XSDMinFacet |
getEffectiveMinFacet()
Returns the value of the 'Effective Min Facet' reference |
XSDMinLengthFacet |
getEffectiveMinLengthFacet()
Returns the value of the 'Effective Min Length Facet' reference |
XSDPatternFacet |
getEffectivePatternFacet()
Returns the value of the 'Effective Pattern Facet' reference |
XSDTotalDigitsFacet |
getEffectiveTotalDigitsFacet()
Returns the value of the 'Effective Total Digits Facet' reference |
XSDWhiteSpaceFacet |
getEffectiveWhiteSpaceFacet()
Returns the value of the 'Effective White Space Facet' reference |
EList<XSDEnumerationFacet> |
getEnumerationFacets()
Returns the value of the 'Enumeration Facets' reference list. |
EList<XSDConstrainingFacet> |
getFacetContents()
|
EList<XSDConstrainingFacet> |
getFacets()
|
EList<XSDSimpleFinal> |
getFinal()
|
XSDFractionDigitsFacet |
getFractionDigitsFacet()
Returns the value of the 'Fraction Digits Facet' reference |
EList<XSDFundamentalFacet> |
getFundamentalFacets()
|
XSDSimpleTypeDefinition |
getItemTypeDefinition()
|
XSDLengthFacet |
getLengthFacet()
Returns the value of the 'Length Facet' reference |
EList<XSDSimpleFinal> |
getLexicalFinal()
|
XSDMaxExclusiveFacet |
getMaxExclusiveFacet()
Returns the value of the 'Max Exclusive Facet' reference |
XSDMaxFacet |
getMaxFacet()
Returns the value of the 'Max Facet' reference |
XSDMaxInclusiveFacet |
getMaxInclusiveFacet()
Returns the value of the 'Max Inclusive Facet' reference |
XSDMaxLengthFacet |
getMaxLengthFacet()
Returns the value of the 'Max Length Facet' reference |
EList<XSDSimpleTypeDefinition> |
getMemberTypeDefinitions()
|
XSDMinExclusiveFacet |
getMinExclusiveFacet()
Returns the value of the 'Min Exclusive Facet' reference |
XSDMinFacet |
getMinFacet()
Returns the value of the 'Min Facet' reference |
XSDMinInclusiveFacet |
getMinInclusiveFacet()
Returns the value of the 'Min Inclusive Facet' reference |
XSDMinLengthFacet |
getMinLengthFacet()
Returns the value of the 'Min Length Facet' reference |
java.lang.String |
getNormalizedLiteral(java.lang.String literal)
Returns the normalized value of the literal with respect to this simple type definition. |
XSDNumericFacet |
getNumericFacet()
Returns the value of the 'Numeric Facet' reference |
XSDOrderedFacet |
getOrderedFacet()
Returns the value of the 'Ordered Facet' reference |
EList<XSDPatternFacet> |
getPatternFacets()
Returns the value of the 'Pattern Facets' reference list. |
XSDSimpleTypeDefinition |
getPrimitiveTypeDefinition()
|
protected int |
getRequiredChildElementNodeType()
|
XSDTypeDefinition |
getRootType()
Returns the value of the 'Root Type' reference |
XSDSimpleTypeDefinition |
getRootTypeDefinition()
Returns the value of the 'Root Type Definition' reference |
XSDSimpleTypeDefinition |
getSimpleType()
Returns the value of the 'Simple Type' reference |
java.lang.String |
getStringFinal()
Returns the String value of the ' Final ' attribute list |
java.lang.String |
getStringLexicalFinal()
Returns the String value of the ' Lexical Final ' attribute list |
EList<XSDFacet> |
getSyntheticFacets()
|
XSDTotalDigitsFacet |
getTotalDigitsFacet()
Returns the value of the 'Total Digits Facet' reference |
EList<java.lang.String> |
getValidFacets()
|
EList<java.lang.String> |
getValidFacetsForList()
|
EList<java.lang.String> |
getValidFacetsForUnion()
|
java.lang.Object |
getValue(java.lang.String literal)
Returns the value of the literal in the value space of this simple type definition. |
XSDVariety |
getVariety()
|
XSDWhiteSpaceFacet |
getWhiteSpaceFacet()
Returns the value of the 'White Space Facet' reference |
protected void |
handleAnalysis()
|
protected XSDSimpleTypeDefinition |
handleNewBaseTypeDefinition(XSDSimpleTypeDefinition newBaseTypeDefinition)
|
protected void |
handleNewComplexBaseTypeDefinition(XSDTypeDefinition newComplexBaseTypeDefinition)
|
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 |
isSetLexicalFinal()
|
boolean |
isSetVariety()
|
boolean |
isValidLiteral(java.lang.String literal)
Returns whether the literal is valid with respect to this simple type definition. |
protected java.util.List<XSDConstrainingFacet> |
mergeFacets()
|
protected void |
orphanContent(EReference eReference,
XSDConcreteComponent xsdConcreteComponent)
|
protected void |
patch()
|
protected void |
reconcileAttributes(org.w3c.dom.Element changedElement)
|
void |
setBaseTypeDefinition(XSDSimpleTypeDefinition newBaseTypeDefinition)
|
void |
setItemTypeDefinition(XSDSimpleTypeDefinition newItemTypeDefinition)
|
void |
setPrimitiveTypeDefinition(XSDSimpleTypeDefinition newPrimitiveTypeDefinition)
|
void |
setStringLexicalFinal(java.lang.String finalDefault)
Sets the String value of the ' Lexical Final ' attribute |
void |
setVariety(XSDVariety newVariety)
|
java.lang.String |
toString()
|
void |
unsetLexicalFinal()
|
void |
unsetVariety()
|
void |
validate()
Validates whether this component conforms to the constraints defined in the XML Schema standard. |
Methods inherited from class org.eclipse.xsd.impl.XSDTypeDefinitionImpl |
---|
analyze, basicSetAnnotation, basicSetDerivationAnnotation, createTypeDefinition, getAnnotation, getAnnotations, getDerivationAnnotation, getLowestCommonAncestor, isCircular, setAnnotation, setDerivationAnnotation |
Methods inherited from class org.eclipse.xsd.impl.XSDRedefinableComponentImpl |
---|
getCircular |
Methods inherited from class org.eclipse.xsd.impl.XSDNamedComponentImpl |
---|
addToSortedList, adoptBy, findInSortedList, getAliasName, getAliasURI, getName, getQName, getQName, getResolvedNamedComponent, getTargetNamespace, getURI, getURIReferenceLabel, hasNameAndTargetNamespace, hasSameNameAndTargetNamespace, hasURI, isNamedComponentReference, mergeToSortedList, patchTargetNamespaceAttribute, reconcileNameAttribute, setName, setTargetNamespace, sortNamedComponents |
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.xsd.XSDTypeDefinition |
---|
getAnnotation, getAnnotations, getDerivationAnnotation, setAnnotation, setDerivationAnnotation |
Methods inherited from interface org.eclipse.xsd.XSDRedefinableComponent |
---|
isCircular |
Methods inherited from interface org.eclipse.xsd.XSDNamedComponent |
---|
getAliasName, getAliasURI, getName, getQName, getQName, getTargetNamespace, getURI, hasNameAndTargetNamespace, hasSameNameAndTargetNamespace, hasURI, setName, setTargetNamespace |
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 |
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 XSDVariety VARIETY_EDEFAULT
Variety
' attribute.
getVariety()
protected XSDVariety variety
Variety
' attribute.
getVariety()
protected static final int VARIETY_ESETFLAG
protected EList<XSDSimpleFinal> final_
Final
' attribute list.
getFinal()
protected EList<XSDSimpleFinal> lexicalFinal
Lexical Final
' attribute list.
getLexicalFinal()
protected EList<java.lang.String> validFacets
Valid Facets
' attribute list.
getValidFacets()
protected EList<XSDSimpleTypeDefinition> contents
Contents
' containment reference list.
getContents()
protected EcoreEList<XSDConstrainingFacet> facetContents
Facet Contents
' containment reference list.
getFacetContents()
protected EcoreEList<XSDConstrainingFacet> facets
Facets
' reference list.
getFacets()
protected EList<XSDSimpleTypeDefinition> memberTypeDefinitions
Member Type Definitions
' reference list.
getMemberTypeDefinitions()
protected EList<XSDFundamentalFacet> fundamentalFacets
Fundamental Facets
' containment reference list.
getFundamentalFacets()
protected XSDSimpleTypeDefinition baseTypeDefinition
Base Type Definition
' reference.
getBaseTypeDefinition()
protected XSDSimpleTypeDefinition primitiveTypeDefinition
Primitive Type Definition
' reference.
getPrimitiveTypeDefinition()
protected XSDSimpleTypeDefinition itemTypeDefinition
Item Type Definition
' reference.
getItemTypeDefinition()
protected EList<XSDFacet> syntheticFacets
Synthetic Facets
' containment reference list.
getSyntheticFacets()
protected XSDWhiteSpaceFacet effectiveWhiteSpaceFacet
protected XSDBoundedFacet boundedFacet
protected XSDCardinalityFacet cardinalityFacet
protected XSDNumericFacet numericFacet
protected XSDOrderedFacet orderedFacet
protected static EList<java.lang.String> validFacetsForList
protected static EList<java.lang.String> validFacetsForUnion
protected XSDEnumerationFacetImpl effectiveEnumerationFacet
protected XSDPatternFacetImpl effectivePatternFacet
Constructor Detail |
---|
protected XSDSimpleTypeDefinitionImpl()
Method Detail |
---|
public static XSDSimpleTypeDefinition createSimpleTypeDefinition(org.w3c.dom.Node node)
protected EClass eStaticClass()
eStaticClass
in class XSDTypeDefinitionImpl
public XSDVariety getVariety()
getVariety
in interface XSDSimpleTypeDefinition
XSDVariety
,
XSDSimpleTypeDefinition.isSetVariety()
,
XSDSimpleTypeDefinition.unsetVariety()
,
XSDSimpleTypeDefinition.setVariety(XSDVariety)
,
XSDPackage.getXSDSimpleTypeDefinition_Variety()
public void setVariety(XSDVariety newVariety)
setVariety
in interface XSDSimpleTypeDefinition
newVariety
- the new value of the 'Variety' attribute.XSDVariety
,
XSDSimpleTypeDefinition.isSetVariety()
,
XSDSimpleTypeDefinition.unsetVariety()
,
XSDSimpleTypeDefinition.getVariety()
public void unsetVariety()
unsetVariety
in interface XSDSimpleTypeDefinition
XSDSimpleTypeDefinition.isSetVariety()
,
XSDSimpleTypeDefinition.getVariety()
,
XSDSimpleTypeDefinition.setVariety(XSDVariety)
public boolean isSetVariety()
isSetVariety
in interface XSDSimpleTypeDefinition
XSDSimpleTypeDefinition.unsetVariety()
,
XSDSimpleTypeDefinition.getVariety()
,
XSDSimpleTypeDefinition.setVariety(XSDVariety)
public EList<XSDSimpleFinal> getFinal()
getFinal
in interface XSDSimpleTypeDefinition
XSDSimpleTypeDefinition.getStringFinal()
,
XSDSimpleFinal
,
XSDPackage.getXSDSimpleTypeDefinition_Final()
public EList<XSDSimpleFinal> getLexicalFinal()
getLexicalFinal
in interface XSDSimpleTypeDefinition
XSDSimpleTypeDefinition.getStringLexicalFinal()
,
XSDSimpleFinal
,
XSDSimpleTypeDefinition.isSetLexicalFinal()
,
XSDSimpleTypeDefinition.unsetLexicalFinal()
,
XSDPackage.getXSDSimpleTypeDefinition_LexicalFinal()
public void unsetLexicalFinal()
unsetLexicalFinal
in interface XSDSimpleTypeDefinition
XSDSimpleTypeDefinition.isSetLexicalFinal()
,
XSDSimpleTypeDefinition.getLexicalFinal()
public boolean isSetLexicalFinal()
isSetLexicalFinal
in interface XSDSimpleTypeDefinition
XSDSimpleTypeDefinition.unsetLexicalFinal()
,
XSDSimpleTypeDefinition.getLexicalFinal()
public EList<java.lang.String> getValidFacets()
getValidFacets
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_ValidFacets()
public EList<XSDSimpleTypeDefinition> getContents()
getContents
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_Contents()
public EList<XSDConstrainingFacet> getFacetContents()
getFacetContents
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_FacetContents()
public EList<XSDConstrainingFacet> getFacets()
getFacets
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_Facets()
public EList<XSDSimpleTypeDefinition> getMemberTypeDefinitions()
getMemberTypeDefinitions
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_MemberTypeDefinitions()
public EList<XSDFundamentalFacet> getFundamentalFacets()
getFundamentalFacets
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_FundamentalFacets()
public XSDSimpleTypeDefinition getBaseTypeDefinition()
getBaseTypeDefinition
in interface XSDSimpleTypeDefinition
XSDSimpleTypeDefinition.setBaseTypeDefinition(XSDSimpleTypeDefinition)
,
XSDPackage.getXSDSimpleTypeDefinition_BaseTypeDefinition()
public void setBaseTypeDefinition(XSDSimpleTypeDefinition newBaseTypeDefinition)
setBaseTypeDefinition
in interface XSDSimpleTypeDefinition
newBaseTypeDefinition
- the new value of the 'Base Type Definition' reference.XSDSimpleTypeDefinition.getBaseTypeDefinition()
public XSDSimpleTypeDefinition getPrimitiveTypeDefinition()
getPrimitiveTypeDefinition
in interface XSDSimpleTypeDefinition
XSDSimpleTypeDefinition.setPrimitiveTypeDefinition(XSDSimpleTypeDefinition)
,
XSDPackage.getXSDSimpleTypeDefinition_PrimitiveTypeDefinition()
public void setPrimitiveTypeDefinition(XSDSimpleTypeDefinition newPrimitiveTypeDefinition)
setPrimitiveTypeDefinition
in interface XSDSimpleTypeDefinition
newPrimitiveTypeDefinition
- the new value of the 'Primitive Type Definition' reference.XSDSimpleTypeDefinition.getPrimitiveTypeDefinition()
public XSDSimpleTypeDefinition getItemTypeDefinition()
getItemTypeDefinition
in interface XSDSimpleTypeDefinition
XSDSimpleTypeDefinition.setItemTypeDefinition(XSDSimpleTypeDefinition)
,
XSDPackage.getXSDSimpleTypeDefinition_ItemTypeDefinition()
public void setItemTypeDefinition(XSDSimpleTypeDefinition newItemTypeDefinition)
setItemTypeDefinition
in interface XSDSimpleTypeDefinition
newItemTypeDefinition
- the new value of the 'Item Type Definition' reference.XSDSimpleTypeDefinition.getItemTypeDefinition()
public org.w3c.dom.Element createElement()
createElement
in class XSDConcreteComponentImpl
protected org.w3c.dom.Element createChildElement()
protected int getRequiredChildElementNodeType()
protected void patch()
patch
in class XSDTypeDefinitionImpl
protected void handleAnalysis()
handleAnalysis
in class XSDTypeDefinitionImpl
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 void reconcileAttributes(org.w3c.dom.Element changedElement)
reconcileAttributes
in class XSDNamedComponentImpl
protected void handleNewComplexBaseTypeDefinition(XSDTypeDefinition newComplexBaseTypeDefinition)
protected XSDSimpleTypeDefinition handleNewBaseTypeDefinition(XSDSimpleTypeDefinition newBaseTypeDefinition)
protected org.w3c.dom.Node getAdoptionParentNode(EReference eReference)
getAdoptionParentNode
in class XSDConcreteComponentImpl
protected java.util.Collection<org.w3c.dom.Element> getContentNodes(org.w3c.dom.Element changedElement)
getContentNodes
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
protected void changeAttribute(EAttribute eAttribute)
changeAttribute
in class XSDNamedComponentImpl
protected void changeReference(EReference eReference)
changeReference
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 XSDTotalDigitsFacet getTotalDigitsFacet()
XSDSimpleTypeDefinition
This represents the XSDTotalDigitsFacet
of the facet contents
.
getTotalDigitsFacet
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_TotalDigitsFacet()
public XSDTotalDigitsFacet getEffectiveTotalDigitsFacet()
XSDSimpleTypeDefinition
This represents the XSDTotalDigitsFacet
of the facets
.
getEffectiveTotalDigitsFacet
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_EffectiveTotalDigitsFacet()
public XSDFractionDigitsFacet getFractionDigitsFacet()
XSDSimpleTypeDefinition
This represents the XSDFractionDigitsFacet
of the facet contents
.
getFractionDigitsFacet
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_FractionDigitsFacet()
public XSDFractionDigitsFacet getEffectiveFractionDigitsFacet()
XSDSimpleTypeDefinition
This represents the XSDFractionDigitsFacet
of the facets
.
getEffectiveFractionDigitsFacet
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_EffectiveFractionDigitsFacet()
public XSDLengthFacet getLengthFacet()
XSDSimpleTypeDefinition
This represents the XSDLengthFacet
of the facet contents
.
getLengthFacet
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_LengthFacet()
public XSDLengthFacet getEffectiveLengthFacet()
XSDSimpleTypeDefinition
This represents the XSDLengthFacet
of the facets
.
getEffectiveLengthFacet
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_EffectiveLengthFacet()
public XSDMaxLengthFacet getMaxLengthFacet()
XSDSimpleTypeDefinition
This represents the XSDMaxLengthFacet
of the facet contents
.
getMaxLengthFacet
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_MaxLengthFacet()
public XSDMaxLengthFacet getEffectiveMaxLengthFacet()
XSDSimpleTypeDefinition
This represents the XSDMaxLengthFacet
of the facets
.
getEffectiveMaxLengthFacet
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_EffectiveMaxLengthFacet()
public XSDMinLengthFacet getMinLengthFacet()
XSDSimpleTypeDefinition
This represents the XSDMinLengthFacet
of the facet contents
.
getMinLengthFacet
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_MinLengthFacet()
public XSDMinLengthFacet getEffectiveMinLengthFacet()
XSDSimpleTypeDefinition
This represents the XSDMinLengthFacet
of the facets
.
getEffectiveMinLengthFacet
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_EffectiveMinLengthFacet()
public XSDMaxExclusiveFacet getMaxExclusiveFacet()
XSDSimpleTypeDefinition
This represents the XSDMaxExclusiveFacet
of the facet contents
.
getMaxExclusiveFacet
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_MaxExclusiveFacet()
public XSDMaxInclusiveFacet getMaxInclusiveFacet()
XSDSimpleTypeDefinition
This represents the XSDMaxInclusiveFacet
of the facet contents
.
getMaxInclusiveFacet
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_MaxInclusiveFacet()
public XSDMaxFacet getMaxFacet()
XSDSimpleTypeDefinition
This represents the XSDMaxFacet
of the facet contents
.
getMaxFacet
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_MaxFacet()
public XSDMaxFacet getEffectiveMaxFacet()
XSDSimpleTypeDefinition
This represents the XSDMaxFacet
of the facets
.
getEffectiveMaxFacet
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_EffectiveMaxFacet()
public XSDMinExclusiveFacet getMinExclusiveFacet()
XSDSimpleTypeDefinition
This represents the XSDMinExclusiveFacet
of the facet contents
.
getMinExclusiveFacet
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_MinExclusiveFacet()
public XSDMinInclusiveFacet getMinInclusiveFacet()
XSDSimpleTypeDefinition
This represents the XSDMinInclusiveFacet
of the facet contents
.
getMinInclusiveFacet
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_MinInclusiveFacet()
public XSDMinFacet getMinFacet()
XSDSimpleTypeDefinition
This represents the XSDMinFacet
of the facet contents
.
getMinFacet
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_MinFacet()
public XSDMinFacet getEffectiveMinFacet()
XSDSimpleTypeDefinition
This represents the XSDMinLengthFacet
of the facets
.
getEffectiveMinFacet
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_EffectiveMinFacet()
public EList<XSDFacet> getSyntheticFacets()
getSyntheticFacets
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_SyntheticFacets()
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
eInverseRemove
in class XSDTypeDefinitionImpl
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface InternalEObject
eGet
in class XSDTypeDefinitionImpl
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface InternalEObject
eSet
in class XSDTypeDefinitionImpl
public void eUnset(int featureID)
eUnset
in interface InternalEObject
eUnset
in class XSDTypeDefinitionImpl
public boolean eIsSet(int featureID)
eIsSet
in interface InternalEObject
eIsSet
in class XSDTypeDefinitionImpl
public java.lang.String toString()
toString
in class XSDNamedComponentImpl
public XSDWhiteSpaceFacet getWhiteSpaceFacet()
XSDSimpleTypeDefinition
This represents the XSDWhiteSpaceFacet
of the facet contents
.
getWhiteSpaceFacet
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_WhiteSpaceFacet()
public XSDWhiteSpaceFacet getEffectiveWhiteSpaceFacet()
XSDSimpleTypeDefinition
This represents the XSDWhiteSpaceFacet
of the facets
.
getEffectiveWhiteSpaceFacet
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_EffectiveWhiteSpaceFacet()
public EList<XSDEnumerationFacet> getEnumerationFacets()
XSDSimpleTypeDefinition
XSDEnumerationFacet
.
This represents the XSDEnumerationFacet
of the facet contents
.
getEnumerationFacets
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_EnumerationFacets()
public XSDEnumerationFacet getEffectiveEnumerationFacet()
XSDSimpleTypeDefinition
This represents the XSDEnumerationFacet
of the facets
.
To iterate through each enumerator which is a legal value of this type,
use the list returned by getEffectiveEnumerationFacet().getValue
().
getEffectiveEnumerationFacet
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_EffectiveEnumerationFacet()
public EList<XSDPatternFacet> getPatternFacets()
XSDSimpleTypeDefinition
XSDPatternFacet
.
This represents the XSDPatternFacet
of the facet contents
.
getPatternFacets
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_PatternFacets()
public XSDPatternFacet getEffectivePatternFacet()
XSDSimpleTypeDefinition
This represents the XSDPatternFacet
of the facets
.
To iterate through each pattern that applies for this type,
use the list returned by getEffectivePatternFacet().getValue
().
getEffectivePatternFacet
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_EffectivePatternFacet()
public XSDBoundedFacet getBoundedFacet()
XSDSimpleTypeDefinition
This represents the XSDBoundedFacet
of the fundamental facets
.
getBoundedFacet
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_BoundedFacet()
public XSDCardinalityFacet getCardinalityFacet()
XSDSimpleTypeDefinition
This represents the XSDCardinalityFacet
of the fundamental facets
.
getCardinalityFacet
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_CardinalityFacet()
public XSDNumericFacet getNumericFacet()
XSDSimpleTypeDefinition
This represents the XSDNumericFacet
of the fundamental facets
.
getNumericFacet
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_NumericFacet()
public XSDOrderedFacet getOrderedFacet()
XSDSimpleTypeDefinition
This represents the XSDOrderedFacet
of the fundamental facets
.
getOrderedFacet
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_OrderedFacet()
protected void createFundamentalFacets()
public EList<java.lang.String> getValidFacetsForList()
public EList<java.lang.String> getValidFacetsForUnion()
public XSDTypeDefinition getBaseType()
XSDTypeDefinition
This represents the same result as either
the simple 'Base Type Definition
' reference or
the complex 'Base Type Definition
' reference.
getBaseType
in interface XSDTypeDefinition
getBaseType
in class XSDTypeDefinitionImpl
XSDPackage.getXSDTypeDefinition_BaseType()
public XSDTypeDefinition getRootType()
XSDTypeDefinition
This walks the base types
until it hits that one that has the ur-type definition as it's base type.
getRootType
in interface XSDTypeDefinition
getRootType
in class XSDTypeDefinitionImpl
XSDPackage.getXSDTypeDefinition_RootType()
public XSDSimpleTypeDefinition getRootTypeDefinition()
XSDSimpleTypeDefinition
This walks the base type definitions
until it hits that one that has the ur-type definition as it's base type definition.
getRootTypeDefinition
in interface XSDSimpleTypeDefinition
XSDPackage.getXSDSimpleTypeDefinition_RootTypeDefinition()
public XSDSimpleTypeDefinition getSimpleType()
XSDTypeDefinition
This represents either
the 'Simple Type Definition
' itself or
the complex 'Content Type
' reference,
if it is simple
.
getSimpleType
in interface XSDTypeDefinition
getSimpleType
in class XSDTypeDefinitionImpl
XSDPackage.getXSDTypeDefinition_SimpleType()
public XSDParticle getComplexType()
XSDTypeDefinitionImpl
getComplexType
in interface XSDTypeDefinition
getComplexType
in class XSDTypeDefinitionImpl
XSDPackage.getXSDTypeDefinition_ComplexType()
protected java.util.List<XSDConstrainingFacet> mergeFacets()
public java.lang.String getStringLexicalFinal()
XSDSimpleTypeDefinition
Lexical Final
' attribute list.
getStringLexicalFinal
in interface XSDSimpleTypeDefinition
XSDSimpleTypeDefinition.getLexicalFinal()
,
XSDSimpleTypeDefinition.setStringLexicalFinal(java.lang.String)
public void setStringLexicalFinal(java.lang.String finalDefault)
XSDSimpleTypeDefinition
Lexical Final
' attribute.
setStringLexicalFinal
in interface XSDSimpleTypeDefinition
finalDefault
- the new value of the 'Lexical Final' attribute.XSDSimpleTypeDefinition.getLexicalFinal()
,
XSDSimpleTypeDefinition.getStringLexicalFinal()
public java.lang.String getStringFinal()
XSDSimpleTypeDefinition
Final
' attribute list.
getStringFinal
in interface XSDSimpleTypeDefinition
XSDSimpleTypeDefinition.getFinal()
public XSDSimpleTypeDefinition.Assessment assess(org.w3c.dom.Node node)
XSDSimpleTypeDefinition
assess
in interface XSDSimpleTypeDefinition
XSDSimpleTypeDefinition.assess(java.lang.String)
public XSDSimpleTypeDefinition.Assessment assess(java.lang.String literal)
XSDSimpleTypeDefinition
assess
in interface XSDSimpleTypeDefinition
XSDSimpleTypeDefinition.assess(org.w3c.dom.Node)
public XSDSimpleTypeDefinitionImpl.AssessmentImpl assess(XSDSimpleTypeDefinitionImpl.AssessmentImpl assessment)
public XSDSimpleTypeDefinitionImpl.AssessmentImpl assess(XSDSimpleTypeDefinitionImpl.AssessmentImpl assessment, boolean validate)
public boolean isValidLiteral(java.lang.String literal)
XSDSimpleTypeDefinition
assess
ing that the literal has no diagnostics.
isValidLiteral
in interface XSDSimpleTypeDefinition
literal
- a literal.
public java.lang.Object getValue(java.lang.String literal)
XSDSimpleTypeDefinition
Built-in Primitive Datatype | Corresponding Java Type |
---|---|
anyListType | java.util.List |
anyURI | java.lang.String |
base64Binary | org.eclipse.xsd.util.XSDUtil.ByteSequence | boolean | java.lang.Boolean | dateTime | int [] | date | int [] | decimal | java.math.BigDecimal | double | java.lang.Double | duration | int [] | float | java.lang.Float | gDay | int [] | gMonth | int [] | gMonthDay | int [] | gYear | int [] | gYearMonth | int [] | hexBinary | org.eclipse.xsd.util.XSDUtil.ByteSequence | NOTATION | java.lang.String | QName | java.lang.String | string | java.lang.String | time | int [] |
All time-based values are represented as in Xerces.
getValue
in interface XSDSimpleTypeDefinition
literal
- a literal.
public java.lang.String getCanonicalLiteral(java.lang.String literal)
XSDSimpleTypeDefinition
getCanonicalLiteral
in interface XSDSimpleTypeDefinition
literal
- a literal.
public java.lang.String getNormalizedLiteral(java.lang.String literal)
XSDSimpleTypeDefinition
getNormalizedLiteral
in interface XSDSimpleTypeDefinition
literal
- a literal.
public boolean equalValues(java.lang.Object value1, java.lang.Object value2)
XSDSimpleTypeDefinition
value
s are equal.
equalValues
in interface XSDSimpleTypeDefinition
value1
- a literal.value2
- another literal.
value
s are equal.public boolean equalLiterals(java.lang.String literal1, java.lang.String literal2)
XSDSimpleTypeDefinition
value
of each of the given literals are equal.
equalLiterals
in interface XSDSimpleTypeDefinition
literal1
- a literal.literal2
- another literal.
value
of each of the given literals are equal.public int compareValues(java.lang.Object value1, java.lang.Object value2)
XSDSimpleTypeDefinition
-1
, 0
, or 1
,
depending on the order
of the value
s.
compareValues
in interface XSDSimpleTypeDefinition
value1
- a value.value2
- another value.
-1
, 0
, or 1
, depending on the order of the values.public int compareLiterals(java.lang.String literal1, java.lang.String literal2)
XSDSimpleTypeDefinition
-1
, 0
, or 1
,
depending on the order
of the value
of each of the given literals.
compareLiterals
in interface XSDSimpleTypeDefinition
literal1
- a literal.literal2
- another literal.
-1
, 0
, or 1
, depending on the order of the value of each of the given literals.public XSDTypeDefinition getBadTypeDerivation(XSDTypeDefinition xsdTypeDefinition, boolean extension, boolean restriction)
XSDTypeDefinition
null
if the derivation is valid;
the result is the UR-type
,
if this type is not related to the given type;
otherwise, the result is the base with the blocked derivation method.
getBadTypeDerivation
in interface XSDTypeDefinition
getBadTypeDerivation
in class XSDTypeDefinitionImpl
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 |