public class Characteristic extends PMMLObject implements HasExtensions
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"/>
<element ref="{http://www.dmg.org/PMML-4_2}Attribute" maxOccurs="unbounded"/>
</sequence>
<attribute name="name" type="{http://www.dmg.org/PMML-4_2}FIELD-NAME" />
<attribute name="reasonCode" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="baselineScore" type="{http://www.dmg.org/PMML-4_2}NUMBER" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Attribute> |
attributes |
protected java.lang.Double |
baselineScore |
protected java.util.List<Extension> |
extensions |
protected FieldName |
name |
protected java.lang.String |
reasonCode |
| Constructor and Description |
|---|
Characteristic() |
Characteristic(java.util.List<Attribute> attributes) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
java.util.List<Attribute> |
getAttributes()
Gets the value of the attributes property.
|
java.lang.Double |
getBaselineScore()
Gets the value of the baselineScore property.
|
java.util.List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
FieldName |
getName()
Gets the value of the name property.
|
java.lang.String |
getReasonCode()
Gets the value of the reasonCode property.
|
boolean |
hasAttributes() |
boolean |
hasExtensions() |
void |
setBaselineScore(java.lang.Double value)
Sets the value of the baselineScore property.
|
void |
setName(FieldName value)
Sets the value of the name property.
|
void |
setReasonCode(java.lang.String value)
Sets the value of the reasonCode property.
|
Characteristic |
withAttributes(Attribute... values) |
Characteristic |
withAttributes(java.util.Collection<Attribute> values) |
Characteristic |
withBaselineScore(java.lang.Double value) |
Characteristic |
withExtensions(java.util.Collection<Extension> values) |
Characteristic |
withExtensions(Extension... values) |
Characteristic |
withName(FieldName value) |
Characteristic |
withReasonCode(java.lang.String value) |
getLocator, setLocatorprotected FieldName name
protected java.lang.String reasonCode
protected java.lang.Double baselineScore
protected java.util.List<Extension> extensions
protected java.util.List<Attribute> attributes
public Characteristic()
public Characteristic(java.util.List<Attribute> attributes)
public FieldName getName()
Stringpublic void setName(FieldName value)
value - allowed object is
Stringpublic java.lang.String getReasonCode()
Stringpublic void setReasonCode(java.lang.String value)
value - allowed object is
Stringpublic java.lang.Double getBaselineScore()
Doublepublic void setBaselineScore(java.lang.Double value)
value - allowed object is
Doublepublic 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 java.util.List<Attribute> getAttributes()
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 attributes property.
For example, to add a new item, do as follows:
getAttributes().add(newItem);
Objects of the following type(s) are allowed in the list
Attribute
public Characteristic withName(FieldName value)
public Characteristic withReasonCode(java.lang.String value)
public Characteristic withBaselineScore(java.lang.Double value)
public Characteristic withExtensions(Extension... values)
public Characteristic withExtensions(java.util.Collection<Extension> values)
public Characteristic withAttributes(Attribute... values)
public Characteristic withAttributes(java.util.Collection<Attribute> values)
public boolean hasExtensions()
hasExtensions in interface HasExtensionspublic boolean hasAttributes()
public VisitorAction accept(Visitor visitor)
Copyright © 2015 University of Tartu. All Rights Reserved.