|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ontoware.rdf2go.model.node.impl.ResourceImpl
org.ontoware.rdf2go.model.node.impl.URIImpl
public class URIImpl
| Constructor Summary | |
|---|---|
URIImpl(java.lang.String uriString)
Checks uri for validity and creates |
|
URIImpl(java.lang.String uriString,
boolean createURIWithChecking)
|
|
| Method Summary | |
|---|---|
BlankNode |
asBlankNode()
A convenience method for a cast to org.ontoware.rdf2go.model.node.BlankNode |
java.net.URI |
asJavaURI()
Convenience method to return the URI as a java.net.URI. |
URI |
asURI()
A convenience method for a cast to org.ontoware.rdf2go.model.node.URI |
int |
compareTo(Node other)
|
static URI |
create(java.lang.String uriString)
Deprecated. use the constructors instead |
static URI |
createURIWithoutChecking(java.lang.String uriString)
Deprecated. use the constructors instead |
boolean |
equals(java.lang.Object other)
|
int |
hashCode()
|
java.net.URI |
toJavaURI()
|
java.lang.String |
toSPARQL()
A convenience function to create SPARQL queries from nodes |
java.lang.String |
toString()
|
| Methods inherited from class org.ontoware.rdf2go.model.node.impl.ResourceImpl |
|---|
asBoolean, asDatatypeLiteral, asDate, asInt, asLanguageTagLiteral, asLiteral, asResource, asString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ontoware.rdf2go.model.node.Node |
|---|
asDatatypeLiteral, asLanguageTagLiteral, asLiteral, asResource |
| Constructor Detail |
|---|
public URIImpl(java.lang.String uriString)
uriString -
java.lang.IllegalArgumentException - if the uri is not valid and createURIWithChecking is true
public URIImpl(java.lang.String uriString,
boolean createURIWithChecking)
uriString - createURIWithChecking - if true, checks for valid uri
java.lang.IllegalArgumentException - if the uri is not valid and createURIWithChecking is true| Method Detail |
|---|
public static URI create(java.lang.String uriString)
uriString -
public static URI createURIWithoutChecking(java.lang.String uriString)
uriString -
public java.lang.String toString()
toString in class java.lang.Object
public URI asURI()
throws java.lang.ClassCastException
Node
asURI in interface Nodejava.lang.ClassCastException - if the node is not a URI
public BlankNode asBlankNode()
throws java.lang.ClassCastException
Node
asBlankNode in interface Nodejava.lang.ClassCastException - if the node is not a BlankNodepublic boolean equals(java.lang.Object other)
equals in class ResourceImpl
public java.net.URI toJavaURI()
throws java.net.URISyntaxException
java.net.URISyntaxExceptionpublic int hashCode()
hashCode in class ResourceImplpublic int compareTo(Node other)
compareTo in interface java.lang.Comparable<Node>public java.lang.String toSPARQL()
Node
toSPARQL in interface Nodepublic java.net.URI asJavaURI()
URI
asJavaURI in interface URI
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||