DatatypeLibrary implementation which is used
to recover from "unknown datatype library" error.
| Modifier and Type | Field and Description |
|---|---|
| public static final ErrorDatatypeLibrary | theInstance
The sole instance of this class. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | addParameter(String
The name of the parameter to be added. name, String The raw value of the parameter. Caller may not normalize
this value because any white space is potentially significant. value, ValidationContext The context information which can be used by the callee to
acquire additional information. This context object is
valid only during this method call. The callee may not
keep a reference to this object. context)Implements org. |
| public Datatype | createDatatype(String name)
Implements org. |
| public Datatype | createDatatype()
Implements org. |
| public DatatypeBuilder | createDatatypeBuilder(String
The local name of the base type. name)Implements org. |
| theInstance | back to summary |
|---|---|
| public static final ErrorDatatypeLibrary theInstance The sole instance of this class. | |
| ErrorDatatypeLibrary | back to summary |
|---|---|
| private ErrorDatatypeLibrary() | |
| addParameter | back to summary |
|---|---|
| public void addParameter(String name, String value, ValidationContext context) Implements org. Doc from org. Adds a new parameter.
| |
| createDatatype | back to summary |
|---|---|
| public Datatype createDatatype(String name) Implements org. Doc from org. Gets or creates a pre-defined type.
This is just a short-cut of
| |
| createDatatype | back to summary |
|---|---|
| public Datatype createDatatype() Implements org. Doc from org. Derives a new Datatype from a Datatype by parameters that were already set through the addParameter method. | |
| createDatatypeBuilder | back to summary |
|---|---|
| public DatatypeBuilder createDatatypeBuilder(String name) Implements org. Doc from org. Creates a new instance of DatatypeBuilder. The callee should throw a DatatypeException in case of an error.
| |