Package org.appng.tools.markup
Class XHTML
- java.lang.Object
-
- org.appng.tools.markup.XHTML
-
public class XHTML extends Object
Reads/inserts an attribute from/to a given XHTML-Tag- Author:
- Matthias Herlitzius
-
-
Constructor Summary
Constructors Constructor Description XHTML()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetAttr(String tag, String attr)Retrieves the attribute of the tagstatic StringgetBody(String tag, String content)static StringgetTag(String tag)Retrieves the tag's namestatic StringremoveAttr(String tag, String attr)Removes the attribute from the tagstatic StringsetAttr(String tag, String attr, String value)Sets the attribute of the tagstatic StringsetBody(String tag, String value)Sets the body content for the tag
-
-
-
Method Detail
-
removeAttr
public static String removeAttr(String tag, String attr)
Removes the attribute from the tag- Parameters:
tag-attr-- Returns:
- the tag without the attribute
-
setAttr
public static String setAttr(String tag, String attr, String value)
Sets the attribute of the tag- Parameters:
tag-attr-value-- Returns:
- the tag with the attribute set
-
setBody
public static String setBody(String tag, String value)
Sets the body content for the tag- Parameters:
tag-value-- Returns:
- the tag with the body content
-
getAttr
public static String getAttr(String tag, String attr)
Retrieves the attribute of the tag- Parameters:
tag-attr-- Returns:
- the attribute value
-
-