public class ConnectiveDescr extends RestrictionDescr
Modifier and Type | Class and Description |
---|---|
static class |
ConnectiveDescr.RestrictionConnectiveType
The connective types that can be used for a restriction
|
Modifier and Type | Field and Description |
---|---|
static ConnectiveDescr.RestrictionConnectiveType |
AND |
static ConnectiveDescr.RestrictionConnectiveType |
OR |
Constructor and Description |
---|
ConnectiveDescr() |
ConnectiveDescr(ConnectiveDescr.RestrictionConnectiveType connective) |
Modifier and Type | Method and Description |
---|---|
void |
add(ConnectiveDescr restriction) |
void |
add(String restriction) |
void |
buildExpression(StringBuilder sb) |
ConnectiveDescr.RestrictionConnectiveType |
getConnective() |
String |
getPrefix() |
List<Object> |
getRestrictions() |
boolean |
isParen() |
void |
readExternal(ObjectInput in) |
void |
setParen(boolean paren) |
void |
setPrefix(String prefix) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, positionAsString, setEndCharacter, setEndLocation, setLocation, setNamespace, setResource, setStartCharacter, setText
public static final ConnectiveDescr.RestrictionConnectiveType AND
public static final ConnectiveDescr.RestrictionConnectiveType OR
public ConnectiveDescr()
public ConnectiveDescr(ConnectiveDescr.RestrictionConnectiveType connective)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class BaseDescr
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class BaseDescr
IOException
public ConnectiveDescr.RestrictionConnectiveType getConnective()
public boolean isParen()
public void setParen(boolean paren)
public String getPrefix()
public void setPrefix(String prefix)
public void add(ConnectiveDescr restriction)
public void add(String restriction)
public void buildExpression(StringBuilder sb)
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.