|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.hedenus.rdfschema.ResourceImpl
public class ResourceImpl
Base implementation of a RDF bound Java object.
Field Summary |
---|
Fields inherited from interface de.hedenus.rdfschema.Resource |
---|
URI |
Constructor Summary | |
---|---|
protected |
ResourceImpl()
|
Method Summary | |
---|---|
java.lang.String |
about()
Returns the identifier of the resource, either its blank node ID or its URI. |
protected RDFDatabinding |
binding()
|
Resource[] |
getProperties(java.lang.String propertyURI)
Returns the values of the properties with the specified property-URI as an array of resources. |
Resource |
getProperty(java.lang.String propertyURI)
Returns the first property with the specified property-URI. |
java.lang.String |
getProperty(java.lang.String propertyURI,
java.util.Locale locale)
Returns the literal property with the specified property-URI and locale. |
java.lang.Object |
getProperty(java.lang.String propertyURI,
java.lang.String datatypeURI)
Returns the first property value of the property with the specified property-URI. |
protected void |
init(RDFDatabinding binding,
RDFNode node)
|
protected RDFNode |
node()
Returns the bound RDF node. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected ResourceImpl()
Method Detail |
---|
protected void init(RDFDatabinding binding, RDFNode node)
protected RDFDatabinding binding()
protected RDFNode node()
public java.lang.String about()
Resource
about
in interface Resource
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object getProperty(java.lang.String propertyURI, java.lang.String datatypeURI)
Resource
datatypeURI
is null and the value is a plain literal, a string is returned.
If the property value is a plain literal and datatypeURI
is not null,
the specified datatypeURI will be applied to convert the plain literal into a Java type.
If the property value is typed literal,
the specified datatype must match the datatype of the literal or an exception is thrown.
If the value is not a literal but a URI reference or a blank node, a Resource object is returned.
getProperty
in interface Resource
propertyURI
- the property's URIdatatypeURI
- the datatype's URI or null
public java.lang.String getProperty(java.lang.String propertyURI, java.util.Locale locale)
Resource
xml:lang
attribute, null
is returned.
getProperty
in interface Resource
propertyURI
- the property's URIlocale
- the locale or null
public Resource getProperty(java.lang.String propertyURI)
Resource
getProperty
in interface Resource
propertyURI
- the property's URI
public Resource[] getProperties(java.lang.String propertyURI)
Resource
getProperties
in interface Resource
propertyURI
- the property's URI
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |