public final class PropertyDefinition extends Object implements Serializable
| Constructor and Description |
|---|
PropertyDefinition(String propId,
String id,
String displayName,
ValueType valueType,
String valueSetId,
String declaringPropId) |
PropertyDefinition(String propId,
String id,
String displayName,
ValueType valueType,
String valueSetId,
String declaringPropId,
Attribute[] attributes)
Initializes the property definition with a displayName, a value type and a
value set.
|
| Modifier and Type | Method and Description |
|---|---|
Attribute |
getAttribute(String name) |
Attribute[] |
getAttributes() |
String |
getDeclaringPropId() |
String |
getDisplayName()
Returns the property's displayName.
|
String |
getId()
Returns the property's id, which is unique in combination with a
proposition id.
|
String |
getPropId() |
String |
getValueSetId()
Returns the property's value set (for nominal and ordinal values).
|
ValueType |
getValueType()
Returns the property's value type.
|
boolean |
hasAttribute(String name) |
boolean |
isInherited() |
String |
toString() |
public PropertyDefinition(String propId, String id, String displayName, ValueType valueType, String valueSetId, String declaringPropId)
public PropertyDefinition(String propId, String id, String displayName, ValueType valueType, String valueSetId, String declaringPropId, Attribute[] attributes)
id - an unique id String. Cannot be null.displayName - a displayName String. If null,
the displayName field is set to the value of the
id field.valueType - a ValueType. Cannot be null.valueSetId - the unique id of this property's ValueSet.ValueType#isCompatible(org.protempa.valueset.ValueSet)public String getPropId()
public String getId()
String. Guaranteed not null.public String getDisplayName()
null.String.public ValueType getValueType()
ValueType.public String getValueSetId()
EnumeratedValueSet, or null if none is
defined.public String getDeclaringPropId()
public boolean isInherited()
public Attribute[] getAttributes()
public boolean hasAttribute(String name)
Copyright © 2012–2017 Emory University. All rights reserved.