|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IElement
This interface should be implemented by an Element
Method Summary | |
---|---|
IElement |
addElement(IElement item)
Allow to add item to the list of sub element |
void |
delElement(IElement author)
|
java.lang.String |
getComment()
|
IElement |
getContainer()
Return an IElement which represents the parent of the current Element. |
java.lang.String |
getDesc()
|
java.lang.String |
getDesc0()
|
java.lang.String |
getDesc1()
|
java.lang.String |
getDesc2()
|
java.util.List<IElement> |
getElements()
Return a List of IElement which represents all the children of the current Element. |
java.lang.Long |
getId()
Returns the id of the Element. |
java.lang.String |
getMeta()
Return the meta in the Element. |
java.lang.String |
getName()
Return the name in the Element. |
java.lang.String |
getScore()
|
java.lang.String |
getText()
Return the text in the Element. |
java.lang.String |
getTitle()
Return the name in the Element. |
void |
setComment(java.lang.String text)
|
void |
setContainer(IElement element)
Allow to set the container (the parent of an Element). |
void |
setDesc(java.lang.String desc)
|
void |
setDesc0(java.lang.String text)
|
void |
setDesc1(java.lang.String text)
|
void |
setDesc2(java.lang.String text)
|
void |
setElements(java.util.List<IElement> elements)
Allow to set the children of the current Element. |
void |
setId(java.lang.Long id)
Allows to set the id of the Element. |
void |
setMeta(java.lang.String meta)
Allows to set the meta of the Element. |
void |
setName(java.lang.String name)
Allows to set the name of the Element. |
void |
setScore(java.lang.String text)
|
void |
setText(java.lang.String text)
Allows to set the text of the Element. |
void |
setTitle(java.lang.String title)
Allows to set the title of the Element. |
java.lang.String |
toString()
Returns a string representation of the Element |
java.lang.String |
tree()
Return a string version of the Element and its childs. |
Method Detail |
---|
java.lang.Long getId()
Returns the id of the Element.
void setId(java.lang.Long id)
Allows to set the id of the Element.
id
- The id to set.java.lang.String getMeta()
void setMeta(java.lang.String meta)
Allows to set the meta of the Element.
meta
- the meta to set.java.lang.String getName()
void setName(java.lang.String name)
Allows to set the name of the Element.
name
- the name to set.java.lang.String getTitle()
void setTitle(java.lang.String title)
Allows to set the title of the Element.
title
- the title to set.java.lang.String getText()
void setText(java.lang.String text)
Allows to set the text of the Element.
text
- the text to set.java.util.List<IElement> getElements()
Return a List of IElement which represents all the children of the current Element.
void setElements(java.util.List<IElement> elements)
Allow to set the children of the current Element.
elements
- The List of Elements to set.IElement getContainer()
Return an IElement which represents the parent of the current Element.
void setContainer(IElement element)
Allow to set the container (the parent of an Element).
element
- the IElement to set as container of the current Element.IElement addElement(IElement item)
Allow to add item to the list of sub element
item
- the IElement to add to the children of this object.
java.lang.String toString()
Returns a string representation of the Element
toString
in class java.lang.Object
java.lang.String tree()
Return a string version of the Element and its childs. This method is designed to ease unit test and debug and is not to be used for anything else.
void setDesc(java.lang.String desc)
java.lang.String getDesc()
void setDesc0(java.lang.String text)
text
- java.lang.String getDesc0()
text
- void setDesc1(java.lang.String text)
java.lang.String getDesc1()
void setDesc2(java.lang.String text)
text
- java.lang.String getDesc2()
void setComment(java.lang.String text)
text
- java.lang.String getComment()
void setScore(java.lang.String text) throws java.io.IOException
text
-
java.io.IOException
java.lang.String getScore()
void delElement(IElement author)
author
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |