com.ibm.etools.xsd
Interface XSDSimpleTypeDefinition

All Superinterfaces:
com.ibm.etools.emf.notify.Notifier, com.ibm.etools.emf.ref.RefBaseObject, com.ibm.etools.emf.ref.RefObject, com.ibm.etools.emf.resource.ResourceSetReference, XSDComplexTypeContent, XSDComponent, XSDConcreteComponent, XSDNamedComponent, XSDRedefinableComponent, XSDRedefineContent, XSDSchemaContent, XSDTypeDefinition
All Known Implementing Classes:
XSDSimpleTypeDefinitionImpl

public interface XSDSimpleTypeDefinition
extends XSDTypeDefinition, XSDComplexTypeContent

A representation of the model object 'Simple Type Definition'. For the methods named getEffectiveXyzFacet, effective means that the value of the property is computed based on the direct facets of this type, or, if the facet is not present, is computed recursively from the base type.

The following features are supported:

See Also:
XSDPackage.getXSDSimpleTypeDefinition()

Inner Class Summary
static interface XSDSimpleTypeDefinition.Assessment
          Information gathered during the assessment a literal with respect to a 'Simple Type Definition'.
 
Field Summary
static java.lang.String copyright
           
 
Fields inherited from interface com.ibm.etools.emf.notify.Notifier
ADD, ADD_MANY, CREATE, MOVE, NO_INDEX, REMOVE, REMOVE_MANY, REMOVING_ADAPTER, SET, TOUCH, UNSET
 
Method Summary
 XSDSimpleTypeDefinition.Assessment assess(Node node)
          Returns an assessment of the node.
 XSDSimpleTypeDefinition.Assessment assess(java.lang.String literal)
          Returns an assessment of the literal.
 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 values.
 com.ibm.etools.emf.ecore.EClass eClassXSDSimpleTypeDefinition()
          Returns the meta class of XSDSimpleTypeDefinition.
 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 values are equal.
 XSDSimpleTypeDefinition getBaseTypeDefinition()
          Returns the value of the 'Base Type Definition' reference.
 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.
 com.ibm.etools.emf.ref.EList getContents()
          Returns the value of the 'Contents' reference list.
 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.
 com.ibm.etools.emf.ref.EList getEnumerationFacets()
          Returns the value of the 'Enumeration Facets' reference list.
 com.ibm.etools.emf.ref.EList getFacetContents()
          Returns the value of the 'Facet Contents' reference list.
 com.ibm.etools.emf.ref.EList getFacets()
          Returns the value of the 'Facets' reference list.
 com.ibm.etools.emf.ref.EList getFinal()
          Returns the value of the 'Final' attribute list.
 XSDFractionDigitsFacet getFractionDigitsFacet()
          Returns the value of the 'Fraction Digits Facet' reference.
 com.ibm.etools.emf.ref.EList getFundamentalFacets()
          Returns the value of the 'Fundamental Facets' reference list.
 XSDSimpleTypeDefinition getItemTypeDefinition()
          Returns the value of the 'Item Type Definition' reference.
 XSDLengthFacet getLengthFacet()
          Returns the value of the 'Length Facet' reference.
 com.ibm.etools.emf.ref.EList getLexicalFinal()
          Returns the value of the 'Lexical Final' attribute list.
 com.ibm.etools.emf.ecore.EEnumLiteral getLiteralVariety()
          Returns the value of the 'Variety' attribute.
 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.
 com.ibm.etools.emf.ref.EList getMemberTypeDefinitions()
          Returns the value of the 'Member Type Definitions' reference list.
 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.
 com.ibm.etools.emf.ref.EList getPatternFacets()
          Returns the value of the 'Pattern Facets' reference list.
 XSDSimpleTypeDefinition getPrimitiveTypeDefinition()
          Returns the value of the 'Primitive Type Definition' reference.
 XSDSimpleTypeDefinition getRootTypeDefinition()
          Returns the value of the 'Root Type Definition' 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.
 java.lang.String getStringVariety()
          Returns the String value of the 'Variety' attribute.
 XSDTotalDigitsFacet getTotalDigitsFacet()
          Returns the value of the 'Total Digits Facet' reference.
 com.ibm.etools.emf.ref.EList getValidFacets()
          Returns the value of the 'Valid Facets' attribute list.
 java.lang.Object getValue(java.lang.String literal)
          Returns the value of the literal in the value space of this simple type definition.
 int getValueVariety()
          Returns the primitive value of the 'Variety' attribute.
 java.lang.Integer getVariety()
          Returns the Integer value of the 'Variety' attribute.
 XSDWhiteSpaceFacet getWhiteSpaceFacet()
          Returns the value of the 'White Space Facet' reference.
 boolean isSetBaseTypeDefinition()
          Returns whether the value of the 'Base Type Definition' reference is set.
 boolean isSetItemTypeDefinition()
          Returns whether the value of the 'Item Type Definition' reference is set.
 boolean isSetPrimitiveTypeDefinition()
          Returns whether the value of the 'Primitive Type Definition' reference is set.
 boolean isSetVariety()
          Returns whether the value of the 'Variety' attribute is set.
 boolean isValidLiteral(java.lang.String literal)
          Returns whether the literal is valid with respect to this simple type definition.
 void setBaseTypeDefinition(XSDSimpleTypeDefinition value)
          Sets the value of the 'Base Type Definition' reference.
 void setItemTypeDefinition(XSDSimpleTypeDefinition value)
          Sets the value of the 'Item Type Definition' reference.
 void setPrimitiveTypeDefinition(XSDSimpleTypeDefinition value)
          Sets the value of the 'Primitive Type Definition' reference.
 void setStringLexicalFinal(java.lang.String lexicalFinal)
          Sets the String value of the 'Lexical Final' attribute.
 void setVariety(com.ibm.etools.emf.ecore.EEnumLiteral value)
          Sets the value of the 'Variety' attribute.
 void setVariety(int value)
          Sets the value of the 'Variety' attribute.
 void setVariety(java.lang.Integer value)
          Sets the value of the 'Variety' attribute.
 void setVariety(java.lang.String value)
          Sets the value of the 'Variety' attribute.
 void unsetBaseTypeDefinition()
          Unsets the value of the 'Base Type Definition' reference.
 void unsetItemTypeDefinition()
          Unsets the value of the 'Item Type Definition' reference.
 void unsetPrimitiveTypeDefinition()
          Unsets the value of the 'Primitive Type Definition' reference.
 void unsetVariety()
          Unsets the value of the 'Variety' attribute.
 
Methods inherited from interface com.ibm.etools.xsd.XSDTypeDefinition
eClassXSDTypeDefinition, getAnnotation, getAnnotations, getBaseType, getComplexType, getDerivationAnnotation, getRootType, getSimpleType, isSetAnnotation, isSetDerivationAnnotation, setAnnotation, setDerivationAnnotation, unsetAnnotation, unsetDerivationAnnotation
 
Methods inherited from interface com.ibm.etools.xsd.XSDRedefinableComponent
eClassXSDRedefinableComponent, getCircular, isCircular
 
Methods inherited from interface com.ibm.etools.xsd.XSDNamedComponent
eClassXSDNamedComponent, getAliasName, getAliasURI, getName, getQName, getQName, getTargetNamespace, getURI, hasNameAndTargetNamespace, hasSameNameAndTargetNamespace, isSetName, isSetTargetNamespace, setName, setTargetNamespace, unsetName, unsetTargetNamespace
 
Methods inherited from interface com.ibm.etools.xsd.XSDComponent
eClassXSDComponent
 
Methods inherited from interface com.ibm.etools.xsd.XSDConcreteComponent
clearDiagnostics, cloneConcreteComponent, contains, eClassXSDConcreteComponent, elementAttributesChanged, elementChanged, elementContentsChanged, ePackageXSD, getComponentsWithApplicationInformation, getComponentsWithUserInformation, getContainer, getDiagnostics, getElement, getOwner, getRootContainer, getRootOwner, getSchema, getURIReferencePath, isSetElement, isSetOwner, isSetRootOwner, isSetSchema, 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, setOwner, setRootOwner, setSchema, unsetElement, unsetOwner, unsetRootOwner, unsetSchema, updateElement, updateElement, validate
 
Methods inherited from interface com.ibm.etools.emf.ref.RefObject
initInstance, refAddValue, refAddValueAt, refAddValueBefore, refCurrentValues, refDelegateOwner, refGetDefaultValues, refIsSet, refModifyValue, refModifyValueAt, refRemoveValue, refRemoveValueAt, refSetDelegateOwner, refSetValue, refUnsetValue, refValue
 
