org.universAAL.support.utils.context
Class Pattern
java.lang.Object
org.universAAL.middleware.rdf.Resource
org.universAAL.middleware.rdf.FinalizedResource
org.universAAL.middleware.context.ContextEventPattern
org.universAAL.support.utils.context.Pattern
- All Implemented Interfaces:
- Advertisement, EventAdvertisement, Matchable, Requirement, Subscription
public class Pattern
- extends ContextEventPattern
Class that can be used to create the most commonly used types of simple
Context Event Patterns. The provided constructors allow to automatically
generate the typical restrictions over the basic mandatory triple of the
context event: the subject, the predicate and the object, with the
possibility of leaving them blank (no restriction) by using null. Because the
class extends ContextEventPattern it can be used as well in the native API,
and the other way around to use the native API to apply further restrictions
over the Pattern.
- Author:
- alfiva
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 |
Pattern(ManagedIndividual subj,
String predicate,
Object obj)
Simple constructor to create a Context Event Pattern with restrictions on
the exact subject, the predicate, and the exact object. |
Pattern(ManagedIndividual subj,
String predicate,
String objTypeURI)
Simple constructor to create a Context Event Pattern with restrictions on
the exact subject, the predicate, and the type of object. |
Pattern(String subjTypeURI,
String predicate,
Object obj)
Simple constructor to create a Context Event Pattern with restrictions on
the type of subject, the predicate, and the exact object. |
Pattern(String subjTypeURI,
String predicate,
String objTypeURI)
Simple constructor to create a Context Event Pattern with restrictions on
the type of subject, the predicate, and the type of object. |
Methods inherited from class org.universAAL.middleware.rdf.FinalizedResource |
addType, getLocalName, getNamespace, getProperty, getPropertyURIs, getType, getTypes, getURI, hasQualifiedName, isAnon, numberOfProperties |
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, isQualifiedName, literal, representsQualifiedURI, serializesAsXMLLiteral, setPropertyPath, setPropertyPath, setPropertyPathFromOffset, setResourceComment, setResourceLabel, toString, toStringRecursive, toStringRecursive, unliteral |
Pattern
public Pattern(String subjTypeURI,
String predicate,
String objTypeURI)
- Simple constructor to create a Context Event Pattern with restrictions on
the type of subject, the predicate, and the type of object. Any of these
can be null if no restriction is desired over that concept.
- Parameters:
subjTypeURI
- The type URI that the event subject must have. Null for any.predicate
- The exact predicate that the event must equal. Null for any.objTypeURI
- The type URI that the event object must have. Null for any.
Pattern
public Pattern(String subjTypeURI,
String predicate,
Object obj)
- Simple constructor to create a Context Event Pattern with restrictions on
the type of subject, the predicate, and the exact object. Any of these
can be null if no restriction is desired over that concept.
- Parameters:
subjTypeURI
- The type URI that the event subject must have. Null for any.predicate
- The exact predicate that the event must equal. Null for any.obj
- The exact instance that the event object must equal. Null for
any.
Pattern
public Pattern(ManagedIndividual subj,
String predicate,
String objTypeURI)
- Simple constructor to create a Context Event Pattern with restrictions on
the exact subject, the predicate, and the type of object. Any of these
can be null if no restriction is desired over that concept.
- Parameters:
subj
- The exact instance that the event subject must equal. Null for
any.predicate
- The exact predicate that the event must equal. Null for any.objTypeURI
- The type URI that the event object must have. Null for any.
Pattern
public Pattern(ManagedIndividual subj,
String predicate,
Object obj)
- Simple constructor to create a Context Event Pattern with restrictions on
the exact subject, the predicate, and the exact object. Any of these
can be null if no restriction is desired over that concept.
- Parameters:
subj
- The exact instance that the event subject must equal. Null for
any.predicate
- The exact predicate that the event must equal. Null for any.obj
- The exact instance that the event object must equal. Null for
any.
Copyright © 2014 universAAL Consortium. All Rights Reserved.