public class PropertyResourceDefinition extends PropertyDefinition
PropertyResource
.Constructor and Description |
---|
PropertyResourceDefinition()
Creates a definition of an
PropertyResource . |
PropertyResourceDefinition(URI predicate,
URI typeURI,
String name,
String label,
String description,
boolean required,
boolean multiple,
boolean ordered)
Creates a definition of an
PropertyResource . |
PropertyResourceDefinition(URI predicate,
URI typeURI,
String name,
String label,
String description,
boolean required,
boolean multiple,
boolean ordered,
List<PropertyDefinition> propertyDefinitions)
Creates a definition of an
PropertyResource . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
PropertyDefinition |
getPropertyDefinition(URI predicate)
Returns a
PropertyDefinition with the specified predicate. |
List<PropertyDefinition> |
getPropertyDefinitions()
Returns the
PropertyDefinition s that define the
PropertyResource . |
URI |
getTypeURI()
Returns the typeURI of the
PropertyResource . |
int |
hashCode() |
void |
setPropertyDefinitions(List<PropertyDefinition> propertyDefinitions)
Sets the
PropertyDefinition s that define the
PropertyResource . |
void |
setTypeURI(URI typeURI)
Sets the typeURI of the
PropertyResource . |
protected String |
toString(String indent) |
getDescription, getLabel, getName, getPredicate, isMultiple, isOrdered, isRequired, setDescription, setLabel, setMultiple, setName, setOrdered, setPredicate, setRequired, toString
public PropertyResourceDefinition()
PropertyResource
.public PropertyResourceDefinition(URI predicate, URI typeURI, String name, String label, String description, boolean required, boolean multiple, boolean ordered)
PropertyResource
.predicate
- the URI identifying the PropertyResource
that
this class definestypeURI
- the typeURI of the PropertyResource
name
- the name of the PropertyResource
label
- a human readable label for the PropertyResource
description
- a description of the PropertyResource
required
- whether the PropertyResource
is mandatorymultiple
- whether there can be multiple instances of the
PropertyResource
ordered
- whether the order of multiple instances of the
Property
is significantpublic PropertyResourceDefinition(URI predicate, URI typeURI, String name, String label, String description, boolean required, boolean multiple, boolean ordered, List<PropertyDefinition> propertyDefinitions)
PropertyResource
.predicate
- the URI identifying the PropertyResource
that
this class definestypeURI
- the typeURI of the PropertyResource
name
- the name of the PropertyResource
label
- a human readable label for the PropertyResource
description
- a description of the PropertyResource
required
- whether the PropertyResource
is mandatorymultiple
- whether there can be multiple instances of the
PropertyResource
ordered
- whether the order of multiple instances of the
Property
is significantpropertyDefinitions
- the PropertyDefinition
s that define the
PropertyResource
public boolean equals(Object obj)
equals
in class PropertyDefinition
public PropertyDefinition getPropertyDefinition(URI predicate)
PropertyDefinition
with the specified predicate.
Return null if this PropertyResourceDefinition
does not
contain a PropertyDefinition
with the specified predicate.predicate
- the predicate of the PropertyDefinition
to returnPropertyDefinition
with the specified predicatepublic List<PropertyDefinition> getPropertyDefinitions()
PropertyDefinition
s that define the
PropertyResource
.PropertyDefinition
s that define the
PropertyResource
public URI getTypeURI()
PropertyResource
.PropertyResource
public int hashCode()
hashCode
in class PropertyDefinition
public void setPropertyDefinitions(List<PropertyDefinition> propertyDefinitions)
PropertyDefinition
s that define the
PropertyResource
.propertyDefinitions
- the PropertyDefinition
s that define the
PropertyResource
public void setTypeURI(URI typeURI)
PropertyResource
.typeURI
- the typeURI of the PropertyResource
protected String toString(String indent)
toString
in class PropertyDefinition
Copyright © 2013 myGrid. All rights reserved.