@Contract @Hk2XmlPreGenerate public interface SimpleType 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" /> <anyAttribute processContents='lax' namespace='##other'/> </extension> </complexContent> </complexType>
Modifier and Type | Method and Description |
---|---|
List<String> |
getFinal()
Gets the value of the final 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, setId
getOtherAttributes, setOtherAttributes
Restriction getRestriction()
Restriction
void setRestriction(Restriction value)
value
- allowed object is
Restriction
void setList(List value)
value
- allowed object is
List
void setUnion(Union value)
value
- allowed object is
Union
List<String> getFinal()
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 final property.
For example, to add a new item, do as follows:
getFinal().add(newItem);
Objects of the following type(s) are allowed in the list
String
Copyright © 2009–2023 Oracle Corporation. All rights reserved.