Top Description Methods
com.sun.tools.rngdatatype

public Interface DatatypeLibrary

Known Direct Implementers
com.sun.tools.rngom.dt.builtin.BuiltinDatatypeLibrary, com.sun.tools.rngom.dt.builtin.CompatibilityDatatypeLibrary

A Datatype library
Authors
James Clark, Kohsuke KAWAGUCHI

Method Summary

Modifier and TypeMethod and Description
public Datatype

Returns:

A non-null valid datatype object.
createDatatype
(String typeLocalName)

Gets or creates a pre-defined type.

public DatatypeBuilder

Returns:

A non-null valid datatype object.
createDatatypeBuilder
(String
The local name of the base type.
baseTypeLocalName
)

Creates a new instance of DatatypeBuilder.

Method Detail

createDatatypeback to summary
public Datatype createDatatype(String typeLocalName) throws DatatypeException

Gets or creates a pre-defined type. This is just a short-cut of createDatatypeBuilder(typeLocalName).createDatatype(); The callee should throw a DatatypeException in case of an error.

Returns:Datatype

A non-null valid datatype object.

createDatatypeBuilderback to summary
public DatatypeBuilder createDatatypeBuilder(String baseTypeLocalName) throws DatatypeException

Creates a new instance of DatatypeBuilder. The callee should throw a DatatypeException in case of an error.

Parameters
baseTypeLocalName:String

The local name of the base type.

Returns:DatatypeBuilder

A non-null valid datatype object.