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 String
getAttr(String tag, String attr)
Retrieves the attribute of the tagstatic String
getBody(String tag, String content)
static String
getTag(String tag)
Retrieves the tag's namestatic String
removeAttr(String tag, String attr)
Removes the attribute from the tagstatic String
setAttr(String tag, String attr, String value)
Sets the attribute of the tagstatic String
setBody(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
-
-