Class URIValue
- java.lang.Object
-
- de.tudresden.inf.lat.tabulas.datatype.URIValue
-
- All Implemented Interfaces:
PrimitiveTypeValue
,Serializable
,Comparable<PrimitiveTypeValue>
,scala.Equals
,scala.Product
public class URIValue extends Object implements PrimitiveTypeValue, scala.Product, Serializable
This models a URI.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static URIValue
apply()
static URIValue
apply(URIValue other)
Constructs a new URI value using another URI value.static URIValue
apply(String uriStr)
Constructs a new URI value using a string.int
compareTo(PrimitiveTypeValue other)
static URI
createURI(String uriStr)
String
getLabel()
PrimitiveType
getType()
Returns the primitive typeURI
getUri()
URI
getUriNoLabel()
boolean
isEmpty()
Tell whether this value represents an empty value.String
render()
Returns a string representing this value.scala.collection.immutable.Seq<String>
renderAsList()
Returns a list of strings representing this value.String
SpecialSymbol()
String
toString()
URI
uri()
-
-
-
Constructor Detail
-
URIValue
public URIValue(URI uri)
-
-
Method Detail
-
apply
public static URIValue apply()
-
apply
public static URIValue apply(String uriStr)
Constructs a new URI value using a string.- Parameters:
uriStr
- URI- Returns:
- (undocumented)
-
apply
public static URIValue apply(URIValue other)
Constructs a new URI value using another URI value.- Parameters:
other
- URI value- Returns:
- (undocumented)
-
uri
public URI uri()
-
SpecialSymbol
public final String SpecialSymbol()
-
getType
public PrimitiveType getType()
Description copied from interface:PrimitiveTypeValue
Returns the primitive type- Specified by:
getType
in interfacePrimitiveTypeValue
- Returns:
- the primitive type
-
getUriNoLabel
public URI getUriNoLabel()
-
getLabel
public String getLabel()
-
isEmpty
public boolean isEmpty()
Description copied from interface:PrimitiveTypeValue
Tell whether this value represents an empty value.- Specified by:
isEmpty
in interfacePrimitiveTypeValue
- Returns:
true
if and only if this value represents an empty value
-
getUri
public URI getUri()
-
renderAsList
public scala.collection.immutable.Seq<String> renderAsList()
Description copied from interface:PrimitiveTypeValue
Returns a list of strings representing this value.- Specified by:
renderAsList
in interfacePrimitiveTypeValue
- Returns:
- a list of strings representing this value
-
render
public String render()
Description copied from interface:PrimitiveTypeValue
Returns a string representing this value.- Specified by:
render
in interfacePrimitiveTypeValue
- Returns:
- a string representing this value
-
compareTo
public int compareTo(PrimitiveTypeValue other)
- Specified by:
compareTo
in interfaceComparable<PrimitiveTypeValue>
-
-