public class FinalizedResource extends Resource
Resource
so that they
cannot be overwritten by subclasses.ANON_URI_PREFIX, blockAddingTypes, isXMLLiteral, ns_delim_index, PROP_RDF_FIRST, PROP_RDF_REST, PROP_RDF_TYPE, PROP_RDFS_COMMENT, PROP_RDFS_LABEL, PROP_SERIALIZATION_FULL, PROP_SERIALIZATION_OPTIONAL, PROP_SERIALIZATION_REDUCED, PROP_SERIALIZATION_UNDEFINED, PROP_uAAL_INVOLVED_HUMAN_USER, props, RDF_EMPTY_LIST, RDF_NAMESPACE, RDFS_NAMESPACE, TYPE_RDF_LIST, TYPE_RDFS_CLASS, uAAL_NAMESPACE_PREFIX, uAAL_SERVICE_NAMESPACE, uAAL_VOCABULARY_NAMESPACE, uri
Modifier | Constructor and Description |
---|---|
protected |
FinalizedResource() |
|
FinalizedResource(boolean isXMLLiteral) |
protected |
FinalizedResource(String uri) |
|
FinalizedResource(String uri,
boolean isXMLLiteral) |
protected |
FinalizedResource(String uriPrefix,
int numProps) |
Modifier and Type | Method and Description |
---|---|
boolean |
addType(String typeURI,
boolean blockFurtherTypes)
Set or add the type of this Resource.
|
String |
getLocalName()
Get the local name which is the part of the URI after the delimiter
('#').
|
String |
getNamespace()
Get the namespace of the URI which is the start of the URI including the
delimiter ('#').
|
Object |
getProperty(String propURI)
Get the RDF object for a specified property.
|
Enumeration |
getPropertyURIs()
Get all properties, i.e. all RDF predicates for this Resource.
|
String |
getType()
Returns the URI of the first type added to the list of types of this
resource.
|
String[] |
getTypes()
Returns the URIs of all known types of this resource.
|
String |
getURI()
Get the URI.
|
boolean |
hasQualifiedName()
Determines if this Resource has a qualified, i.e. the URI has a delimiter
('#').
|
boolean |
isAnon()
Determines if this Resource has an anonymous URI.
|
int |
numberOfProperties()
Returns the number of properties, i.e. the number of RDF predicates for
this Resource.
|
addMultiLangProp, asList, asList, asRDFList, changeProperty, copy, deepCopy, equals, generateAnonURI, getDefaultLang, getFilename, getMultiLangProp, getOrConstructLabel, getOrConstructLabel, getPropSerializationType, getResource, getResourceComment, getResourceLabel, getResourceLabel, getStaticFieldValue, hashCode, hasProperty, isAnon, isBlockingAddingTypes, isClosedCollection, isQualifiedName, isWellFormed, literal, representsQualifiedURI, serializesAsXMLLiteral, setProperty, setPropertyPath, setPropertyPath, setPropertyPathFromOffset, setResourceComment, setResourceLabel, toString, toStringRecursive, toStringRecursive, unliteral
protected FinalizedResource()
Resource.Resource()
public FinalizedResource(boolean isXMLLiteral)
Resource.Resource(boolean)
protected FinalizedResource(String uri)
Resource.Resource(String)
public FinalizedResource(String uri, boolean isXMLLiteral)
Resource.Resource(String, boolean)
protected FinalizedResource(String uriPrefix, int numProps)
Resource.Resource(String, int)
public final Object getProperty(String propURI)
Resource
getProperty
in class Resource
propURI
- URI of the property.Resource.getProperty(String)
public final int numberOfProperties()
Resource
numberOfProperties
in class Resource
Resource.numberOfProperties()
public final boolean isAnon()
Resource
isAnon
in class Resource
Resource.isAnon()
public final boolean hasQualifiedName()
Resource
hasQualifiedName
in class Resource
Resource.hasQualifiedName()
public final String getURI()
Resource
getURI
in class Resource
Resource.getURI()
public final Enumeration getPropertyURIs()
Resource
getPropertyURIs
in class Resource
Resource.getPropertyURIs()
public final boolean addType(String typeURI, boolean blockFurtherTypes)
Resource
addType
in class Resource
typeURI
- URI of the type.blockFurtherTypes
- If true, no further types can be added.Resource.addType(String, boolean)
public final String getLocalName()
Resource
getLocalName
in class Resource
Resource.getLocalName()
public final String getNamespace()
Resource
getNamespace
in class Resource
Resource.getNamespace()
public final String getType()
Resource
getType
in class Resource
Resource.getType()
public final String[] getTypes()
Resource
getTypes
in class Resource
Resource.getTypes()
Copyright © 2015 universAAL Consortium. All rights reserved.