Methods inherited from interface com.ibm.etools.emf.ref.RefBaseObject
metaObject, refAttributes, refContainer, refContainerExtent, refContainerSF, refContainments, refContainments, refContains, refContains, refContainsExtent, refContainsNested, refDelete, refExtent, refID, refImmediatePackage, refIsContainer, refItself, refMetaObject, refMofId, refName, refOutermostPackage, refPackage, refReferences, refRemoveContent, refResource, refSetExtent, refSetID, refSetID, refSetIDContains, refSetMetaObject, refSetUUID, refSetUUID, refSetUUID
 
Methods inherited from interface com.ibm.etools.emf.notify.Notifier
addAdapter, getAdapter, getAdapters, getExistingAdapter, isDelivery, isDeliveryAll, notify, notify, removeAdapter, removeAllAdapters, setDelivery, setDeliveryAll
 
Methods inherited from interface com.ibm.etools.emf.resource.ResourceSetReference
getResourceSet
 
Methods inherited from interface com.ibm.etools.xsd.XSDRedefineContent
eClassXSDRedefineContent
 
Methods inherited from interface com.ibm.etools.xsd.XSDSchemaContent
eClassXSDSchemaContent
 
Methods inherited from interface com.ibm.etools.xsd.XSDComplexTypeContent
eClassXSDComplexTypeContent
 

Field Detail

copyright

public static final java.lang.String copyright
Method Detail

eClassXSDSimpleTypeDefinition

public com.ibm.etools.emf.ecore.EClass eClassXSDSimpleTypeDefinition()
Returns the meta class of XSDSimpleTypeDefinition.
Returns:
the meta class.
See Also:
XSDPackage.getXSDSimpleTypeDefinition(), XSDConcreteComponent.ePackageXSD()

getLiteralVariety

public com.ibm.etools.emf.ecore.EEnumLiteral getLiteralVariety()
Returns the value of the 'Variety' attribute. The literals are from the enumeration XSDVariety.

This represents the variety infoset property. It is computed based on the presence or absence of an item type or of member types, and should not be set directly.

Returns:
the value of the 'Variety' attribute.
See Also:
getValueVariety(), getVariety(), getStringVariety(), XSDVariety, isSetVariety(), unsetVariety(), setVariety(EEnumLiteral), XSDPackage.getXSDSimpleTypeDefinition_Variety()

getValueVariety

public int getValueVariety()
Returns the primitive value of the 'Variety' attribute.
Returns:
the primitive value of the 'Variety' attribute.
See Also:
getLiteralVariety(), getValueVariety(), getStringVariety(), XSDVariety, isSetVariety(), unsetVariety(), setVariety(int)

getStringVariety

public java.lang.String getStringVariety()
Returns the String value of the 'Variety' attribute.
Returns:
the String value of the 'Variety' attribute.
See Also:
getLiteralVariety(), getVariety(), getValueVariety(), XSDVariety, isSetVariety(), unsetVariety(), setVariety(String)

getVariety

public java.lang.Integer getVariety()
Returns the Integer value of the 'Variety' attribute.
Returns:
the Integer value of the 'Variety' attribute.
See Also:
getLiteralVariety(), getValueVariety(), getStringVariety(), XSDVariety, isSetVariety(), unsetVariety(), setVariety(Integer)

setVariety

public void setVariety(com.ibm.etools.emf.ecore.EEnumLiteral value)
                throws com.ibm.etools.emf.ref.EnumerationException
Sets the value of the 'Variety' attribute.
Parameters:
value - the new value of the 'Variety' attribute.
See Also:
setVariety(int), setVariety(Integer), setVariety(String), XSDVariety, isSetVariety(), unsetVariety(), getLiteralVariety()

setVariety

public void setVariety(int value)
                throws com.ibm.etools.emf.ref.EnumerationException
Sets the value of the 'Variety' attribute.
Parameters:
value - the int value of the new enumeration literal value of the 'Variety' attribute.
See Also:
setVariety(EEnumLiteral), setVariety(Integer), setVariety(String), XSDVariety, isSetVariety(), unsetVariety(), getValueVariety()

setVariety

public void setVariety(java.lang.String value)
                throws com.ibm.etools.emf.ref.EnumerationException
