public abstract class PropertyDefinition extends Object
PropertyObject
.Constructor and Description |
---|
PropertyDefinition()
Creates a PropertyDefinition that defines the attributes of a
PropertyObject . |
PropertyDefinition(URI predicate,
String name,
String label,
String description,
boolean required,
boolean multiple,
boolean ordered)
Creates a PropertyDefinition that defines the attributes of a
PropertyObject . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDescription()
Returns a description of the
Property . |
String |
getLabel()
Returns a human readable label for the
Property . |
String |
getName()
Returns the name of the
Property . |
URI |
getPredicate()
Returns the URI identifying the
Property that this class defines. |
int |
hashCode() |
boolean |
isMultiple()
Returns true if there can be multiple instances of the
Property . |
boolean |
isOrdered()
Returns true if the order of multiple instances of the
Property is significant. |
boolean |
isRequired()
Returns true if the
Property is mandatory. |
void |
setDescription(String description)
Sets a description of the
Property . |
void |
setLabel(String label)
Sets a human readable label for the
Property . |
void |
setMultiple(boolean multiple)
Sets whether there can be multiple instances of the
Property . |
void |
setName(String name)
Sets the name of the
Property . |
void |
setOrdered(boolean ordered)
Sets whether the order of multiple instances of the
Property is significant. |
void |
setPredicate(URI predicate)
Sets the URI identifying the
Property that this class defines. |
void |
setRequired(boolean required)
Sets whether the
Property is mandatory. |
String |
toString() |
protected abstract String |
toString(String indent) |
public PropertyDefinition()
PropertyObject
.public PropertyDefinition(URI predicate, String name, String label, String description, boolean required, boolean multiple, boolean ordered)
PropertyObject
.predicate
- the URI identifying the Property
that this class
definesname
- the name of the Property
label
- a human readable label for the Property
description
- a description of the Property
required
- whether the Property
is mandatorymultiple
- whether there can be multiple instances of the
Property
ordered
- whether the order of multiple instances of the
Property
is significantoptions
- public String getDescription()
Property
.Property
public String getLabel()
Property
.Property
public String getName()
Property
.Property
public URI getPredicate()
Property
that this class defines.Property
that this class definespublic boolean isMultiple()
Property
.Property
public boolean isOrdered()
Property
is significant.Property
is significantpublic boolean isRequired()
Property
is mandatory.Property
is mandatorypublic void setDescription(String description)
Property
.description
- a description of the Property
public void setLabel(String label)
Property
.label
- a human readable label for the Property
public void setMultiple(boolean multiple)
Property
.multiple
- whether there can be multiple instances of the Property
public void setName(String name)
Property
.name
- the name of the Property
public void setOrdered(boolean ordered)
Property
is significant.ordered
- the order of multiple instances of the Property
is significantpublic void setPredicate(URI predicate)
Property
that this class defines.predicate
- the URI identifying the Property
that this class definespublic void setRequired(boolean required)
Property
is mandatory.required
- whether the Property
is mandatoryCopyright © 2013 myGrid. All rights reserved.