public abstract class ResourceImpl extends Object implements Resource
Constructor and Description |
---|
ResourceImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
asBoolean() |
DatatypeLiteral |
asDatatypeLiteral()
A convenience method for a cast to
org.ontoware.rdf2go.model.node.DatatypeLiteral
|
Date |
asDate() |
int |
asInt() |
LanguageTagLiteral |
asLanguageTagLiteral()
A convenience method for a cast to
org.ontoware.rdf2go.model.node.LanguageTagLiteral
|
Literal |
asLiteral()
A convenience method for a cast to org.ontoware.rdf2go.model.node.Literal
|
Resource |
asResource()
A convenience method for a cast to
org.ontoware.rdf2go.model.node.Resource
|
String |
asString() |
abstract boolean |
equals(Object other) |
abstract int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
asBlankNode, asURI, toSPARQL
compareTo
public Resource asResource() throws ClassCastException
Node
asResource
in interface Node
ClassCastException
- if the node is not a Resourcepublic Literal asLiteral() throws ClassCastException
Node
asLiteral
in interface Node
ClassCastException
- if the node is not a Literalpublic DatatypeLiteral asDatatypeLiteral() throws ClassCastException
Node
asDatatypeLiteral
in interface Node
ClassCastException
- if the node is not a DatatypeLiteralpublic LanguageTagLiteral asLanguageTagLiteral() throws ClassCastException
Node
asLanguageTagLiteral
in interface Node
ClassCastException
- if the node is not a LanguageTagLiteralpublic String asString() throws ModelRuntimeException
ModelRuntimeException
public int asInt() throws ModelRuntimeException
ModelRuntimeException
public boolean asBoolean() throws ModelRuntimeException
ModelRuntimeException
public Date asDate() throws ModelRuntimeException
ModelRuntimeException
Copyright © 2005–2018 IT-Consulting Dr. Max Völkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.