org.topbraid.spin.model
Class SPINResourceImpl

java.lang.Object
  extended by ResourceImpl
      extended by org.topbraid.spin.model.SPINResourceImpl
All Implemented Interfaces:
SPINResource

public class SPINResourceImpl
extends ResourceImpl
implements SPINResource

Base implementation of SPINResource. This is not in the impl package because the impl package is not part of the public API.

Author:
Holger Knublauch

Constructor Summary
SPINResourceImpl(Node node, EnhGraph graph)
           
 
Method Summary
 java.lang.Integer getInteger(Property predicate)
           
 Literal getLiteral(Property predicate)
          Gets the "first" property value of this but only if it's a Literal.
 java.lang.Long getLong(Property predicate)
           
 RDFNode getRDFNode(Property predicate)
           
 Resource getResource(Property predicate)
           
 java.lang.String getString(Property predicate)
           
 RDFNode inferRDFNode(Property predicate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPINResourceImpl

public SPINResourceImpl(Node node,
                        EnhGraph graph)
Method Detail

getInteger

public java.lang.Integer getInteger(Property predicate)

getLiteral

public Literal getLiteral(Property predicate)
Description copied from interface: SPINResource
Gets the "first" property value of this but only if it's a Literal. Returns null if the value is a Resource.

Specified by:
getLiteral in interface SPINResource
Parameters:
predicate - the predicate
Returns:
the "first" property value or null

getLong

public java.lang.Long getLong(Property predicate)
Specified by:
getLong in interface SPINResource

getRDFNode

public RDFNode getRDFNode(Property predicate)
Specified by:
getRDFNode in interface SPINResource

getResource

public Resource getResource(Property predicate)
Specified by:
getResource in interface SPINResource

getString

public java.lang.String getString(Property predicate)
Specified by:
getString in interface SPINResource

inferRDFNode

public RDFNode inferRDFNode(Property predicate)