public class PropertyResource extends PropertyReference implements PropertyObject
PropertyObject
representing a compound property that contains PropertyObject
s.Modifier and Type | Class and Description |
---|---|
static class |
PropertyResource.PropertyComparator |
static interface |
PropertyResource.PropertyVisit
Deprecated.
|
AbstractCloneable.Cloning, AbstractCloneable.CopyVisitor
Constructor and Description |
---|
PropertyResource() |
getResourceURI, setResourceURI
clone, cloneWorkflowBean
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone
public boolean accept(Visitor visitor)
WorkflowBean
Visitor
to this WorkflowBean
.accept
in interface WorkflowBean
accept
in class PropertyReference
visitor
- the Visitor
to accepttrue
if this WorkflowBeans
children should be visited.protected PropertyVisit makePropertyVisit(URI uri)
public void addProperty(URI predicate, PropertyObject object)
predicate
- object
- public PropertyResource addPropertyAsNewResource(URI predicate, URI typeURI)
predicate
- typeURI
- public void addPropertyAsString(URI predicate, String value)
predicate
- value
- public void addPropertyReference(URI predicate, URI resourceURI)
predicate
- resourceURI
- public void clearAllProperties()
public void clearProperties(URI predicate)
public final Map<URI,SortedSet<PropertyObject>> getProperties()
public SortedSet<PropertyLiteral> getPropertiesAsLiterals(URI predicate) throws UnexpectedPropertyException
UnexpectedPropertyException
public SortedSet<PropertyReference> getPropertiesAsReferences(URI predicate) throws UnexpectedPropertyException
UnexpectedPropertyException
public SortedSet<PropertyResource> getPropertiesAsResources(URI predicate) throws UnexpectedPropertyException
UnexpectedPropertyException
public SortedSet<URI> getPropertiesAsResourceURIs(URI predicate) throws UnexpectedPropertyException
UnexpectedPropertyException
public SortedSet<String> getPropertiesAsStrings(URI predicate) throws UnexpectedPropertyException
UnexpectedPropertyException
public <PropertyType extends PropertyObject> SortedSet<PropertyType> getPropertiesOfType(URI predicate, Class<PropertyType> propertyType) throws UnexpectedPropertyException
UnexpectedPropertyException
public PropertyObject getProperty(URI predicate) throws PropertyNotFoundException, MultiplePropertiesException
public PropertyList getPropertyAsList(URI predicate) throws UnexpectedPropertyException, PropertyNotFoundException, MultiplePropertiesException
public PropertyLiteral getPropertyAsLiteral(URI predicate) throws UnexpectedPropertyException, PropertyNotFoundException, MultiplePropertiesException
public PropertyReference getPropertyAsReference(URI predicate) throws UnexpectedPropertyException, PropertyNotFoundException, MultiplePropertiesException
public PropertyResource getPropertyAsResource(URI predicate) throws UnexpectedPropertyException, PropertyNotFoundException, MultiplePropertiesException
public URI getPropertyAsResourceURI(URI predicate) throws UnexpectedPropertyException, PropertyNotFoundException, MultiplePropertiesException
public String getPropertyAsString(URI predicate) throws PropertyException
PropertyException
public <PropertyType extends PropertyObject> PropertyType getPropertyOfType(URI predicate, Class<PropertyType> propertyType) throws UnexpectedPropertyException, PropertyNotFoundException, MultiplePropertiesException
public final URI getTypeURI()
public final void setProperties(Map<URI,SortedSet<PropertyObject>> properties)
public final void setTypeURI(URI typeURI)
public String toString()
toString
in class PropertyReference
public boolean hasProperty(URI predicate)
protected void cloneInto(WorkflowBean clone, AbstractCloneable.Cloning cloning)
cloneInto
in class PropertyReference
Copyright © 2013 myGrid. All rights reserved.