org.hippoecm.hst.core.component
Class HeadElementImpl

java.lang.Object
  extended by org.hippoecm.hst.core.component.HeadElementImpl
All Implemented Interfaces:
Serializable, Cloneable, HeadElement

public class HeadElementImpl
extends Object
implements HeadElement

HeadElementImpl

Version:
$Id: HeadElementImpl.java 25188 2010-11-19 02:09:13Z wko $
See Also:
Serialized Form

Constructor Summary
HeadElementImpl()
           
HeadElementImpl(Element element)
           
HeadElementImpl(String tagName)
           
 
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 setTagName(String tagName)
           
 void setTextContent(String textContent)
          Sets the text content of the head contribution element.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeadElementImpl

public HeadElementImpl()

HeadElementImpl

public HeadElementImpl(String tagName)

HeadElementImpl

public HeadElementImpl(Element element)
Method Detail

getTagName

public String getTagName()
Description copied from interface: HeadElement
Return the tag name of the head contribution element

Specified by:
getTagName in interface HeadElement
Returns:

setTagName

public void setTagName(String tagName)

hasAttribute

public boolean hasAttribute(String name)
Description copied from interface: HeadElement
Checks if the head contribution element has the attribute specified by the attribute name

Specified by:
hasAttribute in interface HeadElement
Returns:

getAttribute

public String getAttribute(String name)
Description copied from interface: HeadElement
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.

Specified by:
getAttribute in interface HeadElement
Returns:

getAttributeMap

public Map<String,String> getAttributeMap()
Description copied from interface: HeadElement
Returns unmodifiable attribute map of the head contribution element. Returns an empty unmodifiable attribute map if there's no attribute.

Specified by:
getAttributeMap in interface HeadElement
Returns:

setAttribute

public void setAttribute(String name,
                         String value)
Description copied from interface: HeadElement
Sets attribute on the head contribution element. Returns null if there's no attribute in the head contribution element.

Specified by:
setAttribute in interface HeadElement

removeAttribute

public String removeAttribute(String name)
Description copied from interface: HeadElement
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.

Specified by:
removeAttribute in interface HeadElement
Returns:

getTextContent

public String getTextContent()
Description copied from interface: HeadElement
Returns the text content of the head contribution element.

Specified by:
getTextContent in interface HeadElement
Returns:

setTextContent

public void setTextContent(String textContent)
Description copied from interface: HeadElement
Sets the text content of the head contribution element.

Specified by:
setTextContent in interface HeadElement

hasChildHeadElements

public boolean hasChildHeadElements()
Description copied from interface: HeadElement
Checks if the head contribution element contains child head elements.

Specified by:
hasChildHeadElements in interface HeadElement
Returns:

getChildHeadElements

public Collection<HeadElement> getChildHeadElements()
Description copied from interface: HeadElement
Returns the collection of the child head elements. Returns an empty collection if there's no child head elements.

Specified by:
getChildHeadElements in interface HeadElement
Returns:

clone

public Object clone()
             throws CloneNotSupportedException
Description copied from interface: HeadElement

Specified by:
clone in interface HeadElement
Overrides:
clone in class Object
Throws:
CloneNotSupportedException


Copyright © 2008-2012 Hippo. All Rights Reserved.