XmlToken Interface

com.bea.xml
XmlToken Interface

public interface XmlToken

    extends XmlNormalizedString

Corresponds to the XML Schema xs:token type. One of the derived types based on xs:string.

A token is XML's best representation for a "whitespace insensitive string." All carriage returns, linefeeds, and tabs are converted to ordinary space characters (as with xs:normalizedString), and furthermore, all contiguous runs of space are collapsed to single spaces, and leading and trailing spaces are trimmed.

If you want "  high  priority  " to be equivalent to "high priority", you should consider using xs:token or a subtype of xs:token.

When the XmlToken.stringValue() is obtained from an XmlToken, the normalized, trimmed, whitespace collapsed value is returned.

Convertible to String.


All Superinterfaces
XmlAnySimpleType, XmlNormalizedString, XmlObject, XmlString, XmlTokenSource
All Known Subinterfaces

XmlENTITY, XmlID, XmlIDREF, XmlLanguage, XmlName, XmlNCName, XmlNMTOKEN

Nested Class Summary

public static final classXmlToken.Factory
           A class with methods for creating instances of XmlToken.
 
Nested classes from interface com.bea.xml.XmlAnySimpleType
XmlAnySimpleType.Factory
 
Nested classes from interface com.bea.xml.XmlNormalizedString
XmlNormalizedString.Factory
 
Nested classes from interface com.bea.xml.XmlObject
XmlObject.Factory
 
Nested classes from interface com.bea.xml.XmlString
XmlString.Factory
 

Field Summary

public static final SchemaType
type
The constant SchemaType object representing this schema type.
   
Fields from interface com.bea.xml.XmlAnySimpleType
type
 
Fields from interface com.bea.xml.XmlNormalizedString
type
 
Fields from interface com.bea.xml.XmlObject
EQUAL, GREATER_THAN, LESS_THAN, NOT_EQUAL, type
 
Fields from interface com.bea.xml.XmlString
type
 

Method Summary

 
Methods from interface com.bea.xml.XmlAnySimpleType
getStringValue, set, setStringValue, stringValue
 
Methods from interface com.bea.xml.XmlObject
changeType, compareTo, compareValue, copy, execQuery, execQuery, isImmutable, isNil, schemaType, selectPath, selectPath, set, setNil, toString, validate, validate, valueEquals, valueHashCode
 
Methods from interface com.bea.xml.XmlTokenSource
documentProperties, monitor, newCursor, newDomNode, newDomNode, newInputStream, newInputStream, newReader, newReader, newXMLInputStream, newXMLInputStream, save, save, save, save, save, save, save, save, xmlText, xmlText
   

Field Detail

type

public static final SchemaType type
The constant SchemaType object representing this schema type.