public class Attribute extends PMMLObject implements HasExtensions, HasPredicate
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_3}Extension" maxOccurs="unbounded" minOccurs="0"/>
<group ref="{http://www.dmg.org/PMML-4_3}PREDICATE"/>
<element ref="{http://www.dmg.org/PMML-4_3}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_3}NUMBER" />
</restriction>
</complexContent>
</complexType>
| Constructor and Description |
|---|
Attribute() |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
Attribute |
addExtensions(Extension... extensions) |
ComplexPartialScore |
getComplexPartialScore()
Gets the value of the complexPartialScore property.
|
List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
Double |
getPartialScore()
Gets the value of the partialScore property.
|
Predicate |
getPredicate()
Gets the value of the predicate property.
|
String |
getReasonCode()
Gets the value of the reasonCode property.
|
boolean |
hasExtensions() |
Attribute |
setComplexPartialScore(ComplexPartialScore complexPartialScore)
Sets the value of the complexPartialScore property.
|
Attribute |
setPartialScore(Double partialScore)
Sets the value of the partialScore property.
|
Attribute |
setPredicate(Predicate predicate)
Sets the value of the predicate property.
|
Attribute |
setReasonCode(String reasonCode)
Sets the value of the reasonCode property.
|
getLocator, setLocator, traverse, traverse, traverse, traverse, traverseMixedpublic String getReasonCode()
Stringpublic Attribute setReasonCode(String reasonCode)
reasonCode - allowed object is
Stringpublic Double getPartialScore()
Doublepublic Attribute setPartialScore(Double partialScore)
partialScore - 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 Predicate getPredicate()
getPredicate in interface HasPredicateSimplePredicate
CompoundPredicate
SimpleSetPredicate
True
Falsepublic Attribute setPredicate(Predicate predicate)
setPredicate in interface HasPredicatepredicate - allowed object is
SimplePredicate
CompoundPredicate
SimpleSetPredicate
True
Falsepublic ComplexPartialScore getComplexPartialScore()
ComplexPartialScorepublic Attribute setComplexPartialScore(ComplexPartialScore complexPartialScore)
complexPartialScore - allowed object is
ComplexPartialScorepublic boolean hasExtensions()
hasExtensions in interface HasExtensionspublic VisitorAction accept(Visitor visitor)
Copyright © 2016 University of Tartu. All rights reserved.