DatatypeBuilder.
This implementation can be used for Datatypes which have no parameters.
Any attempt to add parameters will be rejected.
Typical usage would be:
class MyDatatypeLibrary implements DatatypeLibrary {
....
DatatypeBuilder createDatatypeBuilder( String typeName ) {
return new ParameterleessDatatypeBuilder(createDatatype(typeName));
}
....
}
| Modifier and Type | Field and Description |
|---|---|
| private final Datatype | baseType
This type object is returned for the derive method. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addParameter(String name, String strValue, ValidationContext context)
Implements com. Adds a new parameter. |
| public Datatype | createDatatype()
Implements com. Derives a new Datatype from a Datatype by parameters that were already set through the addParameter method. |
| baseType | back to summary |
|---|---|
| private final Datatype baseType This type object is returned for the derive method. | |
| ParameterlessDatatypeBuilder | back to summary |
|---|---|
| public ParameterlessDatatypeBuilder(Datatype baseType) | |
| addParameter | back to summary |
|---|---|
| public void addParameter(String name, String strValue, ValidationContext context) throws DatatypeException Implements com. Doc from com. Adds a new parameter.
| |
| createDatatype | back to summary |
|---|---|
| public Datatype createDatatype() throws DatatypeException Implements com. Doc from com. Derives a new Datatype from a Datatype by parameters that were already set through the addParameter method.
| |