Package org.javlo.helper
Class XMLManipulationHelper.TagDescription
- java.lang.Object
-
- org.javlo.helper.XMLManipulationHelper.TagDescription
-
- Enclosing class:
- XMLManipulationHelper
public static class XMLManipulationHelper.TagDescription extends Object
-
-
Constructor Summary
Constructors Constructor Description TagDescription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCssClass(String cssClass)booleanequals(Object obj)StringgetAttribute(String key, String defaultValue)Map<String,String>getAttributes()intgetCloseEnd()intgetCloseStart()StringgetInside(String content)StringgetName()intgetOpenEnd()intgetOpenStart()booleanisAutoClose()Stringrender(String inside)return the tag rendered in HTMLStringrenderOpen()return the tag rendered in HTMLvoidsetCloseEnd(int closeEnd)voidsetCloseStart(int closeStart)voidsetName(String name)voidsetOpenEnd(int openEnd)voidsetOpenStart(int openStart)StringtoString()
-
-
-
Method Detail
-
getCloseEnd
public int getCloseEnd()
-
getCloseStart
public int getCloseStart()
-
getName
public String getName()
-
getOpenEnd
public int getOpenEnd()
-
getOpenStart
public int getOpenStart()
-
isAutoClose
public boolean isAutoClose()
-
render
public String render(String inside)
return the tag rendered in HTML- Parameters:
inside- the content (null for autoclose tag)- Returns:
- a HTML code with the tag
-
renderOpen
public String renderOpen()
return the tag rendered in HTML- Parameters:
inside- the content (null for autoclose tag)- Returns:
- a HTML code with the tag
-
setCloseEnd
public void setCloseEnd(int closeEnd)
-
setCloseStart
public void setCloseStart(int closeStart)
-
setName
public void setName(String name)
-
setOpenEnd
public void setOpenEnd(int openEnd)
-
setOpenStart
public void setOpenStart(int openStart)
-
addCssClass
public void addCssClass(String cssClass)
-
-