de.uni_bremen.st.rcf.model
Class Attribute

java.lang.Object
  extended by de.uni_bremen.st.rcf.model.Attribute

public final class Attribute
extends Object

An attribute of the RCF schema. Attributes are read-only and cannot be changed after they have been created.

Author:
harder

Method Summary
 List<String> getEnumValues()
          Get the possible enumeration values of the attribute
 String getName()
          Get the name of the attribute
 Relation<? extends Entry> getReferencedRelation()
          Get the relation this attribute's values are instances of.
 Relation<? extends Entry> getRelation()
          Get the relation the attribute belongs to.
 AttributeType getType()
          Get the type of the attribute
 boolean isEnum()
          Check whether the possible attribute values are constrained by an enumeration.
 boolean isList()
          Check whether the attribute contains a list of values instead of a single value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

public String getName()
Get the name of the attribute

Returns:
the name

getType

public AttributeType getType()
Get the type of the attribute

Returns:
the type

isList

public boolean isList()
Check whether the attribute contains a list of values instead of a single value.

Returns:
true if the attribute stores a list of values.

isEnum

public boolean isEnum()
Check whether the possible attribute values are constrained by an enumeration.

Returns:
true if he possible attribute values are constrained by an enumeration.

getRelation

public Relation<? extends Entry> getRelation()
Get the relation the attribute belongs to.

Returns:
the relation

getReferencedRelation

public Relation<? extends Entry> getReferencedRelation()
Get the relation this attribute's values are instances of.

Returns:
the relation iff the type of the Attribute is AttributeType.REFERENCE, null else

getEnumValues

public List<String> getEnumValues()
Get the possible enumeration values of the attribute

Returns:
the enumeration values in their String representation.


Copyright © 2011. All Rights Reserved.