Type.Factory
Constructor and Description |
---|
SimpleType(Schema schema,
org.apache.xmlbeans.XmlAnySimpleType simpleType,
boolean completed) |
SimpleType(SimpleTypeConfig xml,
Schema schema) |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Return the name for the type, not including namespace prefix.
|
Schema |
getSchema()
Getter for the schema in which the element/attribute with this type lives.
|
SimpleTypeConfig |
save()
Serialize instance to XmlObject.
|
void |
setSchema(Schema schema)
Setter for the schema in which this type lives.
|
String |
toString() |
Type |
validate(Context context)
Validate an element/attribute with this type.
|
public SimpleType(Schema schema, org.apache.xmlbeans.XmlAnySimpleType simpleType, boolean completed)
public SimpleType(SimpleTypeConfig xml, Schema schema)
public SimpleTypeConfig save()
Type
public Type validate(Context context) throws org.apache.xmlbeans.XmlException
Type
public String toString()
public String getName()
Type
public Schema getSchema()
Type
Copyright © 2019. All Rights Reserved.