public class CompoundRule extends Rule 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"/>
<group ref="{http://www.dmg.org/PMML-4_2}Rule" maxOccurs="unbounded"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Extension> |
extensions |
protected Predicate |
predicate |
protected java.util.List<Rule> |
rules |
| Constructor and Description |
|---|
CompoundRule() |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
java.util.List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
java.lang.String |
getId()
Gets the value of the id property.
|
Predicate |
getPredicate()
Gets the value of the predicate property.
|
java.util.List<Rule> |
getRules()
Gets the value of the rules property.
|
boolean |
hasExtensions() |
boolean |
hasRules() |
void |
setId(java.lang.String id)
Sets the value of the id property.
|
void |
setPredicate(Predicate value)
Sets the value of the predicate property.
|
CompoundRule |
withExtensions(java.util.Collection<Extension> values) |
CompoundRule |
withExtensions(Extension... values) |
CompoundRule |
withPredicate(Predicate value) |
CompoundRule |
withRules(java.util.Collection<Rule> values) |
CompoundRule |
withRules(Rule... values) |
getLocator, setLocatorprotected java.util.List<Extension> extensions
protected Predicate predicate
protected java.util.List<Rule> rules
public 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()
getPredicate in class RuleSimplePredicate
CompoundPredicate
SimpleSetPredicate
True
Falsepublic void setPredicate(Predicate value)
setPredicate in class Rulevalue - allowed object is
SimplePredicate
CompoundPredicate
SimpleSetPredicate
True
Falsepublic java.util.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(java.util.Collection<Extension> values)
public CompoundRule withPredicate(Predicate value)
public CompoundRule withRules(Rule... values)
public CompoundRule withRules(java.util.Collection<Rule> values)
public boolean hasExtensions()
hasExtensions in interface HasExtensionspublic boolean hasRules()
public java.lang.String getId()
public void setId(java.lang.String id)
public VisitorAction accept(Visitor visitor)
Copyright © 2015 University of Tartu. All Rights Reserved.