public class CompoundPredicate extends Predicate 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"/>
<sequence maxOccurs="unbounded" minOccurs="2">
<group ref="{http://www.dmg.org/PMML-4_2}PREDICATE"/>
</sequence>
</sequence>
<attribute name="booleanOperator" use="required">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="or"/>
<enumeration value="and"/>
<enumeration value="xor"/>
<enumeration value="surrogate"/>
</restriction>
</simpleType>
</attribute>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Class and Description |
|---|---|
static class |
CompoundPredicate.BooleanOperator
Java class for null.
|
| Modifier and Type | Field and Description |
|---|---|
protected CompoundPredicate.BooleanOperator |
booleanOperator |
protected java.util.List<Extension> |
extensions |
protected java.util.List<Predicate> |
predicates |
| Constructor and Description |
|---|
CompoundPredicate() |
CompoundPredicate(CompoundPredicate.BooleanOperator booleanOperator) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
CompoundPredicate.BooleanOperator |
getBooleanOperator()
Gets the value of the booleanOperator property.
|
java.util.List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
java.util.List<Predicate> |
getPredicates()
Gets the value of the predicates property.
|
boolean |
hasExtensions() |
boolean |
hasPredicates() |
void |
setBooleanOperator(CompoundPredicate.BooleanOperator value)
Sets the value of the booleanOperator property.
|
CompoundPredicate |
withBooleanOperator(CompoundPredicate.BooleanOperator value) |
CompoundPredicate |
withExtensions(java.util.Collection<Extension> values) |
CompoundPredicate |
withExtensions(Extension... values) |
CompoundPredicate |
withPredicates(java.util.Collection<Predicate> values) |
CompoundPredicate |
withPredicates(Predicate... values) |
getLocator, setLocatorprotected CompoundPredicate.BooleanOperator booleanOperator
protected java.util.List<Extension> extensions
protected java.util.List<Predicate> predicates
public CompoundPredicate()
public CompoundPredicate(CompoundPredicate.BooleanOperator booleanOperator)
public CompoundPredicate.BooleanOperator getBooleanOperator()
CompoundPredicate.BooleanOperatorpublic void setBooleanOperator(CompoundPredicate.BooleanOperator value)
value - allowed object is
CompoundPredicate.BooleanOperatorpublic 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 java.util.List<Predicate> getPredicates()
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 predicates property.
For example, to add a new item, do as follows:
getPredicates().add(newItem);
Objects of the following type(s) are allowed in the list
SimplePredicate
CompoundPredicate
SimpleSetPredicate
True
False
public CompoundPredicate withBooleanOperator(CompoundPredicate.BooleanOperator value)
public CompoundPredicate withExtensions(Extension... values)
public CompoundPredicate withExtensions(java.util.Collection<Extension> values)
public CompoundPredicate withPredicates(Predicate... values)
public CompoundPredicate withPredicates(java.util.Collection<Predicate> values)
public boolean hasExtensions()
hasExtensions in interface HasExtensionspublic boolean hasPredicates()
public VisitorAction accept(Visitor visitor)
Copyright © 2015 University of Tartu. All Rights Reserved.