|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjd.xml.xslt.parser.AttributeIterator
An iterator class for the attributes of an xsl element.
| Constructor Summary | |
AttributeIterator(PatternParser patternParser,
XsltParseContext context,
XPathNode[] attributes,
boolean isStylesheetElem)
Create an empty AttributeIterator. |
|
| Method Summary | |
XPathNode |
getAttribute()
Return the current attribute. |
boolean |
getBoolean(String trueValue,
String falseValue,
boolean defaultValue)
Return the value of the current attribute as a boolean. |
char |
getChar()
Return the value of the current attribute as an boolean. |
String |
getExpandedName()
Return an expanded name which has qname equals to the current attribute value. |
String[] |
getExpandedNames()
Return a list of expanded names from the whitespace separated list of qnames equal to the current attribute value. |
Expression |
getExpression()
Return the value of the current attribute as a parsed expression. |
String |
getName()
Return the name of the current attribute. |
Pattern |
getPattern()
Return the value of the current attribute as a parsed pattern. |
String |
getValue()
Return the value of the current attribute. |
boolean |
match(String localName)
Test if the local name of the current attribute matches the given name. |
boolean |
next()
Advance to the next attribute. |
void |
reportInvalidAttribute()
An invalid attribute was detected. |
void |
reportInvalidAttributeValue()
An invalid attribute was detected. |
void |
start()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AttributeIterator(PatternParser patternParser,
XsltParseContext context,
XPathNode[] attributes,
boolean isStylesheetElem)
| Method Detail |
public void start()
public boolean next()
public XPathNode getAttribute()
public String getName()
public boolean match(String localName)
public String getValue()
public boolean getBoolean(String trueValue,
String falseValue,
boolean defaultValue)
throws XsltParseException
trueValue - the string representing boolean truefalseValue - the string representing boolean falsedefaultValue - returned when neither trueValue or falseValue are
recognized but forwards compatible processing is enabled
jd.xml.xstl.parser.XsltException - thrown if the string value does
not equal the given variants.
XsltParseException
public char getChar()
throws XsltParseException
XsltParseException - thrown if the length
of the attribute value is not 1
public String getExpandedName()
throws XsltParseException
XsltParseException
public String[] getExpandedNames()
throws XsltParseException
XsltParseException
public Expression getExpression()
throws XsltParseException
XsltParseException - thrown if
expression could not be parsed
public Pattern getPattern()
throws XsltParseException
XsltParseException - thrown if
pattern could not be parsed
public void reportInvalidAttribute()
throws XsltParseException
XsltParseException
public void reportInvalidAttributeValue()
throws XsltParseException
XsltParseException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||