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>
| Constructor and Description |
|---|
Characteristic() |
Characteristic(List<Attribute> attributes) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
Characteristic |
addAttributes(Attribute... attributes) |
Characteristic |
addExtensions(Extension... extensions) |
List<Attribute> |
getAttributes()
Gets the value of the attributes property.
|
Double |
getBaselineScore()
Gets the value of the baselineScore property.
|
List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
FieldName |
getName()
Gets the value of the name property.
|
String |
getReasonCode()
Gets the value of the reasonCode property.
|
boolean |
hasAttributes() |
boolean |
hasExtensions() |
Characteristic |
setBaselineScore(Double baselineScore)
Sets the value of the baselineScore property.
|
Characteristic |
setName(FieldName name)
Sets the value of the name property.
|
Characteristic |
setReasonCode(String reasonCode)
Sets the value of the reasonCode property.
|
getLocator, setLocatorpublic FieldName getName()
Stringpublic Characteristic setName(FieldName name)
name - allowed object is
Stringpublic String getReasonCode()
Stringpublic Characteristic setReasonCode(String reasonCode)
reasonCode - allowed object is
Stringpublic Double getBaselineScore()
Doublepublic Characteristic setBaselineScore(Double baselineScore)
baselineScore - allowed object is
Doublepublic 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 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 boolean hasExtensions()
hasExtensions in interface HasExtensionspublic Characteristic addExtensions(Extension... extensions)
public boolean hasAttributes()
public Characteristic addAttributes(Attribute... attributes)
public VisitorAction accept(Visitor visitor)
Copyright © 2016 University of Tartu. All Rights Reserved.