org.universAAL.middleware.rdf
Class FinalizedResource

Package class diagram package FinalizedResource
java.lang.Object
  extended by org.universAAL.middleware.rdf.Resource
      extended by org.universAAL.middleware.rdf.FinalizedResource
Direct Known Subclasses:
AggregatingFilter, AggregationFunction, CallStatus, ContextEvent, ContextEventPattern, FormElement, ManagedIndividual, ProcessResult, ProfileParameter, Property, PropertyPath, RDFClassInfo, ServiceCall, ServiceProfile, ServiceRealization, ServiceRequest, ServiceResponse, UIHandlerProfile, UIRequest, UIResponse, Variable

public class FinalizedResource
extends Resource

This class finalizes some of the methods of Resource so that they cannot be overwritten by subclasses.

Author:
Carsten Stockloew

Field Summary
 
Fields inherited from class org.universAAL.middleware.rdf.Resource
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
 
Constructor Summary
protected FinalizedResource()
           
  FinalizedResource(boolean isXMLLiteral)
           
protected FinalizedResource(String uri)
           
  FinalizedResource(String uri, boolean isXMLLiteral)
           
protected FinalizedResource(String uriPrefix, int numProps)
           
 
Method Summary
 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.
 
Methods inherited from class org.universAAL.middleware.rdf.Resource
addMultiLangProp, asList, asList, asRDFList, changeProperty, copy, deepCopy, equals, generateAnonURI, getDefaultLang, getFilename, getMultiLangProp, getOrConstructLabel, getPropSerializationType, getResource, getResourceComment, getResourceLabel, getStaticFieldValue, hashCode, hasProperty, isAnon, isBlockingAddingTypes, isClosedCollection, isQualifiedName, isWellFormed, literal, representsQualifiedURI, serializesAsXMLLiteral, setProperty, setPropertyPath, setPropertyPath, setPropertyPathFromOffset, setResourceComment, setResourceLabel, toString, toStringRecursive, toStringRecursive, unliteral
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FinalizedResource

protected FinalizedResource()
See Also:
Resource.Resource()

FinalizedResource

public FinalizedResource(boolean isXMLLiteral)
See Also:
Resource.Resource(boolean)

FinalizedResource

protected FinalizedResource(String uri)
See Also:
Resource.Resource(String)

FinalizedResource

public FinalizedResource(String uri,
                         boolean isXMLLiteral)
See Also:
Resource.Resource(String, boolean)

FinalizedResource

protected FinalizedResource(String uriPrefix,
                            int numProps)
See Also:
Resource.Resource(String, int)
Method Detail

getProperty

public final Object getProperty(String propURI)
Description copied from class: Resource
Get the RDF object for a specified property.

Overrides:
getProperty in class Resource
Parameters:
propURI - URI of the property.
Returns:
The object for the given property.
See Also:
Resource.getProperty(String)

numberOfProperties

public final int numberOfProperties()
Description copied from class: Resource
Returns the number of properties, i.e. the number of RDF predicates for this Resource.

Overrides:
numberOfProperties in class Resource
See Also:
Resource.numberOfProperties()

isAnon

public final boolean isAnon()
Description copied from class: Resource
Determines if this Resource has an anonymous URI.

Overrides:
isAnon in class Resource
See Also:
Resource.isAnon()

hasQualifiedName

public final boolean hasQualifiedName()
Description copied from class: Resource
Determines if this Resource has a qualified, i.e. the URI has a delimiter ('#').

Overrides:
hasQualifiedName in class Resource
See Also:
Resource.hasQualifiedName()

getURI

public final String getURI()
Description copied from class: Resource
Get the URI.

Overrides:
getURI in class Resource
See Also:
Resource.getURI()

getPropertyURIs

public final Enumeration getPropertyURIs()
Description copied from class: Resource
Get all properties, i.e. all RDF predicates for this Resource.

Overrides:
getPropertyURIs in class Resource
See Also:
Resource.getPropertyURIs()

addType

public final boolean addType(String typeURI,
                             boolean blockFurtherTypes)
Description copied from class: Resource
Set or add the type of this Resource. The type complies to rdf:type. A Resource can have multiple types.

Overrides:
addType in class Resource
Parameters:
typeURI - URI of the type.
blockFurtherTypes - If true, no further types can be added.
See Also:
Resource.addType(String, boolean)

getLocalName

public final String getLocalName()
Description copied from class: Resource
Get the local name which is the part of the URI after the delimiter ('#').

Overrides:
getLocalName in class Resource
Returns:
The local name of the URI of this resource.
See Also:
Resource.getLocalName()

getNamespace

public final String getNamespace()
Description copied from class: Resource
Get the namespace of the URI which is the start of the URI including the delimiter ('#'). It is the URI without the local name.

Overrides:
getNamespace in class Resource
Returns:
The namespace of the URI of this resource.
See Also:
Resource.getNamespace()

getType

public final String getType()
Description copied from class: Resource
Returns the URI of the first type added to the list of types of this resource.

Overrides:
getType in class Resource
See Also:
Resource.getType()

getTypes

public final String[] getTypes()
Description copied from class: Resource
Returns the URIs of all known types of this resource.

Overrides:
getTypes in class Resource
See Also:
Resource.getTypes()


Copyright © 2014 universAAL Consortium. All Rights Reserved.