org.gxml.xs
Interface SmSimpleType<A,S>

All Superinterfaces:
SmComponent<A,S>, SmSequenceType<A,S>, SmType<A,S>
All Known Subinterfaces:
SmAtomicType<A,S>, SmAtomicUrType<A,S>, SmListType<A,S>, SmSimpleUrType<A,S>, SmUnionType<A,S>

public interface SmSimpleType<A,S>
extends SmType<A,S>


Method Summary
 java.util.List<A> compile(java.util.List<? extends A> value)
           
 java.util.List<A> compile(java.lang.String initialValue)
           
 java.util.List<A> compile(java.lang.String initialValue, SmPrefixResolver<S> resolver)
           
 java.lang.Iterable<SmEnumeration<A>> getEnumerations()
           
 SmFacet<A,S> getFacetOfKind(SmFacetKind facetKind)
           
 java.lang.Iterable<SmFacet<A,S>> getFacets()
           
 java.lang.Iterable<SmPattern> getPatterns()
          Returns the pattern facets for this derivation step, may be null.
 SmSimpleType<A,S> getPrimitiveType()
           
 SmWhiteSpacePolicy getWhiteSpacePolicy()
           
 boolean hasEnumerations()
           
 boolean hasFacetOfKind(SmFacetKind facetKind)
           
 boolean hasFacets()
           
 boolean hasPatterns()
          Determines whether this derivation step has pattern facets.
 boolean isID()
          Returns whether this type is derived from xs:ID
 boolean isIDREF()
          Returns whether this type is derived from xs:IDREF
 boolean isIDREFS()
          Returns whether this type is derived from xs:IDREFS
 boolean isListType()
           
 boolean isUnionType()
           
 java.lang.String normalize(java.lang.String initialValue)
          Normalize this type (simple types only).
 java.util.List<A> validate(java.util.List<? extends A> value)
           
 java.util.List<A> validate(java.lang.String initialValue)
          Determines whether the supplied string literal is valid with respect to this type definition and, if successful, calculates the value space representation of the literal.
 java.util.List<A> validate(java.lang.String initialValue, SmPrefixResolver<S> resolver)
           
 
Methods inherited from interface org.gxml.xs.SmType
derivedFrom, derivedFromType, getBaseType, getDerivationMethod, getFinal, getLocalName, getName, getTargetNamespace, isAbstract, isAnonymous, isAtomicUrType, isComplexUrType, isFinal, isNative, isSimpleUrType
 
Methods inherited from interface org.gxml.xs.SmComponent
getScope
 
Methods inherited from interface org.gxml.xs.SmSequenceType
accept, atomSet, parentAxis, prime, quantifier
 

Method Detail

compile

java.util.List<A> compile(java.util.List<? extends A> value)
                          throws SmDatatypeException
Throws:
SmDatatypeException

compile

java.util.List<A> compile(java.lang.String initialValue)
                          throws SmDatatypeException
Throws:
SmDatatypeException

compile

java.util.List<A> compile(java.lang.String initialValue,
                          SmPrefixResolver<S> resolver)
                          throws SmDatatypeException
Throws:
SmDatatypeException

getEnumerations

java.lang.Iterable<SmEnumeration<A>> getEnumerations()

getFacetOfKind

SmFacet<A,S> getFacetOfKind(SmFacetKind facetKind)

getFacets

java.lang.Iterable<SmFacet<A,S>> getFacets()

getPatterns

java.lang.Iterable<SmPattern> getPatterns()
Returns the pattern facets for this derivation step, may be null.


getPrimitiveType

SmSimpleType<A,S> getPrimitiveType()

getWhiteSpacePolicy

SmWhiteSpacePolicy getWhiteSpacePolicy()

hasEnumerations

boolean hasEnumerations()

hasFacetOfKind

boolean hasFacetOfKind(SmFacetKind facetKind)

hasFacets

boolean hasFacets()

hasPatterns

boolean hasPatterns()
Determines whether this derivation step has pattern facets.


isID

boolean isID()
Returns whether this type is derived from xs:ID


isIDREF

boolean isIDREF()
Returns whether this type is derived from xs:IDREF


isIDREFS

boolean isIDREFS()
Returns whether this type is derived from xs:IDREFS


isListType

boolean isListType()

isUnionType

boolean isUnionType()

normalize

java.lang.String normalize(java.lang.String initialValue)
Normalize this type (simple types only). This applies the whitespace pseudo-facet for the type in question. List does collapse processing; atomic types delegate to the atom manager's own normalization routines (typically also collapse, but possibly replace or preserve).

Parameters:
initialValue - The lexical value (in XML Schema terms, the initial value). Must not be null.
Returns:
A normalized string, which may be identical to the initial value, and is never null (in XML Schema terms, the normalized value).

validate

java.util.List<A> validate(java.util.List<? extends A> value)
                           throws SmDatatypeException
Throws:
SmDatatypeException

validate

java.util.List<A> validate(java.lang.String initialValue)
                           throws SmDatatypeException
Determines whether the supplied string literal is valid with respect to this type definition and, if successful, calculates the value space representation of the literal.

Applies only to simple type definitions.

The lexical facets of the value are first checked and then it is parsed and expanded to bring it into the value space defined by this type. Validation then proceeds by checking facets appropriate to this type.

Parameters:
initialValue - The string literal to be validated.
Throws:
SmDatatypeException - If the string literal is not valid with respect to this type definition.

validate

java.util.List<A> validate(java.lang.String initialValue,
                           SmPrefixResolver<S> resolver)
                           throws SmDatatypeException
Throws:
SmDatatypeException


Copyright © 2009 TIBCO Software Inc. All Rights Reserved.