org.hippoecm.hst.core.component
Interface HeadElement

All Superinterfaces:
Cloneable, Serializable
All Known Implementing Classes:
HeadElementImpl

public interface HeadElement
extends Serializable, Cloneable

HeadElement interface wrapping a head contribution element

Version:
$Id: HeadElement.java 25188 2010-11-19 02:09:13Z wko $

Method Summary
 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.
 Collection<HeadElement> getChildHeadElements()
          Returns the collection of the child head elements.
 String getTagName()
          Return the tag name of the head contribution element
 String 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 name
 boolean hasChildHeadElements()
          Checks if the head contribution element contains child head elements.
 String 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

Returns:

hasAttribute

boolean hasAttribute(String name)
Checks if the head contribution element has the attribute specified by the attribute name

Parameters:
name -
Returns:

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 -
Returns:

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.

Returns:

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 -
Returns:

getTextContent

String getTextContent()
Returns the text content of the head contribution element.

Returns:

setTextContent

void setTextContent(String textContent)
Sets the text content of the head contribution element.

Parameters:
textContent -

hasChildHeadElements

boolean hasChildHeadElements()
Checks if the head contribution element contains child head elements.

Returns:

getChildHeadElements

Collection<HeadElement> getChildHeadElements()
Returns the collection of the child head elements. Returns an empty collection if there's no child head elements.

Returns:

clone

Object clone()
             throws CloneNotSupportedException

Throws:
CloneNotSupportedException


Copyright © 2008-2012 Hippo. All Rights Reserved.