org.hippoecm.hst.core.component
Class WrapperElementImpl

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

public class WrapperElementImpl
extends Object
implements WrapperElement

WrapperElementImpl

Version:
$Id$
See Also:
Serialized Form

Constructor Summary
WrapperElementImpl()
           
WrapperElementImpl(Element element)
           
WrapperElementImpl(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.
 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
 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

WrapperElementImpl

public WrapperElementImpl()

WrapperElementImpl

public WrapperElementImpl(String tagName)

WrapperElementImpl

public WrapperElementImpl(Element element)
Method Detail

getTagName

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

Specified by:
getTagName in interface WrapperElement
Returns:

setTagName

public void setTagName(String tagName)

hasAttribute

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

Specified by:
hasAttribute in interface WrapperElement
Returns:

getAttribute

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

getAttributeMap

public Map<String,String> getAttributeMap()
Description copied from interface: WrapperElement
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 WrapperElement
Returns:

setAttribute

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

Specified by:
setAttribute in interface WrapperElement

removeAttribute

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

getTextContent

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

Specified by:
getTextContent in interface WrapperElement
Returns:

setTextContent

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

Specified by:
setTextContent in interface WrapperElement

clone

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

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


Copyright © 2008-2012 Hippo. All Rights Reserved.