Methods Summary |
---|
public javax.swing.text.html.parser.AttributeList | getAttribute(java.lang.String name)Get an attribute by name.
for (AttributeList a = atts ; a != null ; a = a.next) {
if (a.name.equals(name)) {
return a;
}
}
return null;
|
public javax.swing.text.html.parser.AttributeList | getAttributeByValue(java.lang.String name)Get an attribute by value.
for (AttributeList a = atts ; a != null ; a = a.next) {
if ((a.values != null) && a.values.contains(name)) {
return a;
}
}
return null;
|
public javax.swing.text.html.parser.AttributeList | getAttributes()Get the attributes.
return atts;
|
public javax.swing.text.html.parser.ContentModel | getContent()Get content model
return content;
|
public int | getIndex()Get index.
return index;
|
public java.lang.String | getName()Get the name of the element.
return name;
|
public int | getType()Get type.
return type;
|
public boolean | isEmpty()Check if empty
return type == EMPTY;
|
public static int | name2type(java.lang.String nm)
contentTypes.put("CDATA", new Integer(CDATA));
contentTypes.put("RCDATA", new Integer(RCDATA));
contentTypes.put("EMPTY", new Integer(EMPTY));
contentTypes.put("ANY", new Integer(ANY));
Integer val = (Integer)contentTypes.get(nm);
return (val != null) ? val.intValue() : 0;
|
public boolean | omitEnd()Return true if the end tag can be omitted.
return oEnd;
|
public boolean | omitStart()Return true if the start tag can be omitted.
return oStart;
|
public java.lang.String | toString()Convert to a string.
return name;
|