Method from javax.swing.text.html.parser.Element Detail: |
public AttributeList getAttribute(String name) {
for (AttributeList a = atts ; a != null ; a = a.next) {
if (a.name.equals(name)) {
return a;
}
}
return null;
}
Get an attribute by name. |
public AttributeList getAttributeByValue(String name) {
for (AttributeList a = atts ; a != null ; a = a.next) {
if ((a.values != null) && a.values.contains(name)) {
return a;
}
}
return null;
}
Get an attribute by value. |
public AttributeList getAttributes() {
return atts;
}
|
public ContentModel getContent() {
return content;
}
|
public int getIndex() {
return index;
}
|
public String getName() {
return name;
}
Get the name of the element. |
public int getType() {
return type;
}
|
public boolean isEmpty() {
return type == EMPTY;
}
|
public static int name2type(String nm) {
Integer val = contentTypes.get(nm);
return (val != null) ? val.intValue() : 0;
}
|
public boolean omitEnd() {
return oEnd;
}
Return true if the end tag can be omitted. |
public boolean omitStart() {
return oStart;
}
Return true if the start tag can be omitted. |
public String toString() {
return name;
}
|