|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.xsl.process.ElementMatch
This class is used for matching element names for the purpose of whitespace stripping.
| Constructor Summary | |
ElementMatch(WildcardName name,
boolean strip,
int importance,
int number)
Construct an ElementMatch object for the passed name |
|
| Method Summary | |
int |
compareTo(Object obj)
Compares this ElementMatch with another ElementMatch for conflict resolution order. |
void |
dump(PrintWriter out,
int indent)
Dumps this object to the specified output stream. |
int |
getNumber()
Return this ElementMatch's sequence number |
boolean |
isStrip()
Return true if this match object is from a strip-space element |
boolean |
matches(Element element)
Return true if the passed element matches the name represented by this ElementMatch object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ElementMatch(WildcardName name,
boolean strip,
int importance,
int number)
name - The name or wildcard name of the element(s) to matchstrip - True if this is from a strip-space element, false if
this is from a preserve-space element.importance - The import precedence of this match (The import
precedence of the xsl:strip-space or xsl-preserve-space element
that contains the element WildcardName item).number - The relative position of this in the stylesheet| Method Detail |
public boolean matches(Element element)
element - The element to match
public boolean isStrip()
public int compareTo(Object obj)
compareTo in interface Comparableobj - the other ElementMatch to compare with; it is declared
as an Object to conform with the
Comparable interface
ClassCastException - if the specified object is not a ElementMatchpublic int getNumber()
public void dump(PrintWriter out,
int indent)
out - the output stream to write toindent - number of tabs to indent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||