public class HeadElementImpl extends Object implements HeadElement
Constructor and Description |
---|
HeadElementImpl() |
HeadElementImpl(Element element) |
HeadElementImpl(String tagName) |
Modifier and Type | Method and 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.
|
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.
|
public HeadElementImpl()
public HeadElementImpl(String tagName)
public HeadElementImpl(Element element)
public String getTagName()
HeadElement
getTagName
in interface HeadElement
public void setTagName(String tagName)
public boolean hasAttribute(String name)
HeadElement
hasAttribute
in interface HeadElement
public String getAttribute(String name)
HeadElement
getAttribute
in interface HeadElement
public Map<String,String> getAttributeMap()
HeadElement
getAttributeMap
in interface HeadElement
public void setAttribute(String name, String value)
HeadElement
setAttribute
in interface HeadElement
public String removeAttribute(String name)
HeadElement
removeAttribute
in interface HeadElement
public String getTextContent()
HeadElement
getTextContent
in interface HeadElement
public void setTextContent(String textContent)
HeadElement
setTextContent
in interface HeadElement
public boolean hasChildHeadElements()
HeadElement
hasChildHeadElements
in interface HeadElement
public Collection<HeadElement> getChildHeadElements()
HeadElement
getChildHeadElements
in interface HeadElement
public Object clone() throws CloneNotSupportedException
clone
in interface HeadElement
clone
in class Object
CloneNotSupportedException
Object.clone()
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.