public abstract class AbstractSimpleType extends Annotated
Java class for simpleType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="simpleType">
<complexContent>
<extension base="{http://www.w3.org/2001/XMLSchema}annotated">
<group ref="{http://www.w3.org/2001/XMLSchema}simpleDerivation"/>
<attribute name="final" type="{http://www.w3.org/2001/XMLSchema}simpleDerivationSet" />
<attribute name="name" type="{http://www.w3.org/2001/XMLSchema}NCName" />
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
finals |
protected List |
list |
protected String |
name |
protected Restriction |
restriction |
protected Union |
union |
annotation, id| Constructor and Description |
|---|
AbstractSimpleType() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(SimpleTypeVisitor visitor)
Encapsulates the (breadth-first) traversal logic for XSD SimpleType
hierarchies across restrictions, lists, unions and other elements, creating
"visit" events ala.
|
List<String> |
getFinals()
Gets the value of the finals property.
|
List |
getList()
Gets the value of the list property.
|
String |
getName()
Gets the value of the name property.
|
Restriction |
getRestriction()
Gets the value of the restriction property.
|
Union |
getUnion()
Gets the value of the union property.
|
void |
setList(List value)
Sets the value of the list property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setRestriction(Restriction value)
Sets the value of the restriction property.
|
void |
setUnion(Union value)
Sets the value of the union property.
|
getAnnotation, getId, setAnnotation, setIdgetOtherAttributesprotected Union union
protected List list
protected Restriction restriction
protected String name
public Union getUnion()
Unionpublic void setUnion(Union value)
value - allowed object is Unionpublic void setList(List value)
value - allowed object is Listpublic Restriction getRestriction()
Restrictionpublic void setRestriction(Restriction value)
value - allowed object is Restrictionpublic List<String> getFinals()
This accessor method returns a reference to the live list, not a snapshot.
Therefore any modification you make to the returned list will be present
inside the JAXB object. This is why there is not a set method
for the finals property.
For example, to add a new item, do as follows:
getFinals().add(newItem);
Objects of the following type(s) are allowed in the list String
public String getName()
Stringpublic void setName(String value)
value - allowed object is Stringpublic void accept(SimpleTypeVisitor visitor)
Restriction,
List,
UnionCopyright © 2019. All rights reserved.