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>
| Constructor and Description |
|---|
CompoundRule() |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
CompoundRule |
addExtensions(Extension... extensions) |
CompoundRule |
addRules(Rule... rules) |
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.
|
boolean |
hasExtensions() |
boolean |
hasRules() |
CompoundRule |
setId(String id)
Sets the value of the id property.
|
CompoundRule |
setPredicate(Predicate predicate)
Sets the value of the predicate property.
|
getLocator, setLocatorpublic 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 CompoundRule setPredicate(Predicate predicate)
setPredicate in class Rulepredicate - 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 boolean hasExtensions()
hasExtensions in interface HasExtensionspublic CompoundRule addExtensions(Extension... extensions)
public boolean hasRules()
public CompoundRule addRules(Rule... rules)
public String getId()
getId in interface HasIdgetId in class EntityUnsupportedOperationException - Always.public CompoundRule setId(String id)
setId in interface HasIdsetId in class EntityUnsupportedOperationException - Always.public VisitorAction accept(Visitor visitor)
Copyright © 2015 University of Tartu. All Rights Reserved.