public class TextDocument extends PMMLObject implements HasExtensions, HasId
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element ref="{http://www.dmg.org/PMML-4_2}Extension" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="length" type="{http://www.dmg.org/PMML-4_2}INT-NUMBER" />
<attribute name="file" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Extension> |
extensions |
protected java.lang.String |
file |
protected java.lang.String |
id |
protected java.lang.Integer |
length |
protected java.lang.String |
name |
| Constructor and Description |
|---|
TextDocument() |
TextDocument(java.lang.String id) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
java.util.List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
java.lang.String |
getFile()
Gets the value of the file property.
|
java.lang.String |
getId()
Gets the value of the id property.
|
java.lang.Integer |
getLength()
Gets the value of the length property.
|
java.lang.String |
getName()
Gets the value of the name property.
|
boolean |
hasExtensions() |
void |
setFile(java.lang.String value)
Sets the value of the file property.
|
void |
setId(java.lang.String value)
Sets the value of the id property.
|
void |
setLength(java.lang.Integer value)
Sets the value of the length property.
|
void |
setName(java.lang.String value)
Sets the value of the name property.
|
TextDocument |
withExtensions(java.util.Collection<Extension> values) |
TextDocument |
withExtensions(Extension... values) |
TextDocument |
withFile(java.lang.String value) |
TextDocument |
withId(java.lang.String value) |
TextDocument |
withLength(java.lang.Integer value) |
TextDocument |
withName(java.lang.String value) |
getLocator, setLocatorprotected java.lang.String id
protected java.lang.String name
protected java.lang.Integer length
protected java.lang.String file
protected java.util.List<Extension> extensions
public TextDocument()
public TextDocument(java.lang.String id)
public java.lang.String getId()
public void setId(java.lang.String value)
public java.lang.String getName()
Stringpublic void setName(java.lang.String value)
value - allowed object is
Stringpublic java.lang.Integer getLength()
Stringpublic void setLength(java.lang.Integer value)
value - allowed object is
Stringpublic java.lang.String getFile()
Stringpublic void setFile(java.lang.String value)
value - allowed object is
Stringpublic java.util.List<Extension> getExtensions()
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 extensions property.
For example, to add a new item, do as follows:
getExtensions().add(newItem);
Objects of the following type(s) are allowed in the list
Extension
getExtensions in interface HasExtensionspublic TextDocument withId(java.lang.String value)
public TextDocument withName(java.lang.String value)
public TextDocument withLength(java.lang.Integer value)
public TextDocument withFile(java.lang.String value)
public TextDocument withExtensions(Extension... values)
public TextDocument withExtensions(java.util.Collection<Extension> values)
public boolean hasExtensions()
hasExtensions in interface HasExtensionspublic VisitorAction accept(Visitor visitor)
Copyright © 2015 University of Tartu. All Rights Reserved.