Package org.hippoecm.hst.core.component
Interface WrapperElement
-
- All Superinterfaces:
Cloneable
,Serializable
public interface WrapperElement extends Serializable, Cloneable
WrapperElement interface to wrap markup contents- Version:
- $Id$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
clone()
String
getAttribute(String name)
Returns the attribute value of the head contribution element specified by the attribute name.Map<String,String>
getAttributeMap()
Returns unmodifiable attribute map of the head contribution element.Set<String>
getSkipEscapingAttrs()
String
getTagName()
Return the tag name of the head contribution elementString
getTextContent()
Returns the text content of the head contribution element.boolean
hasAttribute(String name)
Checks if the head contribution element has the attribute specified by the attribute nameString
removeAttribute(String name)
Removes the attribute from the head contribution element specified by the attribute name.void
setAttribute(String name, String value)
Sets attribute on the head contribution element.void
setTextContent(String textContent)
Sets the text content of the head contribution element.
-
-
-
Method Detail
-
getTagName
String getTagName()
Return the tag name of the head contribution element
-
hasAttribute
boolean hasAttribute(String name)
Checks if the head contribution element has the attribute specified by the attribute name- Parameters:
name
-
-
getAttribute
String getAttribute(String name)
Returns the attribute value of the head contribution element specified by the attribute name. Returns null if there's no attribute specified by the attribute name.- Parameters:
name
-
-
getAttributeMap
Map<String,String> getAttributeMap()
Returns unmodifiable attribute map of the head contribution element. Returns an empty unmodifiable attribute map if there's no attribute.
-
setAttribute
void setAttribute(String name, String value)
Sets attribute on the head contribution element. Returns null if there's no attribute in the head contribution element.- Parameters:
name
-value
-
-
removeAttribute
String removeAttribute(String name)
Removes the attribute from the head contribution element specified by the attribute name. Returns the attribute value if the attribute exists, or returns null if the attribute doesn't exist.- Parameters:
name
-
-
getTextContent
String getTextContent()
Returns the text content of the head contribution element.
-
setTextContent
void setTextContent(String textContent)
Sets the text content of the head contribution element.- Parameters:
textContent
-
-
getSkipEscapingAttrs
Set<String> getSkipEscapingAttrs()
- Returns:
- the set of attributes for which the values should not be encoded. If no specific attributes should be
skipped an empty
Set
is returned
-
clone
Object clone() throws CloneNotSupportedException
- Throws:
CloneNotSupportedException
- See Also:
Object.clone()
-
-