simplenlg.xmlrealiser.wrapper.XmlPhraseElement Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.02.04 at 09:14:07 AM EST
//
package simplenlg.xmlrealiser.wrapper;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for PhraseElement complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="PhraseElement">
* <complexContent>
* <extension base="{https://github.com/simplenlg/simplenlg/tree/master/src/main/resources/xml}NLGElement">
* <sequence>
* <element name="frontMod" type="{https://github.com/simplenlg/simplenlg/tree/master/src/main/resources/xml}NLGElement" maxOccurs="unbounded" minOccurs="0"/>
* <element name="preMod" type="{https://github.com/simplenlg/simplenlg/tree/master/src/main/resources/xml}NLGElement" maxOccurs="unbounded" minOccurs="0"/>
* <element name="compl" type="{https://github.com/simplenlg/simplenlg/tree/master/src/main/resources/xml}NLGElement" maxOccurs="unbounded" minOccurs="0"/>
* <element name="postMod" type="{https://github.com/simplenlg/simplenlg/tree/master/src/main/resources/xml}NLGElement" maxOccurs="unbounded" minOccurs="0"/>
* <element name="head" type="{https://github.com/simplenlg/simplenlg/tree/master/src/main/resources/xml}WordElement" minOccurs="0"/>
* </sequence>
* <attribute name="cat" type="{https://github.com/simplenlg/simplenlg/tree/master/src/main/resources/xml}phraseCategory" />
* <attribute name="discourseFunction" type="{https://github.com/simplenlg/simplenlg/tree/master/src/main/resources/xml}discourseFunction" />
* <attribute name="appositive" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PhraseElement", propOrder = {
"frontMod",
"preMod",
"compl",
"postMod",
"head"
})
@XmlSeeAlso({
XmlPPPhraseSpec.class,
XmlAdjPhraseSpec.class,
XmlAdvPhraseSpec.class,
XmlNPPhraseSpec.class,
XmlVPPhraseSpec.class,
XmlSPhraseSpec.class
})
public abstract class XmlPhraseElement
extends XmlNLGElement
{
protected List frontMod;
protected List preMod;
protected List compl;
protected List postMod;
protected XmlWordElement head;
@XmlAttribute(name = "cat")
protected XmlPhraseCategory cat;
@XmlAttribute(name = "discourseFunction")
protected XmlDiscourseFunction discourseFunction;
@XmlAttribute(name = "appositive")
protected Boolean appositive;
/**
* Gets the value of the frontMod property.
*
*
* 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 frontMod property.
*
*
* For example, to add a new item, do as follows:
*
* getFrontMod().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link XmlNLGElement }
*
*
*/
public List getFrontMod() {
if (frontMod == null) {
frontMod = new ArrayList();
}
return this.frontMod;
}
/**
* Gets the value of the preMod property.
*
*
* 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 preMod property.
*
*
* For example, to add a new item, do as follows:
*
* getPreMod().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link XmlNLGElement }
*
*
*/
public List getPreMod() {
if (preMod == null) {
preMod = new ArrayList();
}
return this.preMod;
}
/**
* Gets the value of the compl property.
*
*
* 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 compl property.
*
*
* For example, to add a new item, do as follows:
*
* getCompl().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link XmlNLGElement }
*
*
*/
public List getCompl() {
if (compl == null) {
compl = new ArrayList();
}
return this.compl;
}
/**
* Gets the value of the postMod property.
*
*
* 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 postMod property.
*
*
* For example, to add a new item, do as follows:
*
* getPostMod().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link XmlNLGElement }
*
*
*/
public List getPostMod() {
if (postMod == null) {
postMod = new ArrayList();
}
return this.postMod;
}
/**
* Gets the value of the head property.
*
* @return
* possible object is
* {@link XmlWordElement }
*
*/
public XmlWordElement getHead() {
return head;
}
/**
* Sets the value of the head property.
*
* @param value
* allowed object is
* {@link XmlWordElement }
*
*/
public void setHead(XmlWordElement value) {
this.head = value;
}
/**
* Gets the value of the cat property.
*
* @return
* possible object is
* {@link XmlPhraseCategory }
*
*/
public XmlPhraseCategory getCat() {
return cat;
}
/**
* Sets the value of the cat property.
*
* @param value
* allowed object is
* {@link XmlPhraseCategory }
*
*/
public void setCat(XmlPhraseCategory value) {
this.cat = value;
}
/**
* Gets the value of the discourseFunction property.
*
* @return
* possible object is
* {@link XmlDiscourseFunction }
*
*/
public XmlDiscourseFunction getDiscourseFunction() {
return discourseFunction;
}
/**
* Sets the value of the discourseFunction property.
*
* @param value
* allowed object is
* {@link XmlDiscourseFunction }
*
*/
public void setDiscourseFunction(XmlDiscourseFunction value) {
this.discourseFunction = value;
}
/**
* Gets the value of the appositive property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isAppositive() {
return appositive;
}
/**
* Sets the value of the appositive property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setAppositive(Boolean value) {
this.appositive = value;
}
}