public class CompoundRule extends Rule implements com.sun.xml.bind.Locatable, 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"/>
<group ref="{http://www.dmg.org/PMML-4_2}Rule" maxOccurs="unbounded"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected List<Extension> |
extensions |
protected Locator |
locator |
protected Predicate |
predicate |
protected List<Rule> |
rules |
| Constructor and Description |
|---|
CompoundRule() |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
String |
getId()
Gets the value of the id property.
|
Predicate |
getPredicate()
Gets the value of the predicate property.
|
List<Rule> |
getRules()
Gets the value of the rules property.
|
void |
setId(String id)
Sets the value of the id property.
|
void |
setPredicate(Predicate value)
Sets the value of the predicate property.
|
void |
setSourceLocation(Locator newLocator) |
Locator |
sourceLocation() |
CompoundRule |
withExtensions(Collection<Extension> values) |
CompoundRule |
withExtensions(Extension... values) |
CompoundRule |
withPredicate(Predicate value) |
CompoundRule |
withRules(Collection<Rule> values) |
CompoundRule |
withRules(Rule... values) |
public 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 class RuleSimplePredicate
CompoundPredicate
SimpleSetPredicate
True
Falsepublic void setPredicate(Predicate value)
setPredicate in class Rulevalue - allowed object is
SimplePredicate
CompoundPredicate
SimpleSetPredicate
True
Falsepublic List<Rule> getRules()
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 rules property.
For example, to add a new item, do as follows:
getRules().add(newItem);
Objects of the following type(s) are allowed in the list
SimpleRule
CompoundRule
public CompoundRule withExtensions(Extension... values)
public CompoundRule withExtensions(Collection<Extension> values)
public CompoundRule withPredicate(Predicate value)
public CompoundRule withRules(Rule... values)
public CompoundRule withRules(Collection<Rule> values)
public Locator sourceLocation()
sourceLocation in interface com.sun.xml.bind.LocatablesourceLocation in class PMMLObjectpublic void setSourceLocation(Locator newLocator)
setSourceLocation in class PMMLObjectpublic String getId()
getId in interface HasIdgetId in class EntityUnsupportedOperationException - Always.public void setId(String id)
setId in interface HasIdsetId in class EntityUnsupportedOperationException - Always.public VisitorAction accept(Visitor visitor)
Copyright © 2014 University of Tartu. All Rights Reserved.