Sets the value of the 'Variety' attribute.
Parameters:
value - the String value of the new enumeration literal value of the 'Variety' attribute.
See Also:
setVariety(EEnumLiteral), setVariety(int), setVariety(Integer), XSDVariety, isSetVariety(), unsetVariety(), getStringVariety()

setVariety

public void setVariety(java.lang.Integer value)
                throws com.ibm.etools.emf.ref.EnumerationException
Sets the value of the 'Variety' attribute.
Parameters:
value - the Integer value of the new enumeration literal value of the 'Variety' attribute.
See Also:
setVariety(EEnumLiteral), setVariety(int), setVariety(String), XSDVariety, isSetVariety(), unsetVariety(), getValueVariety()

unsetVariety

public void unsetVariety()
Unsets the value of the 'Variety' attribute.
See Also:
isSetVariety(), getLiteralVariety(), setVariety(EEnumLiteral)

isSetVariety

public boolean isSetVariety()
Returns whether the value of the 'Variety' attribute is set.
Returns:
whether the value of the 'Variety' attribute is set.
See Also:
unsetVariety(), getLiteralVariety(), setVariety(EEnumLiteral)

getFinal

public com.ibm.etools.emf.ref.EList getFinal()
Returns the value of the 'Final' attribute list. The list contents are of type EEnumLiteral. The literals are from the enumeration XSDSimpleFinal.

This represents the final infoset property. It is computed from the lexical final and should not typically be modified directly.

Returns:
the value of the 'Final' attribute list.
See Also:
getStringFinal(), XSDPackage.getXSDSimpleTypeDefinition_Final()

getStringFinal

public java.lang.String getStringFinal()
Returns the String value of the 'Final' attribute list.
Returns:
the String value of the 'Final' attribute list.
See Also:
getFinal()

getLexicalFinal

public com.ibm.etools.emf.ref.EList getLexicalFinal()
Returns the value of the 'Lexical Final' attribute list. The list contents are of type EEnumLiteral. The literals are from the enumeration XSDSimpleFinal.

This concrete attribute list represents the value of the final attribute.

Returns:
the value of the 'Lexical Final' attribute list.
See Also:
getStringLexicalFinal(), XSDPackage.getXSDSimpleTypeDefinition_LexicalFinal()

getStringLexicalFinal

public java.lang.String getStringLexicalFinal()
Returns the String value of the 'Lexical Final' attribute list.
Returns:
the String value of the 'Lexical Final' attribute list.
See Also:
getLexicalFinal(), setStringLexicalFinal(java.lang.String)

setStringLexicalFinal

public void setStringLexicalFinal(java.lang.String lexicalFinal)
Sets the String value of the 'Lexical Final' attribute.
Parameters:
value - the new value of the 'Lexical Final' attribute.
See Also:
getLexicalFinal(), getStringLexicalFinal()

getValidFacets

public com.ibm.etools.emf.ref.EList getValidFacets()
Returns the value of the 'Valid Facets' attribute list. The list contents are of type String.

This computed attribute list represents the facet name of each type of facet that is valid for this simple type definition.

Returns:
the value of the 'Valid Facets' attribute list.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_ValidFacets()

getContents

public com.ibm.etools.emf.ref.EList getContents()
Returns the value of the 'Contents' reference list. The list contents are of type XSDSimpleTypeDefinition.

This concrete reference list represents the anonymous simple type definition content of a restriction, list, or union element.

Returns:
the value of the 'Contents' reference list.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_Contents()

getFacetContents

public com.ibm.etools.emf.ref.EList getFacetContents()
Returns the value of the 'Facet Contents' reference list. The list contents are of type XSDConstrainingFacet.

This concrete reference list represents the facet contents of a restriction. There are convenience methods named getXyzFacet that provide direct access to the individual facets. There are, however, no methods named setXyzFacet; one should add facets to this list or remove facets from this list in order to effect change.

Returns:
the value of the 'Facet Contents' reference list.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_FacetContents()

getFacets

public com.ibm.etools.emf.ref.EList getFacets()
Returns the value of the 'Facets' reference list. The list contents are of type XSDConstrainingFacet.

This represents the facets infoset property. It is computed from the facet contents and should typically not be modified directly.

Returns:
the value of the 'Facets' reference list.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_Facets()

