public class Attribute
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ATE |
static int |
ATTRIBUTE
Kind of definition
|
static int |
CONCEPTSET |
static int |
DATE |
static int |
LITERAL |
static int |
NUMBER
The types
|
static int |
PI
Scope is denoted by an integer constant.
|
static int |
SET |
static int |
STRING |
Constructor and Description |
---|
Attribute(java.lang.String value,
int kind,
Attribute type) |
Attribute(java.lang.String value,
int scope,
int type,
int kind) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
asParseableArgument() |
java.lang.String |
asParseableAttributeDefinition() |
java.lang.String |
asParseableLiteralValue() |
java.lang.String |
asParseableName() |
java.lang.String |
asParseableRenaming() |
java.lang.String |
asParseableValue() |
java.lang.String |
getAttributeId()
Get the attribute of this definition, if it is an attribute definitoni
itself, return null.
|
java.text.SimpleDateFormat |
getDateParser()
Get the dateparser of this attribute, that is, it must be an date to have
one.
|
int |
getKind()
Get the kind of this attributedefinition.
|
int |
getScope()
Get the scope of this attribute.
|
int |
getType()
Get the type of this attribute.
|
java.lang.String |
getValue()
Get the value of this attribute.
|
boolean |
isAte()
Is an ate?
|
boolean |
isAttribute()
Is a attribute?
|
boolean |
isConceptSet()
Is a set?
|
boolean |
isDate()
Is a date?
|
boolean |
isLiteral()
Is a literal?
|
boolean |
isNumber()
Is a number?
|
boolean |
isPi()
Is a pi?
|
boolean |
isSet()
Is a set?
|
boolean |
isString()
Is a string?
|
void |
setDateParser(java.text.SimpleDateFormat sdf)
Set the dateparser in case this attribute is an date.
|
java.lang.String |
toString() |
java.lang.String |
toString(boolean verbose) |
public static final int PI
public static final int ATE
public static final int NUMBER
public static final int STRING
public static final int SET
public static final int DATE
public static final int CONCEPTSET
public static final int ATTRIBUTE
public static final int LITERAL
public Attribute(java.lang.String value, int scope, int type, int kind)
public Attribute(java.lang.String value, int kind, Attribute type)
public java.lang.String getValue()
public int getScope()
public int getType()
public int getKind()
public java.lang.String getAttributeId()
public void setDateParser(java.text.SimpleDateFormat sdf)
sdf
- The dateparer.public java.text.SimpleDateFormat getDateParser()
public boolean isDate()
public boolean isNumber()
public boolean isSet()
public boolean isConceptSet()
public boolean isString()
public boolean isAte()
public boolean isPi()
public boolean isAttribute()
public boolean isLiteral()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(boolean verbose)
public java.lang.String asParseableAttributeDefinition()
public java.lang.String asParseableRenaming()
public java.lang.String asParseableArgument()
public java.lang.String asParseableName()
public java.lang.String asParseableValue()
public java.lang.String asParseableLiteralValue()