|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uni_bremen.st.rcf.model.Entry
public class Entry
The standard implementation for any Entry in a RCF relation. Provides access methods for any kind of attribute. Use this class to access RCF entries if no specific implementation exists.
Method Summary | |
---|---|
Entry |
copy(RCF toRCF)
Copies the Entry to another RCF, including lists. |
boolean |
equals(Object obj)
|
boolean |
getBool(Attribute a)
Get the value of the boolean attribute a. |
boolean |
getBool(Attribute a,
boolean defaultValue)
Get the value the boolean attribute a. |
boolean |
getBool(String attributeName)
Get the value of the boolean attribute named like attributeName. |
boolean |
getBool(String attributeName,
boolean defaultValue)
Get the value of the boolean attribute named like attributeName. |
List<Boolean> |
getBoolList(Attribute a)
|
List<Boolean> |
getBoolList(String attributeName)
|
Entry |
getEntry(Attribute a)
|
Entry |
getEntry(Attribute a,
Entry defaultValue)
|
Entry |
getEntry(String attributeName)
|
Entry |
getEntry(String attributeName,
Entry defaultValue)
|
List<Entry> |
getEntryList(Attribute a)
|
List<Entry> |
getEntryList(String attributeName)
|
EntryType |
getEntryType()
Get the type of this entry. |
float |
getFloat(Attribute a)
Get the value of the float attribute a. |
float |
getFloat(Attribute a,
float defaultValue)
Get the value of the float attribute a. |
float |
getFloat(String attributeName)
Get the value of the integer attribute named like attributeName. |
float |
getFloat(String attributeName,
float defaultValue)
Get the value of the float attribute named like attributeName. |
List<Float> |
getFloatList(Attribute a)
|
List<Float> |
getFloatList(String attributeName)
|
int |
getId()
Get the id of the entry. |
int |
getInt(Attribute a)
Get the value of the integer attribute a. |
int |
getInt(Attribute a,
int defaultValue)
Get the value of the integer attribute a. |
int |
getInt(String attributeName)
Get the value of the integer attribute named like attributeName. |
int |
getInt(String attributeName,
int defaultValue)
Get the value of the integer attribute named like attributeName. |
List<Integer> |
getIntList(Attribute a)
|
List<Integer> |
getIntList(String attributeName)
|
Relation<? extends Entry> |
getRelation()
Get the relation this entry belongs to |
String |
getString(Attribute a)
Get the value of the string attribute a. |
String |
getString(Attribute a,
String defaultValue)
Get the value the string attribute a. |
String |
getString(String attributeName)
Get the value of the string attribute named like attributeName. |
String |
getString(String attributeName,
String defaultValue)
Get the value of the string attribute named like attributeName. |
List<String> |
getStringList(Attribute a)
|
List<String> |
getStringList(String attributeName)
|
int |
hashCode()
|
boolean |
isSet(Attribute a)
Checks whether the given attribute's value is set. |
boolean |
isSet(String attributeName)
Checks whether the given attribute's value is set. |
void |
setBool(Attribute a,
boolean value)
Set the value of the boolean attribute a to the specified value. |
void |
setBool(String attributeName,
boolean value)
Set the value of the boolean attribute named like attributeName to value. |
void |
setEntry(Attribute a,
Entry value)
|
void |
setEntry(String attributeName,
Entry value)
|
void |
setFloat(Attribute a,
float value)
Set the value of the float attribute a to the specified value. |
void |
setFloat(String attributeName,
float value)
Set the value of the float attribute named like attributeName to value. |
void |
setInt(Attribute a,
int value)
Set the value of attribute a to value. |
void |
setInt(String attributeName,
int value)
Set the value of the attribute named like attributeName to value. |
void |
setString(Attribute a,
String value)
Set the value of the string attribute a to the specified value. |
void |
setString(String attributeName,
String value)
Set the value of the string attribute named like attributeName to value. |
void |
store()
Stores any changed applied to the entry in the rcf file. |
void |
unset(Attribute ab)
|
void |
unset(String attributeName)
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Relation<? extends Entry> getRelation()
public EntryType getEntryType()
public int getId()
public boolean isSet(Attribute a)
public boolean isSet(String attributeName)
public int getInt(Attribute a)
a
- the integer attribute
ValueNotSetException
- if the value is not setpublic int getInt(Attribute a, int defaultValue)
a
- the integer attributedefaultValue
- the default value, which is returned if the
attribute is not set.
public int getInt(String attributeName)
attributeName
- the name of the requested attribute
ValueNotSetException
- if the value is not setpublic int getInt(String attributeName, int defaultValue)
attributeName
- the name of the requested attributedefaultValue
- the default value, which is returned if the
attribute is not set.
public void setInt(Attribute a, int value)
a
- the attributevalue
- the valuepublic void setInt(String attributeName, int value)
attributeName
- the name of the attribute whose value should be setvalue
- the valuepublic float getFloat(Attribute a)
a
- the attribute
ValueNotSetException
- if the value is not setpublic float getFloat(Attribute a, float defaultValue)
a
- the float attributedefaultValue
- the default value, which is returned if the attribute is
not set
public float getFloat(String attributeName)
attributeName
- the name of the requested attribute
ValueNotSetException
- if the value is not setpublic float getFloat(String attributeName, float defaultValue)
attributeName
- the name of the requested attributedefaultValue
- the default value, which is returned if the attribute is
not set
public void setFloat(Attribute a, float value)
a
- the attribute whose value should be setvalue
- the valuepublic void setFloat(String attributeName, float value)
attributeName
- the name of the attribute whose value should be setvalue
- the valuepublic String getString(Attribute a)
a
- the attribute
ValueNotSetException
- if the value is not setpublic String getString(Attribute a, String defaultValue)
a
- the attributedefaultValue
- the default value, which is returned if the attribute is
not set
public String getString(String attributeName)
attributeName
- the name of the requested attribute
ValueNotSetException
- if the value is not setpublic String getString(String attributeName, String defaultValue)
attributeName
- the name of the requested attributedefaultValue
- the default value, which is returned if the attribute is
not set
public void setString(Attribute a, String value)
a
- the attribute whose value should be setvalue
- the valuepublic void setString(String attributeName, String value)
attributeName
- the name of the attribute whose value should be setvalue
- the valuepublic boolean getBool(Attribute a)
a
- the attribute
ValueNotSetException
- if the value is not setpublic boolean getBool(Attribute a, boolean defaultValue)
a
- the attributedefaultValue
- the default value, which is returned if the attribute is
not set
public boolean getBool(String attributeName)
attributeName
- the name of the requested attribute
ValueNotSetException
- if the value is not setpublic boolean getBool(String attributeName, boolean defaultValue)
attributeName
- the name of the requested attributedefaultValue
- the default value, which is returned if the attribute is
not set
public void setBool(Attribute a, boolean value)
a
- the attribute whose value should be setvalue
- the valuepublic void setBool(String attributeName, boolean value)
attributeName
- the name of the attribute whose value should be setvalue
- the valuepublic Entry getEntry(Attribute a)
public Entry getEntry(Attribute a, Entry defaultValue)
public Entry getEntry(String attributeName)
public Entry getEntry(String attributeName, Entry defaultValue)
public void setEntry(Attribute a, Entry value)
public void setEntry(String attributeName, Entry value)
public List<Integer> getIntList(Attribute a)
public List<Integer> getIntList(String attributeName) throws NoSuchAttributeException
NoSuchAttributeException
public List<Float> getFloatList(Attribute a)
public List<Float> getFloatList(String attributeName) throws NoSuchAttributeException
NoSuchAttributeException
public List<Boolean> getBoolList(Attribute a)
public List<Boolean> getBoolList(String attributeName) throws NoSuchAttributeException
NoSuchAttributeException
public List<String> getStringList(Attribute a)
public List<String> getStringList(String attributeName) throws NoSuchAttributeException
NoSuchAttributeException
public List<Entry> getEntryList(Attribute a)
public List<Entry> getEntryList(String attributeName) throws NoSuchAttributeException
NoSuchAttributeException
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void store()
public Entry copy(RCF toRCF)
toRCF
-
public void unset(String attributeName)
public void unset(Attribute ab)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |