Class SectionHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.cakelab.jdoxml.impl.basehandler.BaseHandler<SectionHandler>
-
- org.cakelab.jdoxml.impl.sectionhandler.SectionHandler
-
- All Implemented Interfaces:
ISection
,IUserDefined
,IBaseHandler
,org.xml.sax.ContentHandler
,org.xml.sax.DTDHandler
,org.xml.sax.EntityResolver
,org.xml.sax.ErrorHandler
public class SectionHandler extends BaseHandler<SectionHandler> implements IUserDefined
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.cakelab.jdoxml.api.ISection
ISection.SectionKind
-
-
Field Summary
-
Fields inherited from class org.cakelab.jdoxml.impl.basehandler.BaseHandler
elementMapper, m_curString, m_delegateHandler, m_fallBackHandler, m_skipCount, m_skipUntil, s_theLocator
-
-
Constructor Summary
Constructors Constructor Description SectionHandler(IBaseHandler parent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IDocRoot
description()
Returns the description attached to this section (for user defined sections, also known as member groups).void
endHeader()
void
endSection()
java.lang.String
header()
void
initialize(CompoundHandler ch)
boolean
isPrivate()
Returns \c true if this section belongs to a private section of a classboolean
isProtected()
Returns \c true if this section belongs to a protected section of a classboolean
isPublic()
Returns \c true if this section belongs to a public section of a classboolean
isStatic()
Returns \c true if this section contains staticsISection.SectionKind
kind()
Returns what kind of section this isjava.lang.String
kindString()
Returns a string representation of the value returned by kind()java.util.ListIterator<IMember>
members()
Returns an iterator for the members of this sectionstatic void
sectionhandler_exit()
static void
sectionhandler_init()
void
startDescription(org.xml.sax.Attributes attrib)
void
startHeader(org.xml.sax.Attributes attrib)
void
startMember(org.xml.sax.Attributes attrib)
void
startSection(org.xml.sax.Attributes attrib)
-
Methods inherited from class org.cakelab.jdoxml.impl.basehandler.BaseHandler
addEndHandler, addEndHandler, addStartHandler, addStartHandler, characters, delegate, endElement, fallBackHandler, setDelegate, setDocumentLocator, setFallBackHandler, skippedEntity, startDocument, startElement
-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Constructor Detail
-
SectionHandler
public SectionHandler(IBaseHandler parent)
-
-
Method Detail
-
sectionhandler_init
public static void sectionhandler_init()
-
sectionhandler_exit
public static void sectionhandler_exit()
-
startSection
public void startSection(org.xml.sax.Attributes attrib)
-
startDescription
public void startDescription(org.xml.sax.Attributes attrib)
-
endSection
public void endSection()
-
startMember
public void startMember(org.xml.sax.Attributes attrib)
-
startHeader
public void startHeader(org.xml.sax.Attributes attrib)
-
endHeader
public void endHeader()
-
initialize
public void initialize(CompoundHandler ch)
-
description
public IDocRoot description()
Description copied from interface:ISection
Returns the description attached to this section (for user defined sections, also known as member groups).- Specified by:
description
in interfaceISection
-
members
public java.util.ListIterator<IMember> members()
Description copied from interface:ISection
Returns an iterator for the members of this section
-
kindString
public java.lang.String kindString()
Description copied from interface:ISection
Returns a string representation of the value returned by kind()- Specified by:
kindString
in interfaceISection
-
kind
public ISection.SectionKind kind()
Description copied from interface:ISection
Returns what kind of section this is
-
isStatic
public boolean isStatic()
Description copied from interface:ISection
Returns \c true if this section contains statics
-
isPublic
public boolean isPublic()
Description copied from interface:ISection
Returns \c true if this section belongs to a public section of a class
-
isProtected
public boolean isProtected()
Description copied from interface:ISection
Returns \c true if this section belongs to a protected section of a class- Specified by:
isProtected
in interfaceISection
-
isPrivate
public boolean isPrivate()
Description copied from interface:ISection
Returns \c true if this section belongs to a private section of a class
-
header
public java.lang.String header()
- Specified by:
header
in interfaceIUserDefined
-
-