|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deri.iris.terms.concrete.SqName
public class SqName
Simple implementation of the ISqName.
$Id$
| Constructor Summary | |
|---|---|
SqName(IIri namespace,
String name)
Contructs a sqname. |
|
SqName(String str)
Constructs a sqname. |
|
SqName(String namespace,
String name)
Contructs a sqname. |
|
| Method Summary | |
|---|---|
int |
compareTo(ITerm o)
|
boolean |
equals(Object obj)
|
URI |
getDatatypeIRI()
Returns the fully qualified identifier for the data type corresponding to this term. |
String |
getName()
Returns the name. |
IIri |
getNamespace()
Returns the namespace. |
String |
getValue()
Return the wrapped type. |
int |
hashCode()
|
boolean |
isGround()
Checks whether the term is ground (a term with no variables). |
String |
toCanonicalString()
Returns a canonical string representation of this term. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SqName(String str)
<namespace>#<name>.
str - the string to parse
NullPointerException - if arg is null
IllegalArgumentException - if the string got an invalid format
public SqName(String namespace,
String name)
namespace - for the sqnamename - for the sqname
NullPointerException - if namespace or name is null
IllegalArgumentException - if name is an empty stirng
public SqName(IIri namespace,
String name)
namespace - for the sqnamename - for the sqname
NullPointerException - if namespace or name is null
IllegalArgumentException - if name is an empty stirng| Method Detail |
|---|
public IIri getNamespace()
ISqName
getNamespace in interface ISqNamepublic String getName()
ISqName
getName in interface ISqNamepublic String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String getValue()
ISqName
getValue in interface ISqNamegetValue in interface ITermpublic int compareTo(ITerm o)
compareTo in interface Comparable<ITerm>public boolean isGround()
ITerm
isGround in interface ITermtrue if the term is ground,
otherwise false.public URI getDatatypeIRI()
IConcreteTerm
getDatatypeIRI in interface IConcreteTermpublic String toCanonicalString()
IConcreteTerm
toCanonicalString in interface IConcreteTerm
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||