|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectezvcard.io.html.HCardElement
public class HCardElement
Wraps hCard functionality around an HTML Element object.
| Constructor Summary | |
|---|---|
HCardElement(Element element)
Creates an hCard element. |
|
| Method Summary | |
|---|---|
String |
absUrl(String name)
Gets the absolute URL of an attribute that has a URL. |
List<String> |
allValues(String cssClass)
Gets the hCard values of all descendant elements that have the given CSS class name. |
void |
append(String text)
Appends text to the element, replacing newlines with <br> tags. |
String |
attr(String name)
Gets an attribute value. |
Set<String> |
classNames()
Gets the element's CSS classes. |
String |
firstValue(String cssClass)
Gets the hCard value of the first descendant element that has the given CSS class name. |
Element |
getElement()
Gets the wrapped HTML element. |
String |
tagName()
Gets the name of the HTML element. |
List<String> |
types()
Gets all type values (for example, "home" and "cell" for the "tel" type). |
String |
value()
Gets the hCard value of this element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HCardElement(Element element)
element - the HTML element to wrap| Method Detail |
|---|
public String tagName()
public String attr(String name)
name - the attribute name
public String absUrl(String name)
name - the attribute name
public Set<String> classNames()
public String value()
<abbr> and contains a
title attribute, then the value of the title
attribute is returned.value, then append together the text contents
of these elements.<br> tags are converted to newlines. All text
within <del> tags are ignored.
public String firstValue(String cssClass)
cssClass - the CSS class name
public List<String> allValues(String cssClass)
cssClass - the CSS class name
public List<String> types()
public void append(String text)
<br> tags.
text - the text to appendpublic Element getElement()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||