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 void
addCssClass(String cssClass)
boolean
equals(Object obj)
String
getAttribute(String key, String defaultValue)
Map<String,String>
getAttributes()
int
getCloseEnd()
int
getCloseStart()
String
getInside(String content)
String
getName()
int
getOpenEnd()
int
getOpenStart()
boolean
isAutoClose()
String
render(String inside)
return the tag rendered in HTMLString
renderOpen()
return the tag rendered in HTMLvoid
setCloseEnd(int closeEnd)
void
setCloseStart(int closeStart)
void
setName(String name)
void
setOpenEnd(int openEnd)
void
setOpenStart(int openStart)
String
toString()
-
-
-
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)
-
-