asgaard.lang
Class Item
java.lang.Object
|
+--asgaard.skid.LightBean
|
+--asgaard.lang.Def
|
+--asgaard.lang.Word
|
+--asgaard.lang.Unit
|
+--asgaard.lang.Item
- public class Item
- extends Unit
This class extends Units adding title, prefix, postfix and description to each
language-variant of the Unit.
Remark: To inherit this kind of SkidBean modifications within the
code of the BeanBroker are nessecary (look for the BEANTYPE
pattern).
- See Also:
Convert
, Serialized Form
Fields inherited from class asgaard.skid.LightBean |
broker,
cKey,
debug,
history_policy,
key,
tsCreated,
tsModified,
update_policy |
Constructor Summary |
Item()
Instanciates a new instance Do not use manually. |
Item(java.lang.String sName,
java.lang.String lName,
asgaard.utils.unit.Convert unit)
Generates a new Unit with the Default-Values |
Method Summary |
java.lang.String |
getDescription(int index)
Returns the description of the item |
java.lang.String |
getPostfix(int index)
Returns the postfix of the item |
java.lang.String |
getPrefix(int index)
Returns the prefix of the item |
java.lang.String |
getTitle(int index)
Returns the heading of the item |
void |
init(java.lang.String name,
java.lang.Object content,
long tsC,
long tsM)
Inits a new Item with a given Collection Do not use manually.
|
void |
setItem(int index,
java.lang.String name,
java.lang.String title,
java.lang.String prefix,
java.lang.String postfix,
java.lang.String description)
Extends setName adding title, prefix, postfix and description. |
Methods inherited from class asgaard.skid.LightBean |
addEvent,
cloneBean,
flush,
getAge,
getBeanType,
getBroker,
getChangeHistory,
getClassKey,
getCreated,
getEvent,
getFilter,
getIdentifier,
getKey,
getLink,
getMethods,
getModified,
getUpdatePolicy,
init,
invoke,
isChanged,
isNew,
isReadOnly,
modify,
putLink,
setAge,
setObject,
suscribeEvent,
undo |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Item
public Item()
- Instanciates a new instance Do not use manually.
Item
public Item(java.lang.String sName,
java.lang.String lName,
asgaard.utils.unit.Convert unit)
throws asgaard.skid.SkidException
- Generates a new Unit with the Default-Values
- Parameters:
sName
- the identifying (common) Name of the Wordmultiplier
- the factor- Throws:
- asgaard.skid.SkidException -
init
public void init(java.lang.String name,
java.lang.Object content,
long tsC,
long tsM)
throws asgaard.skid.SkidException
- Inits a new Item with a given Collection Do not use manually.
Only use by the BeanBroker.
- Parameters:
content
- collection of Words indized by other Def'stsC
- created - timestamptsM
- modified - timestamp- Throws:
- asgaard.skid.SkidException - if the given Object is no valid Hashtable
- Overrides:
- init in class Unit
setItem
public void setItem(int index,
java.lang.String name,
java.lang.String title,
java.lang.String prefix,
java.lang.String postfix,
java.lang.String description)
throws asgaard.skid.SkidException
- Extends
setName
adding title, prefix, postfix and description.
- Parameters:
index
- is the key of an other Definition-Beanname
- is the default (short) name of the Itemtitle
- is the heading of the item (long version of the word)prefix
- is displayed before the itempostfix
- is displayed after the itemdescription
- is an extensive note to the numerous item- Throws:
- asgaard.skid.SkidException - if entry is not valid (null)
- See Also:
asgaard.lang.Word.setName
getTitle
public java.lang.String getTitle(int index)
- Returns the heading of the item
- Parameters:
index
- is the key of an other Definition-Bean- See Also:
sgaard.lang.Word.getLongName
getPrefix
public java.lang.String getPrefix(int index)
- Returns the prefix of the item
- Parameters:
index
- is the key of an other Definition-Bean
getPostfix
public java.lang.String getPostfix(int index)
- Returns the postfix of the item
- Parameters:
index
- is the key of an other Definition-Bean
getDescription
public java.lang.String getDescription(int index)
- Returns the description of the item
- Parameters:
index
- is the key of an other Definition-Bean