Top Description Fields Constructors Methods
com.sun.msv.reader.datatype.xsd

public Class XSDVocabulary

extends Object
implements DataTypeVocabulary, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, com.sun.msv.reader.datatype.DataTypeVocabulary
Annotations
@SuppressWarnings:serial
Imports
org.relaxng.datatype.Datatype, .DatatypeException, com.sun.msv.datatype.xsd.DatatypeFactory, com.sun.msv.reader.State, com.sun.msv.reader.datatype.DataTypeVocabulary, com.sun.msv.util.StartTagInfo

XSD implementation of DataTypeVocabulary.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
public static final String
XMLSchemaNamespace

namespace URI of XML Schema

public static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public State
createTopLevelReaderState(StartTagInfo tag)

Implements com.sun.msv.reader.datatype.DataTypeVocabulary.createTopLevelReaderState.

creates a State object that will parse the element specified by tag parameter.
public Datatype
getType(String
local part of the qualified name, like "string" or "integer". prefix part must be removed by the caller.
localTypeName
)

Implements com.sun.msv.reader.datatype.DataTypeVocabulary.getType.

resolves a type name to Datatype object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

XMLSchemaNamespaceback to summary
public static final String XMLSchemaNamespace

namespace URI of XML Schema

XMLSchemaNamespace2back to summary
public static final String XMLSchemaNamespace2

Constructor Detail

XSDVocabularyback to summary
public XSDVocabulary()

Method Detail

createTopLevelReaderStateback to summary
public State createTopLevelReaderState(StartTagInfo tag)

Implements com.sun.msv.reader.datatype.DataTypeVocabulary.createTopLevelReaderState.

Doc from com.sun.msv.reader.datatype.DataTypeVocabulary.createTopLevelReaderState.

creates a State object that will parse the element specified by tag parameter.

Returns:State

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.

getTypeback to summary
public Datatype getType(String localTypeName) throws DatatypeException

Implements com.sun.msv.reader.datatype.DataTypeVocabulary.getType.

Doc from com.sun.msv.reader.datatype.DataTypeVocabulary.getType.

resolves a type name to Datatype object.

Parameters
localTypeName:String

local part of the qualified name, like "string" or "integer". prefix part must be removed by the caller.

Returns:Datatype

a non-null valid datatype object.

Exceptions
DatatypeException:
if the specified type name is a valid type name.