public class PropertyLiteralDefinition extends PropertyDefinition
PropertyLiteral
.Constructor and Description |
---|
PropertyLiteralDefinition()
Creates a definition of a
PropertyLiteral . |
PropertyLiteralDefinition(URI predicate,
URI literalType,
String name,
String label,
String description,
boolean required,
boolean multiple,
boolean ordered)
Creates a definition of a
PropertyLiteral with no
constraints on the property value. |
PropertyLiteralDefinition(URI predicate,
URI literalType,
String name,
String label,
String description,
boolean required,
boolean multiple,
boolean ordered,
LinkedHashSet<String> options)
Creates a definition of a
PropertyLiteral . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
URI |
getLiteralType()
Returns the literalType of the
PropertyLiteral . |
LinkedHashSet<String> |
getOptions()
Returns the valid values for the
Property . |
int |
hashCode() |
void |
setLiteralType(URI literalType)
Sets the literalType of the
PropertyLiteral . |
void |
setOptions(LinkedHashSet<String> options)
Sets the valid values for the
Property . |
protected String |
toString(String indent) |
getDescription, getLabel, getName, getPredicate, isMultiple, isOrdered, isRequired, setDescription, setLabel, setMultiple, setName, setOrdered, setPredicate, setRequired, toString
public PropertyLiteralDefinition()
PropertyLiteral
.public PropertyLiteralDefinition(URI predicate, URI literalType, String name, String label, String description, boolean required, boolean multiple, boolean ordered)
PropertyLiteral
with no
constraints on the property value.predicate
- the URI identifying the PropertyLiteral
that this
class definesliteralType
- the literalType of the PropertyLiteral
name
- the name of the PropertyLiteral
label
- a human readable label for the PropertyLiteral
description
- a description of the PropertyLiteral
required
- whether the PropertyLiteral
is mandatorymultiple
- whether there can be multiple instances of the
PropertyLiteral
ordered
- whether the order of multiple instances of the
Property
is significantpublic PropertyLiteralDefinition(URI predicate, URI literalType, String name, String label, String description, boolean required, boolean multiple, boolean ordered, LinkedHashSet<String> options)
PropertyLiteral
.predicate
- the URI identifying the PropertyLiteral
that this
class definesliteralType
- the literalType of the PropertyLiteral
name
- the name of the PropertyLiteral
label
- a human readable label for the PropertyLiteral
description
- a description of the PropertyLiteral
required
- whether the PropertyLiteral
is mandatorymultiple
- whether there can be multiple instances of the
PropertyLiteral
ordered
- whether the order of multiple instances of the
Property
is significantoptions
- the valid values for the PropertyLiteral
public boolean equals(Object obj)
equals
in class PropertyDefinition
public URI getLiteralType()
PropertyLiteral
.PropertyLiteral
public LinkedHashSet<String> getOptions()
Property
.
If the value of the Property
is not constrained this method
will return an zero length array.Property
public int hashCode()
hashCode
in class PropertyDefinition
public void setLiteralType(URI literalType)
PropertyLiteral
.literalType
- the literalType of the PropertyLiteral
public void setOptions(LinkedHashSet<String> options)
Property
.options
- protected String toString(String indent)
toString
in class PropertyDefinition
Copyright © 2013 myGrid. All rights reserved.