public class Value extends java.lang.Object implements ValueExpression
Id to represent a simple valuestring.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
lang
The eventual language
|
private java.net.URI |
type
The eventual type of the value
|
private java.lang.String |
value
Holds the value
|
Constructor and Description |
---|
Value(java.lang.String value)
Constructs an object with the given value.
|
Value(java.lang.String value,
java.net.URI type) |
Value(java.lang.String value,
java.net.URI type,
java.lang.String lg) |
Modifier and Type | Method and Description |
---|---|
void |
accept(EDOALVisitor visitor) |
TypeCheckingVisitor.TYPE |
accept(TypeCheckingVisitor visitor) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getLang() |
java.net.URI |
getType() |
java.lang.String |
getValue() |
int |
hashCode() |
java.lang.String |
toRDFString() |
java.lang.String |
toString()
Returns a short description about this object.
|
private java.lang.String value
private java.net.URI type
private java.lang.String lang
public Value(java.lang.String value)
value
- the value for this object.java.lang.NullPointerException
- if the value is null
java.lang.IllegalArgumentException
- if the value isn't longer than 0public Value(java.lang.String value, java.net.URI type)
public Value(java.lang.String value, java.net.URI type, java.lang.String lg)
public void accept(EDOALVisitor visitor) throws AlignmentException
accept
in interface ValueExpression
AlignmentException
public TypeCheckingVisitor.TYPE accept(TypeCheckingVisitor visitor) throws AlignmentException
accept
in interface ValueExpression
AlignmentException
public java.lang.String getValue()
public java.net.URI getType()
public java.lang.String getLang()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
Returns a short description about this object. The format of the returned string is undocumentd and subject to change.
An example return string could be: 15
toString
in class java.lang.Object
public java.lang.String toRDFString()
(C) INRIA & friends, 2003-2020