public class Attribute 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"/>
<group ref="{http://www.dmg.org/PMML-4_2}PREDICATE"/>
<element ref="{http://www.dmg.org/PMML-4_2}ComplexPartialScore" minOccurs="0"/>
</sequence>
<attribute name="reasonCode" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="partialScore" type="{http://www.dmg.org/PMML-4_2}NUMBER" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected ComplexPartialScore |
complexPartialScore |
protected java.util.List<Extension> |
extensions |
protected java.lang.Double |
partialScore |
protected Predicate |
predicate |
protected java.lang.String |
reasonCode |
| Constructor and Description |
|---|
Attribute() |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
ComplexPartialScore |
getComplexPartialScore()
Gets the value of the complexPartialScore property.
|
java.util.List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
java.lang.Double |
getPartialScore()
Gets the value of the partialScore property.
|
Predicate |
getPredicate()
Gets the value of the predicate property.
|
java.lang.String |
getReasonCode()
Gets the value of the reasonCode property.
|
boolean |
hasExtensions() |
void |
setComplexPartialScore(ComplexPartialScore value)
Sets the value of the complexPartialScore property.
|
void |
setPartialScore(java.lang.Double value)
Sets the value of the partialScore property.
|
void |
setPredicate(Predicate value)
Sets the value of the predicate property.
|
void |
setReasonCode(java.lang.String value)
Sets the value of the reasonCode property.
|
Attribute |
withComplexPartialScore(ComplexPartialScore value) |
Attribute |
withExtensions(java.util.Collection<Extension> values) |
Attribute |
withExtensions(Extension... values) |
Attribute |
withPartialScore(java.lang.Double value) |
Attribute |
withPredicate(Predicate value) |
Attribute |
withReasonCode(java.lang.String value) |
getLocator, setLocatorprotected java.lang.String reasonCode
protected java.lang.Double partialScore
protected java.util.List<Extension> extensions
protected Predicate predicate
protected ComplexPartialScore complexPartialScore
public java.lang.String getReasonCode()
Stringpublic void setReasonCode(java.lang.String value)
value - allowed object is
Stringpublic java.lang.Double getPartialScore()
Doublepublic void setPartialScore(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 Predicate getPredicate()
SimplePredicate
CompoundPredicate
SimpleSetPredicate
True
Falsepublic void setPredicate(Predicate value)
value - allowed object is
SimplePredicate
CompoundPredicate
SimpleSetPredicate
True
Falsepublic ComplexPartialScore getComplexPartialScore()
ComplexPartialScorepublic void setComplexPartialScore(ComplexPartialScore value)
value - allowed object is
ComplexPartialScorepublic Attribute withReasonCode(java.lang.String value)
public Attribute withPartialScore(java.lang.Double value)
public Attribute withComplexPartialScore(ComplexPartialScore value)
public boolean hasExtensions()
hasExtensions in interface HasExtensionspublic VisitorAction accept(Visitor visitor)
Copyright © 2015 University of Tartu. All Rights Reserved.