public class SimpleTypeDefinition extends Object
Constructor and Description |
---|
SimpleTypeDefinition(Schema schema,
String name,
String id) |
Modifier and Type | Method and Description |
---|---|
void |
addFacet(Facet facet)
Adds the given Facet to the list of Facets for this
SimpleTypeDefinition
|
SimpleType |
createSimpleType()
Creates the SimpleType instance which represents this
SimpleTypeDefinition
|
void |
setBaseType(SimpleType baseType)
Sets the base type for this SimpleTypeDefinition.
|
void |
setFinal(String finalValue)
Sets the value of the 'final' property, indicating which
types of derivation are not allowed.
|
public void addFacet(Facet facet)
facet
- the Facet to addpublic SimpleType createSimpleType()
public void setBaseType(SimpleType baseType)
baseType
- the base type for this SimpleTypeDefinitionpublic void setFinal(String finalValue)
finalValue
- the value of the final property.Copyright © 2018. All rights reserved.