getMemberTypeDefinitions

public com.ibm.etools.emf.ref.EList getMemberTypeDefinitions()
Returns the value of the 'Member Type Definitions' reference list. The list contents are of type XSDSimpleTypeDefinition.

This represents the member type definitions infoset property. When constructing a union type, each anonymous member type should be added to both this list and to the contents list:

  xsdSimpleTypeDefinition.getMemberTypeDefinitions().add(anonymousMemberType);
  xsdSimpleTypeDefinition.getContents()().add(anonymousMemberType);
 
 The variety is determined automatically by the presence of member type definitions.

Returns:
the value of the 'Member Type Definitions' reference list.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_MemberTypeDefinitions()

getFundamentalFacets

public com.ibm.etools.emf.ref.EList getFundamentalFacets()
Returns the value of the 'Fundamental Facets' reference list. The list contents are of type XSDFundamentalFacet.

This represents the fundamental facets infoset property. It is computed and should typically not be modified directly.

Returns:
the value of the 'Fundamental Facets' reference list.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_FundamentalFacets()

getBaseTypeDefinition

public XSDSimpleTypeDefinition getBaseTypeDefinition()
Returns the value of the 'Base Type Definition' reference.

This represents the base type definition infoset property.

Returns:
the value of the 'Base Type Definition' reference.
See Also:
isSetBaseTypeDefinition(), unsetBaseTypeDefinition(), setBaseTypeDefinition(XSDSimpleTypeDefinition), XSDPackage.getXSDSimpleTypeDefinition_BaseTypeDefinition()

setBaseTypeDefinition

public void setBaseTypeDefinition(XSDSimpleTypeDefinition value)
Sets the value of the 'Base Type Definition' reference.
Parameters:
value - the new value of the 'Base Type Definition' reference.
See Also:
isSetBaseTypeDefinition(), unsetBaseTypeDefinition(), getBaseTypeDefinition()

unsetBaseTypeDefinition

public void unsetBaseTypeDefinition()
Unsets the value of the 'Base Type Definition' reference.
See Also:
isSetBaseTypeDefinition(), getBaseTypeDefinition(), setBaseTypeDefinition(XSDSimpleTypeDefinition)

isSetBaseTypeDefinition

public boolean isSetBaseTypeDefinition()
Returns whether the value of the 'Base Type Definition' reference is set.
Returns:
whether the value of the 'Base Type Definition' reference is set.
See Also:
unsetBaseTypeDefinition(), getBaseTypeDefinition(), setBaseTypeDefinition(XSDSimpleTypeDefinition)

getPrimitiveTypeDefinition

public XSDSimpleTypeDefinition getPrimitiveTypeDefinition()
Returns the value of the 'Primitive Type Definition' reference.

This represents the primitive type definition infoset property.

Returns:
the value of the 'Primitive Type Definition' reference.
See Also:
isSetPrimitiveTypeDefinition(), unsetPrimitiveTypeDefinition(), setPrimitiveTypeDefinition(XSDSimpleTypeDefinition), XSDPackage.getXSDSimpleTypeDefinition_PrimitiveTypeDefinition()

setPrimitiveTypeDefinition

public void setPrimitiveTypeDefinition(XSDSimpleTypeDefinition value)
Sets the value of the 'Primitive Type Definition' reference.
Parameters:
value - the new value of the 'Primitive Type Definition' reference.
See Also:
isSetPrimitiveTypeDefinition(), unsetPrimitiveTypeDefinition(), getPrimitiveTypeDefinition()

unsetPrimitiveTypeDefinition

public void unsetPrimitiveTypeDefinition()
Unsets the value of the 'Primitive Type Definition' reference.
See Also:
isSetPrimitiveTypeDefinition(), getPrimitiveTypeDefinition(), setPrimitiveTypeDefinition(XSDSimpleTypeDefinition)

isSetPrimitiveTypeDefinition

public boolean isSetPrimitiveTypeDefinition()
Returns whether the value of the 'Primitive Type Definition' reference is set.
Returns:
whether the value of the 'Primitive Type Definition' reference is set.
See Also:
unsetPrimitiveTypeDefinition(), getPrimitiveTypeDefinition(), setPrimitiveTypeDefinition(XSDSimpleTypeDefinition)

getItemTypeDefinition

