Package com.sun.msv.reader.datatype.xsd
Class XSDVocabulary
- java.lang.Object
-
- com.sun.msv.reader.datatype.xsd.XSDVocabulary
-
- All Implemented Interfaces:
DataTypeVocabulary,java.io.Serializable
public class XSDVocabulary extends java.lang.Object implements DataTypeVocabulary, java.io.Serializable
XSD implementation ofDataTypeVocabulary.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringXMLSchemaNamespacenamespace URI of XML Schemastatic java.lang.StringXMLSchemaNamespace2
-
Constructor Summary
Constructors Constructor Description XSDVocabulary()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatecreateTopLevelReaderState(StartTagInfo tag)creates a State object that will parse the element specified by tag parameter.org.relaxng.datatype.DatatypegetType(java.lang.String localTypeName)resolves a type name to Datatype object.
-
-
-
Field Detail
-
XMLSchemaNamespace
public static final java.lang.String XMLSchemaNamespace
namespace URI of XML Schema- See Also:
- Constant Field Values
-
XMLSchemaNamespace2
public static final java.lang.String XMLSchemaNamespace2
- See Also:
- Constant Field Values
-
-
Method Detail
-
createTopLevelReaderState
public State createTopLevelReaderState(StartTagInfo tag)
Description copied from interface:DataTypeVocabularycreates a State object that will parse the element specified by tag parameter.- Specified by:
createTopLevelReaderStatein interfaceDataTypeVocabulary- Returns:
- null if given start tag is not recognized by this object. This method is called when an "island" of this vocabulary was found. The state returned from this method will be used to parse the root element of this island. The parent state of this state must implement TypeOwner or ExpressionOwner. In either case, the implementation must report its parsing result by calling either interface. If both interface is implemented, the implementation must notify via TypeOwner interface only and may not call methods of ExpressionOwner. If the parsed island is not a type definition (for example, comments or inclusion), the implementation may not call TypeOwner nor ExpressionOwner.
-
getType
public org.relaxng.datatype.Datatype getType(java.lang.String localTypeName) throws org.relaxng.datatype.DatatypeExceptionDescription copied from interface:DataTypeVocabularyresolves a type name to Datatype object.- Specified by:
getTypein interfaceDataTypeVocabulary- Parameters:
localTypeName- local part of the qualified name, like "string" or "integer". prefix part must be removed by the caller.- Returns:
- a non-null valid datatype object.
- Throws:
org.relaxng.datatype.DatatypeException- if the specified type name is a valid type name.
-
-