asgaard.lang
Class Def

java.lang.Object
  |
  +--asgaard.skid.LightBean
        |
        +--asgaard.lang.Def
Direct Known Subclasses:
Word

public class Def
extends asgaard.skid.LightBean

This Class is a special lightweight type of Bean which does not carry any Attributes but it's name (no multilanguage-support). Therefor it is used to hold e.g. String - identifyers used by the System.

Minimal Usage: (The RemoteBroker should be instanciated at this time) Def d = new Def( );
b.flush();

Remark: A System-Object cannot be modified and carries the created-Timestamp 0

Remark: To inherit this kind of SkidBean modifications within the code of the BeanBroker are nessecary (look for the BEANTYPE pattern).

See Also:
Serialized Form

Field Summary
protected  java.lang.String longName
           
protected  java.lang.String shortName
           
 
Fields inherited from class asgaard.skid.LightBean
broker, cKey, debug, history_policy, key, tsCreated, tsModified, update_policy
 
Constructor Summary
Def()
          Generates a empty definition
Def(java.lang.String sName, java.lang.String lName)
          Generates a new definition with a given name.
 
Method Summary
 java.lang.String getLongname()
          Returns the long name of the definition.
 java.lang.String getName()
          Returns the name of the Bean which shold be human readable and may be unique in some cases, but this is not strictly required.
 java.lang.Object getObject()
          Returns the wrapped Object, in this case it's the Longname.
 void init(int key, int classKey, java.lang.String name, java.lang.Object content, long tsC, long tsM)
          Initialises a new Lightweight Bean with a given name and timestamps Do not use manually!!!
 void setLongname(java.lang.String name)
          Sets the long name of the definition.
 void setName(java.lang.String name)
          Sets the name of the Definition.
 
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
 

Field Detail

shortName

protected java.lang.String shortName

longName

protected java.lang.String longName
Constructor Detail

Def

public Def()
Generates a empty definition

Def

public Def(java.lang.String sName,
           java.lang.String lName)
    throws asgaard.skid.SkidException
Generates a new definition with a given name.
Parameters:
sName - the short name of the def
lName - the long name of the def
Throws:
asgaard.skid.SkidException -  
Method Detail

init

public void init(int key,
                 int classKey,
                 java.lang.String name,
                 java.lang.Object content,
                 long tsC,
                 long tsM)
          throws asgaard.skid.SkidException
Initialises a new Lightweight Bean with a given name and timestamps Do not use manually!!!
Parameters:
key - of the Bean
calssKey - of the Bean
name - the short name of the def
content - the long name of the def
tsC - created - timestamp
tsM - modified - timestamp
Throws:
asgaard.skid.SkidException -  
Overrides:
init in class asgaard.skid.LightBean

getName

public java.lang.String getName()
Returns the name of the Bean which shold be human readable and may be unique in some cases, but this is not strictly required.
Overrides:
getName in class asgaard.skid.LightBean

setName

public void setName(java.lang.String name)
Sets the name of the Definition.
Parameters:
name - the value

getLongname

public java.lang.String getLongname()
Returns the long name of the definition.

setLongname

public void setLongname(java.lang.String name)
Sets the long name of the definition.
Parameters:
name - a new name

getObject

public java.lang.Object getObject()
Returns the wrapped Object, in this case it's the Longname.
Overrides:
getObject in class asgaard.skid.LightBean