public XSDSimpleTypeDefinition getItemTypeDefinition()
Returns the value of the 'Item Type Definition' reference.

This represents the item type definition infoset property. When constructing a list type, an anonymous item type should be both set using this method and added to the contents list:

  xsdSimpleTypeDefinition.setItemTypeDefinition().add(itemType);
  xsdSimpleTypeDefinition.getContents()().add(itemType);
The variety is determined automatically by the presence of an item type definition.

Returns:
the value of the 'Item Type Definition' reference.
See Also:
isSetItemTypeDefinition(), unsetItemTypeDefinition(), setItemTypeDefinition(XSDSimpleTypeDefinition), XSDPackage.getXSDSimpleTypeDefinition_ItemTypeDefinition()

setItemTypeDefinition

public void setItemTypeDefinition(XSDSimpleTypeDefinition value)
Sets the value of the 'Item Type Definition' reference.
Parameters:
value - the new value of the 'Item Type Definition' reference.
See Also:
isSetItemTypeDefinition(), unsetItemTypeDefinition(), getItemTypeDefinition()

unsetItemTypeDefinition

public void unsetItemTypeDefinition()
Unsets the value of the 'Item Type Definition' reference.
See Also:
isSetItemTypeDefinition(), getItemTypeDefinition(), setItemTypeDefinition(XSDSimpleTypeDefinition)

isSetItemTypeDefinition

public boolean isSetItemTypeDefinition()
Returns whether the value of the 'Item Type Definition' reference is set.
Returns:
whether the value of the 'Item Type Definition' reference is set.
See Also:
unsetItemTypeDefinition(), getItemTypeDefinition(), setItemTypeDefinition(XSDSimpleTypeDefinition)

getRootTypeDefinition

public XSDSimpleTypeDefinition getRootTypeDefinition()
Returns the value of the 'Root Type Definition' reference.

This walks the base type definitions until it hits that one that has the ur-type definition as it's base type definition.

Returns:
the value of the 'Root Type Definition' reference.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_RootTypeDefinition()

getMinFacet

public XSDMinFacet getMinFacet()
Returns the value of the 'Min Facet' reference.

This represents the XSDMinFacet of the facet contents.

Returns:
the value of the 'Min Facet' reference.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_MinFacet()

getMaxFacet

public XSDMaxFacet getMaxFacet()
Returns the value of the 'Max Facet' reference.

This represents the XSDMaxFacet of the facet contents.

Returns:
the value of the 'Max Facet' reference.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_MaxFacet()

getMaxInclusiveFacet

public XSDMaxInclusiveFacet getMaxInclusiveFacet()
Returns the value of the 'Max Inclusive Facet' reference.

This represents the XSDMaxInclusiveFacet of the facet contents.

Returns:
the value of the 'Max Inclusive Facet' reference.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_MaxInclusiveFacet()

getMinInclusiveFacet

public XSDMinInclusiveFacet getMinInclusiveFacet()
Returns the value of the 'Min Inclusive Facet' reference.

This represents the XSDMinInclusiveFacet of the facet contents.

Returns:
the value of the 'Min Inclusive Facet' reference.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_MinInclusiveFacet()

getMinExclusiveFacet

public XSDMinExclusiveFacet getMinExclusiveFacet()
Returns the value of the 'Min Exclusive Facet' reference.

This represents the XSDMinExclusiveFacet of the facet contents.

Returns:
the value of the 'Min Exclusive Facet' reference.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_MinExclusiveFacet()

getMaxExclusiveFacet

public XSDMaxExclusiveFacet getMaxExclusiveFacet()
Returns the value of the 'Max Exclusive Facet' reference.

This represents the XSDMaxExclusiveFacet of the facet contents.

Returns:
the value of the 'Max Exclusive Facet' reference.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_MaxExclusiveFacet()

getLengthFacet

public XSDLengthFacet getLengthFacet()
Returns the value of the 'Length Facet' reference.

This represents the XSDLengthFacet of the facet contents.

Returns:
the value of the 'Length Facet' reference.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_LengthFacet()

getWhiteSpaceFacet

public XSDWhiteSpaceFacet getWhiteSpaceFacet()
Returns the value of the 'White Space Facet' reference.

This represents the XSDWhiteSpaceFacet of the facet contents.

Returns:
the value of the 'White Space Facet' reference.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_WhiteSpaceFacet()

