|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataTypeVocabulary
this class is used to parse foreign datatype vocabulary. Each datatype vocabulary must be associated with one namespace URI. When the element with that namespace URI is first found, this object is instanciated. After that, whenever the element with the namespace URI is found, createTopLevelReaderState method will be used to parse the element (and its descendants.) And whenever a reference to this vocabulary by name (e.g., "mydt:mytypename") is found, getType method is called to resolve this name into DataType object. One instance of this class is used throughout the parsing of one grammar. Therefore, implementations are encouraged to take advantages of this property and keep context information (e.g., user-defined named datatypes).
Method Summary | |
---|---|
State |
createTopLevelReaderState(StartTagInfo tag)
creates a State object that will parse the element specified by tag parameter. |
Datatype |
getType(String localTypeName)
resolves a type name to Datatype object. |
Method Detail |
---|
State createTopLevelReaderState(StartTagInfo tag)
Datatype getType(String localTypeName) throws DatatypeException
localTypeName
- local part of the qualified name, like "string" or "integer".
prefix part must be removed by the caller.
DatatypeException
- if the specified type name is a valid type name.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |