|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAbstractItemObj
A base class for each of the item object classes provided in this package.
Constructor Summary | |
protected |
AbstractItemObj()
Creates a new item object with no extra TLV's. |
protected |
AbstractItemObj(TlvChain extraTlvs)
Creates a new item object with the given set of unprocessed or otherwise unrecognized TLV's in this item's type-specific TLV list. |
Method Summary | |
protected void |
addExtraTlvs(TlvChain extraTlvs)
Adds the given list of TLV's to this item's list of extra TLV's. |
protected TlvChain |
copyExtraTlvs()
Returns a copy of this item's extra TLV's, or null if this
item's extra TLV list is null . |
protected SsiItem |
generateItem(java.lang.String name,
int parentid,
int subid,
int type,
TlvChain customTlvs)
Generates a new SsiItem from this item object with the given
properties. |
static SsiItem[] |
generateSsiItems(SsiItemObj[] itemObjs)
Returns a list of SsiItem s generated from the item objects
given in itemObjs . |
MutableTlvChain |
getExtraTlvs()
Returns the "extra TLV list" for this item. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface SsiItemObj |
toSsiItem |
Constructor Detail |
protected AbstractItemObj()
new
AbstractItemObj(null)
.
protected AbstractItemObj(TlvChain extraTlvs)
extraTlvs
- the extra TLV's in this itemMethod Detail |
public static SsiItem[] generateSsiItems(SsiItemObj[] itemObjs)
SsiItem
s generated from the item objects
given in itemObjs
.
itemObjs
- a list of item objects to use in generating the returned
list of SsiItem
s
SsiItem
s generated from the given list of
item objectsSsiItemObj.toSsiItem()
protected final TlvChain copyExtraTlvs()
null
if this
item's extra TLV list is null
.
public final MutableTlvChain getExtraTlvs()
SsiItemObj
null
.
getExtraTlvs
in interface SsiItemObj
protected final void addExtraTlvs(TlvChain extraTlvs)
getExtraTlvs()
.addAll
(extraTlvs)
.
extraTlvs
- the list of TLV's to append to this object's list of
extra TLV'sprotected final SsiItem generateItem(java.lang.String name, int parentid, int subid, int type, TlvChain customTlvs)
SsiItem
from this item object with the given
properties.
name
- the name of the itemparentid
- the "parent ID" of this itemsubid
- the "sub ID" of this item in its parenttype
- the type of item, like SsiItem.TYPE_PRIVACY
customTlvs
- a list of TLV's to insert into the type-specific data
block of the returned item
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |