com.icl.saxon.om
Class Stripper
- Result
The Stripper class maintains details of which elements need to be stripped.
The code is written to act as a SAX filter to do the stripping.
Stripper() - Default constructor for use in subclasses
|
Stripper(Mode stripperRules) - create a Stripper and initialise variables
|
void | characters(ch[] , int start, int length) - Callback interface for SAX: not for application use
|
void | endElement(int nameCode) - Callback interface for SAX: not for application use
|
boolean | getPreserveAll() - Determine if all whitespace is to be preserved (in this case, no further testing
is needed)
|
boolean | getStripAll() - Determine if all whitespace is to be stripped (in this case, no further testing
is needed)
|
boolean | isSpacePreserving(int nameCode) - Decide whether an element is in the set of white-space preserving element types
|
void | setController(Controller controller) - Set the Controller to be used
|
void | setPreserveAll() - Specify that all whitespace nodes are to be preserved
|
void | setStripAll() - Specify that all whitespace nodes are to be stripped
|
void | startDocument() - Callback interface for SAX: not for application use
|
void | startElement(int nameCode, Attributes atts, int[] namespaces, int nscount) - Callback interface for SAX: not for application use
|
characters , comment , endDocument , endElement , processingInstruction , setDocumentLocator , setEscaping , setNamePool , setOutputProperties , setUnderlyingEmitter , setUnparsedEntity , setWriter , startDocument , startElement |
characters , comment , endDocument , endElement , getNamePool , getOutputProperties , getOutputStream , getSystemId , getWriter , makeEmitter , processingInstruction , setDocumentLocator , setEscaping , setNamePool , setOutputProperties , setOutputStream , setSystemId , setUnparsedEntity , setWriter , startDocument , startElement , usesWriter |
Stripper
protected Stripper()
Default constructor for use in subclasses
Stripper
public Stripper(Mode stripperRules)
create a Stripper and initialise variables
characters
public void characters(ch[] ,
int start,
int length)
throws TransformerException
Callback interface for SAX: not for application use
endElement
public void endElement(int nameCode)
throws TransformerException
Callback interface for SAX: not for application use
- endElement in interface ProxyEmitter
getPreserveAll
public boolean getPreserveAll()
Determine if all whitespace is to be preserved (in this case, no further testing
is needed)
getStripAll
public boolean getStripAll()
Determine if all whitespace is to be stripped (in this case, no further testing
is needed)
isSpacePreserving
public boolean isSpacePreserving(int nameCode)
Decide whether an element is in the set of white-space preserving element types
- true if the element is in the set of white-space preserving element types
setController
public void setController(Controller controller)
Set the Controller to be used
setPreserveAll
public void setPreserveAll()
Specify that all whitespace nodes are to be preserved
setStripAll
public void setStripAll()
Specify that all whitespace nodes are to be stripped
startDocument
public void startDocument()
throws TransformerException
Callback interface for SAX: not for application use
- startDocument in interface ProxyEmitter
startElement
public void startElement(int nameCode,
Attributes atts,
int[] namespaces,
int nscount)
throws TransformerException
Callback interface for SAX: not for application use
- startElement in interface ProxyEmitter