public class BuiltinDatatypeLibrary extends Object implements DatatypeLibrary
Modifier and Type | Method and Description |
---|---|
Datatype |
createDatatype(String type)
Gets or creates a pre-defined type.
|
DatatypeBuilder |
createDatatypeBuilder(String type)
Creates a new instance of DatatypeBuilder.
|
public DatatypeBuilder createDatatypeBuilder(String type) throws DatatypeException
DatatypeLibrary
createDatatypeBuilder
in interface DatatypeLibrary
type
- The local name of the base type.DatatypeException
public Datatype createDatatype(String type) throws DatatypeException
DatatypeLibrary
createDatatypeBuilder(typeLocalName).createDatatype();
The callee should throw a DatatypeException in case of an error.createDatatype
in interface DatatypeLibrary
DatatypeException
Copyright © 2021 JBoss by Red Hat. All rights reserved.