|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jplist.core.Element<E>
public class Element<E>
Generic implementation of an IElement object. This is the generic supertype for all the core objects that represent PList data types.
Constructor Summary | |
---|---|
protected |
Element(Type type)
Instantiate a concrete subclass with the specified type enumeration. |
Method Summary | |
---|---|
void |
addContent(E obj)
Add an object of type E to the container. |
java.util.List<E> |
getContent()
Return a List of objects of type E. |
Type |
getType()
Returns the Type of the IElement object. |
void |
setContent(java.util.List<E> list)
Set the underlying List |
int |
typeOf()
Returns the type of the IElement object as an int. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Element(Type type)
type
- an element of the Type enumeration.Method Detail |
---|
public java.util.List<E> getContent()
getContent
in interface IElement<E>
public void addContent(E obj)
addContent
in interface IElement<E>
obj
- an object of type E.public void setContent(java.util.List<E> list)
setContent
in interface IElement<E>
list
- a Listpublic int typeOf()
typeOf
in interface IElement<E>
IElement.typeOf()
public Type getType()
getType
in interface IElement<E>
IElement.getType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |