public class ElementSpec extends NodeRewriteSpec
Java class for ElementSpec complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="ElementSpec"> <complexContent> <extension base="{http://textgrid.info/import}NodeRewriteSpec"> <sequence> <element name="mode" type="{http://textgrid.info/import}ImportMode" minOccurs="0"/> <element name="required" maxOccurs="unbounded" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <attribute name="attribute" use="required" type="{http://www.w3.org/2001/XMLSchema}QName" /> <attribute name="pattern" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType> </element> <element name="attribute" maxOccurs="unbounded" minOccurs="0"> <complexType> <complexContent> <extension base="{http://textgrid.info/import}NodeRewriteSpec"> </extension> </complexContent> </complexType> </element> </sequence> </extension> </complexContent> </complexType>
Modifier and Type | Class and Description |
---|---|
static class |
ElementSpec.Attribute
Java class for anonymous complex type.
|
static class |
ElementSpec.Required
Java class for anonymous complex type.
|
Modifier and Type | Field and Description |
---|---|
protected List<ElementSpec.Attribute> |
attribute |
protected ImportMode |
mode |
protected List<ElementSpec.Required> |
required |
method, name
Constructor and Description |
---|
ElementSpec() |
Modifier and Type | Method and Description |
---|---|
List<ElementSpec.Attribute> |
getAttribute()
Gets the value of the attribute property.
|
ImportMode |
getMode()
Gets the value of the mode property.
|
List<ElementSpec.Required> |
getRequired()
Gets the value of the required property.
|
void |
setMode(ImportMode value)
Sets the value of the mode property.
|
getMethod, getName, setMethod, setName
protected ImportMode mode
protected List<ElementSpec.Required> required
protected List<ElementSpec.Attribute> attribute
public ImportMode getMode()
ImportMode
public void setMode(ImportMode value)
value
- allowed object is
ImportMode
public List<ElementSpec.Required> getRequired()
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 required property.
For example, to add a new item, do as follows:
getRequired().add(newItem);
Objects of the following type(s) are allowed in the list
ElementSpec.Required
public List<ElementSpec.Attribute> getAttribute()
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 attribute property.
For example, to add a new item, do as follows:
getAttribute().add(newItem);
Objects of the following type(s) are allowed in the list
ElementSpec.Attribute
Copyright © 2015 TextGrid. All Rights Reserved.