public class KahinaSimpleProperty extends KahinaStepProperty implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
CAPTION |
static int |
CONJUNCTION |
static int |
CONTAINS |
static int |
DISJUNCTION |
static int |
EDGE_LABEL |
static int |
ENDS_WITH |
static int |
EQUALITY |
static int |
GREATER |
static int |
GREATER_OR_EQUAL |
static int |
ID |
static int |
IDENTITY |
static int |
IMPLICATION |
static int |
LESS |
static int |
LESS_OR_EQUAL |
static int |
MATCHING |
static int |
NEGATION |
static int |
STARTS_WITH |
static int |
STATUS |
Constructor and Description |
---|
KahinaSimpleProperty() |
KahinaSimpleProperty(int type,
int rel,
int value) |
KahinaSimpleProperty(int type,
int rel,
java.lang.String value) |
KahinaSimpleProperty(int type,
KahinaSimpleProperty leftArg) |
KahinaSimpleProperty(int type,
KahinaSimpleProperty leftArg,
KahinaSimpleProperty rightArg) |
Modifier and Type | Method and Description |
---|---|
KahinaSimpleProperty |
copy() |
java.lang.String |
exportXML(boolean asFile) |
org.w3c.dom.Element |
exportXML(org.w3c.dom.Document dom) |
KahinaSimpleProperty |
getLeftArgument() |
int |
getRel() |
java.lang.String |
getRelAsString() |
java.lang.String |
getRelAsXMLString() |
KahinaSimpleProperty |
getRightArgument() |
int |
getType() |
java.lang.String |
getTypeAsString() |
java.lang.String |
getTypeAsXMLString() |
java.lang.String |
getTypeString()
defines a very short symbolic representation of the type for an atomic pattern
is the empty string for complex nodes or non-standard types inheriting classes should reimplement this if they add more types, relying on this version for the standard types |
java.lang.String |
getValueAsString() |
java.lang.String |
getValueString()
defines a representation of the relation and the value
is the empty string for complex nodes or non-standard relations inheriting classes should reimplement this if they add more relations or value types, relying on this version for the standard types |
static KahinaSimpleProperty |
importXML(org.w3c.dom.Element treeNodePatternNode) |
boolean |
matches(KahinaTree m,
int nodeID) |
void |
parseValue(java.lang.String value) |
void |
setLeftArgument(KahinaSimpleProperty left) |
void |
setRel(int rel) |
void |
setRelation(java.lang.String relString) |
void |
setRightArgument(KahinaSimpleProperty right) |
void |
setType(int type) |
void |
setType(java.lang.String typeString) |
void |
setXMLRelation(java.lang.String relString) |
void |
setXMLType(java.lang.String typeString) |
void |
switchArguments() |
java.lang.String |
toString() |
public static final int CAPTION
public static final int EDGE_LABEL
public static final int STATUS
public static final int ID
public static final int NEGATION
public static final int CONJUNCTION
public static final int DISJUNCTION
public static final int IMPLICATION
public static final int IDENTITY
public static final int LESS
public static final int GREATER
public static final int LESS_OR_EQUAL
public static final int GREATER_OR_EQUAL
public static final int EQUALITY
public static final int MATCHING
public static final int STARTS_WITH
public static final int CONTAINS
public static final int ENDS_WITH
public KahinaSimpleProperty()
public KahinaSimpleProperty(int type, int rel, int value)
public KahinaSimpleProperty(int type, int rel, java.lang.String value)
public KahinaSimpleProperty(int type, KahinaSimpleProperty leftArg)
public KahinaSimpleProperty(int type, KahinaSimpleProperty leftArg, KahinaSimpleProperty rightArg)
public KahinaSimpleProperty copy()
copy
in class KahinaStepProperty
public void parseValue(java.lang.String value) throws PatternFormatException
PatternFormatException
public int getType()
public void setType(int type)
public int getRel()
public void setRel(int rel)
public void setLeftArgument(KahinaSimpleProperty left)
public void setRightArgument(KahinaSimpleProperty right)
public void switchArguments()
public KahinaSimpleProperty getLeftArgument()
public KahinaSimpleProperty getRightArgument()
public boolean matches(KahinaTree m, int nodeID)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getTypeString()
public java.lang.String getValueString()
public java.lang.String getTypeAsString()
public java.lang.String getRelAsString()
public java.lang.String getValueAsString()
public void setType(java.lang.String typeString)
public void setXMLType(java.lang.String typeString)
public void setRelation(java.lang.String relString)
public void setXMLRelation(java.lang.String relString)
public java.lang.String getTypeAsXMLString()
public java.lang.String getRelAsXMLString()
public java.lang.String exportXML(boolean asFile)
exportXML
in class KahinaStepProperty
public org.w3c.dom.Element exportXML(org.w3c.dom.Document dom)
exportXML
in class KahinaStepProperty
public static KahinaSimpleProperty importXML(org.w3c.dom.Element treeNodePatternNode)