info.sswap.api.input.impl
Class LiteralValueImpl
java.lang.Object
info.sswap.api.input.impl.LiteralValueImpl
- All Implemented Interfaces:
- InputValue, LiteralValue, java.io.Serializable
public class LiteralValueImpl
- extends java.lang.Object
- implements LiteralValue, java.io.Serializable
- Author:
- Evren Sirin
- See Also:
- Serialized Form
Field Summary |
private java.net.URI |
datatype
|
private java.lang.String |
label
|
private java.lang.String |
language
|
Method Summary |
void |
accept(InputVisitor visitor)
|
boolean |
equals(java.lang.Object obj)
|
java.net.URI |
getDatatype()
Returns the datatype URI of the literal or null if there is none. |
java.lang.String |
getLabel()
Returns the lexical form of the literal. |
java.lang.String |
getLanguage()
Returns the language tag of the literal or null if there is none. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
label
private final java.lang.String label
language
private final java.lang.String language
datatype
private final java.net.URI datatype
LiteralValueImpl
public LiteralValueImpl(java.lang.String label)
LiteralValueImpl
public LiteralValueImpl(java.lang.String label,
java.lang.String language)
LiteralValueImpl
public LiteralValueImpl(java.lang.String label,
java.net.URI datatype)
accept
public void accept(InputVisitor visitor)
-
- Specified by:
accept
in interface InputValue
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
getLabel
public java.lang.String getLabel()
- Returns the lexical form of the literal.
- Specified by:
getLabel
in interface LiteralValue
getLanguage
public java.lang.String getLanguage()
- Returns the language tag of the literal or
null
if there is none.
- Specified by:
getLanguage
in interface LiteralValue
getDatatype
public java.net.URI getDatatype()
- Returns the datatype URI of the literal or
null
if there is none.
- Specified by:
getDatatype
in interface LiteralValue
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright (c) 2011, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.