getEnumerationFacets

public com.ibm.etools.emf.ref.EList getEnumerationFacets()
Returns the value of the 'Enumeration Facets' reference list. The list contents are of type XSDEnumerationFacet.

This represents the XSDEnumerationFacet of the facet contents.

Returns:
the value of the 'Enumeration Facets' reference list.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_EnumerationFacets()

getPatternFacets

public com.ibm.etools.emf.ref.EList getPatternFacets()
Returns the value of the 'Pattern Facets' reference list. The list contents are of type XSDPatternFacet.

This represents the XSDPatternFacet of the facet contents.

Returns:
the value of the 'Pattern Facets' reference list.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_PatternFacets()

getCardinalityFacet

public XSDCardinalityFacet getCardinalityFacet()
Returns the value of the 'Cardinality Facet' reference.

This represents the XSDCardinalityFacet of the fundamental facets.

Returns:
the value of the 'Cardinality Facet' reference.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_CardinalityFacet()

getNumericFacet

public XSDNumericFacet getNumericFacet()
Returns the value of the 'Numeric Facet' reference.

This represents the XSDNumericFacet of the fundamental facets.

Returns:
the value of the 'Numeric Facet' reference.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_NumericFacet()

getMaxLengthFacet

public XSDMaxLengthFacet getMaxLengthFacet()
Returns the value of the 'Max Length Facet' reference.

This represents the XSDMaxLengthFacet of the facet contents.

Returns:
the value of the 'Max Length Facet' reference.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_MaxLengthFacet()

getMinLengthFacet

public XSDMinLengthFacet getMinLengthFacet()
Returns the value of the 'Min Length Facet' reference.

This represents the XSDMinLengthFacet of the facet contents.

Returns:
the value of the 'Min Length Facet' reference.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_MinLengthFacet()

getTotalDigitsFacet

public XSDTotalDigitsFacet getTotalDigitsFacet()
Returns the value of the 'Total Digits Facet' reference.

This represents the XSDTotalDigitsFacet of the facet contents.

Returns:
the value of the 'Total Digits Facet' reference.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_TotalDigitsFacet()

getFractionDigitsFacet

public XSDFractionDigitsFacet getFractionDigitsFacet()
Returns the value of the 'Fraction Digits Facet' reference.

This represents the XSDFractionDigitsFacet of the facet contents.

Returns:
the value of the 'Fraction Digits Facet' reference.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_FractionDigitsFacet()

getOrderedFacet

public XSDOrderedFacet getOrderedFacet()
Returns the value of the 'Ordered Facet' reference.

This represents the XSDOrderedFacet of the fundamental facets.

Returns:
the value of the 'Ordered Facet' reference.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_OrderedFacet()

getBoundedFacet

public XSDBoundedFacet getBoundedFacet()
Returns the value of the 'Bounded Facet' reference.

This represents the XSDBoundedFacet of the fundamental facets.

Returns:
the value of the 'Bounded Facet' reference.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_BoundedFacet()

getEffectiveMaxFacet

public XSDMaxFacet getEffectiveMaxFacet()
Returns the value of the 'Effective Max Facet' reference.

This represents the XSDMaxFacet of the facets.

Returns:
the value of the 'Effective Max Facet' reference.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_EffectiveMaxFacet()

getEffectiveWhiteSpaceFacet

public XSDWhiteSpaceFacet getEffectiveWhiteSpaceFacet()
Returns the value of the 'Effective White Space Facet' reference.

This represents the XSDWhiteSpaceFacet of the facets.

Returns:
the value of the 'Effective White Space Facet' reference.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_EffectiveWhiteSpaceFacet()

getEffectiveMaxLengthFacet

public XSDMaxLengthFacet getEffectiveMaxLengthFacet()
Returns the value of the 'Effective Max Length Facet' reference.

This represents the XSDMaxLengthFacet of the facets.

Returns:
the value of the 'Effective Max Length Facet' reference.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_EffectiveMaxLengthFacet()

getEffectiveFractionDigitsFacet

public XSDFractionDigitsFacet getEffectiveFractionDigitsFacet()
Returns the value of the 'Effective Fraction Digits Facet' reference.

This represents the XSDFractionDigitsFacet of the facets.

Returns:
the value of the 'Effective Fraction Digits Facet' reference.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_EffectiveFractionDigitsFacet()

