|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectAbstractItemObj
SimpleNamedItem
A base class for the two item types that only contain a name and reside in
the root group (group 0x0000). These are PermitItem and
DenyItem.
| Constructor Summary | |
protected |
SimpleNamedItem(SimpleNamedItem other)
Creates a new simple named item object with the same properties as the given item. |
protected |
SimpleNamedItem(SsiItem item)
Creates a new simple named item object generated from the data in the given SSI item block. |
protected |
SimpleNamedItem(java.lang.String sn,
int id)
Creates a new simple named item object with the given screenname and the given item ID. |
protected |
SimpleNamedItem(java.lang.String sn,
int id,
TlvChain extraTlvs)
Creates a new simple named item object with the given screenname and the given item ID. |
| Method Summary | |
int |
getId()
Returns the SSI item ID of this simple named item object. |
protected abstract int |
getItemType()
Returns the SSI item type of this item. |
java.lang.String |
getScreenname()
Returns this item's screenname. |
SsiItem |
toSsiItem()
Returns an SsiItem that represents this item object. |
java.lang.String |
toString()
|
| Methods inherited from class AbstractItemObj |
addExtraTlvs, copyExtraTlvs, generateItem, generateSsiItems, getExtraTlvs |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected SimpleNamedItem(SsiItem item)
item - a simple named SSI itemprotected SimpleNamedItem(SimpleNamedItem other)
other - a simple named item object
protected SimpleNamedItem(java.lang.String sn,
int id)
sn - the screenname for this itemid - this item's SSI item ID
protected SimpleNamedItem(java.lang.String sn,
int id,
TlvChain extraTlvs)
sn - the screenname for this itemid - this item's SSI item IDextraTlvs - a list of extra TLV's to store in this item| Method Detail |
public final java.lang.String getScreenname()
public final int getId()
protected abstract int getItemType()
SsiItem.TYPE_*
constants.
public SsiItem toSsiItem()
SsiItemObjSsiItem that represents this item object.
SsiItem that represents this item objectpublic java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||