com.simonstl.fragment
Class Skip

java.lang.Object
  |
  +--com.simonstl.fragment.DocComponent
        |
        +--com.simonstl.fragment.Skip

public class Skip
extends DocComponent

The Skip class stores information about pieces which should be skipped.

Version 0.02 supports the cleanDuplicate() method to avoid shallow copying issues.

Version 0.01 is based on the Characters class.

Version:
0.02 4 July 2001
Author:
Simon St.Laurent

Fields inherited from class com.simonstl.fragment.DocComponent
after, before, content, localName, nsURI, parentElement, prefix, type
 
Constructor Summary
Skip()
          Most Skip classes have little information, though before and after elements may add a bit of information.
Skip(Skip oldDocComponent)
          Creates a new skip from an old DocComponent.
 
Method Summary
 DocComponent cleanDuplicate()
          Returns a clean copy of the component and its contents.
 void eventComponent(FragmentFilter handler)
          Describes the content for this component as a series of SAX events.
 java.lang.String getKey()
          Skips don't really have keys, but they return "skip" as a value.
 boolean matchComponent(java.lang.String match)
          Takes a string representing a component description and returns true or false to indicate whether or not it matches this component.
 void print()
          Prints a representation of the component to STDOUT
 java.lang.String toString()
          Returns a representation of the component as a String.
 
Methods inherited from class com.simonstl.fragment.DocComponent
addContent, clearContent, getAfter, getBefore, getContent, getLocalName, getNsURI, getParentElement, getPrefix, getType, matchAll, matchComponent, matchElement, matchSingleton, processComponentContent, setAfter, setBefore, setContent, setLocalName, setNsURI, setParentElement, setPrefix, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Skip

public Skip()
Most Skip classes have little information, though before and after elements may add a bit of information.

Skip

public Skip(Skip oldDocComponent)
Creates a new skip from an old DocComponent. Note that you
Method Detail

cleanDuplicate

public DocComponent cleanDuplicate()
Description copied from class: DocComponent
Returns a clean copy of the component and its contents.
Overrides:
cleanDuplicate in class DocComponent

matchComponent

public boolean matchComponent(java.lang.String match)
Description copied from class: DocComponent
Takes a string representing a component description and returns true or false to indicate whether or not it matches this component.
Overrides:
matchComponent in class DocComponent

getKey

public java.lang.String getKey()
Skips don't really have keys, but they return "skip" as a value.
Overrides:
getKey in class DocComponent

eventComponent

public void eventComponent(FragmentFilter handler)
                    throws org.xml.sax.SAXException
Description copied from class: DocComponent
Describes the content for this component as a series of SAX events. Note that FragmentFilter supports some events (startChars and endChars) which are extensions to the existing SAX models and which serve to keep the stacks under control.
Overrides:
eventComponent in class DocComponent

print

public void print()
Description copied from class: DocComponent
Prints a representation of the component to STDOUT
Overrides:
print in class DocComponent

toString

public java.lang.String toString()
Description copied from class: DocComponent
Returns a representation of the component as a String.
Overrides:
toString in class DocComponent