getEffectivePatternFacet

public XSDPatternFacet getEffectivePatternFacet()
Returns the value of the 'Effective Pattern Facet' reference.

This represents the XSDPatternFacet of the facets. To iterate through each pattern that applies for this type, use the list returned by getEffectivePatternFacet().getValue().

Returns:
the value of the 'Effective Pattern Facet' reference.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_EffectivePatternFacet()

getEffectiveEnumerationFacet

public XSDEnumerationFacet getEffectiveEnumerationFacet()
Returns the value of the 'Effective Enumeration Facet' reference.

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().

Returns:
the value of the 'Effective Enumeration Facet' reference.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_EffectiveEnumerationFacet()

getEffectiveTotalDigitsFacet

public XSDTotalDigitsFacet getEffectiveTotalDigitsFacet()
Returns the value of the 'Effective Total Digits Facet' reference.

This represents the XSDTotalDigitsFacet of the facets.

Returns:
the value of the 'Effective Total Digits Facet' reference.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_EffectiveTotalDigitsFacet()

getEffectiveMinLengthFacet

public XSDMinLengthFacet getEffectiveMinLengthFacet()
Returns the value of the 'Effective Min Length Facet' reference.

This represents the XSDMinLengthFacet of the facets.

Returns:
the value of the 'Effective Min Length Facet' reference.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_EffectiveMinLengthFacet()

getEffectiveLengthFacet

public XSDLengthFacet getEffectiveLengthFacet()
Returns the value of the 'Effective Length Facet' reference.

This represents the XSDLengthFacet of the facets.

Returns:
the value of the 'Effective Length Facet' reference.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_EffectiveLengthFacet()

getEffectiveMinFacet

public XSDMinFacet getEffectiveMinFacet()
Returns the value of the 'Effective Min Facet' reference.

This represents the XSDMinLengthFacet of the facets.

Returns:
the value of the 'Effective Min Facet' reference.
See Also:
XSDPackage.getXSDSimpleTypeDefinition_EffectiveMinFacet()

assess

public XSDSimpleTypeDefinition.Assessment assess(Node node)
Returns an assessment of the node.
Returns:
an assessment of the node.
See Also:
assess(java.lang.String)

assess

public XSDSimpleTypeDefinition.Assessment assess(java.lang.String literal)
Returns an assessment of the literal.
Returns:
an assessment of the literal.
See Also:
assess(org.w3c.dom.Node)

isValidLiteral

public boolean isValidLiteral(java.lang.String literal)
Returns whether the literal is valid with respect to this simple type definition. This involves assessing that the literal has no diagnostics.
Parameters:
literal - a literal.
Returns:
whether the literal is valid.

getValue

public java.lang.Object getValue(java.lang.String literal)
Returns the value of the literal in the value space of this simple type definition.
Parameters:
literal - a literal.
Returns:
the value of the literal.

getNormalizedLiteral

public java.lang.String getNormalizedLiteral(java.lang.String literal)
Returns the normalized value of the literal with respect to this simple type definition.
Parameters:
literal - a literal.
Returns:
the normalized value of the literal.

getCanonicalLiteral

public java.lang.String getCanonicalLiteral(java.lang.String literal)
Returns the canonical literal of the literal with respect to this simple type definition.
Parameters:
literal - a literal.
Returns:
the canonical literal of the literal.

compareLiterals

public 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.
Parameters:
literal1 - a literal.
literal2 - another literal.
Returns:
-1, 0, or 1, depending on the order of the value of each of the given literals.

compareValues

public int compareValues(java.lang.Object value1,
                         java.lang.Object value2)
Returns -1, 0, or 1, depending on the order of the values.
Parameters:
value1 - a value.
value2 - another value.
Returns:
-1, 0, or 1, depending on the order of the values.

equalLiterals

public boolean equalLiterals(java.lang.String literal1,
                             java.lang.String literal2)
Returns whether the value of each of the given literals are equal.
Parameters:
literal1 - a literal.
literal2 - another literal.
Returns:
whether the value of each of the given literals are equal.

equalValues

public boolean equalValues(java.lang.Object value1,
                           java.lang.Object value2)
Returns whether the values are equal.
Parameters:
literal1 - a literal.
literal2 - another literal.
Returns:
whether the values are equal.