
public class FinalizedResource extends Resource
Resource so that they
cannot be overwritten by subclasses.ANON_URI_PREFIX, blockAddingTypes, isXMLLiteral, NAMESPACE_PREFIX, ns_delim_index, PROP_INVOLVED_HUMAN_USER, 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, props, RDF_EMPTY_LIST, RDF_NAMESPACE, RDFS_NAMESPACE, SERVICE_NAMESPACE, TYPE_RDF_LIST, TYPE_RDFS_CLASS, uri, VOCABULARY_NAMESPACE| 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.
|
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.
|
boolean |
isAnon()
Determines if this Resource has an anonymous URI.
|
int |
numberOfProperties()
Returns the number of properties, i.e.
|
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, unliteralprotected 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)
ResourcegetProperty in class ResourcepropURI - URI of the property.public final int numberOfProperties()
ResourcenumberOfProperties in class Resourcepublic final boolean isAnon()
Resourcepublic final boolean hasQualifiedName()
ResourcehasQualifiedName in class Resourcepublic final Enumeration getPropertyURIs()
ResourcegetPropertyURIs in class Resourcepublic final boolean addType(String typeURI, boolean blockFurtherTypes)
Resourcepublic final String getLocalName()
ResourcegetLocalName in class ResourceResource.getNamespace(),
Resource.getFilename()public final String getNamespace()
ResourcegetNamespace in class ResourceResource.getLocalName(),
Resource.getFilename()public final String getType()
ResourceCopyright © 2018 universAAL Consortium. All rights reserved.