|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfor.jfor.converter.AbstractBuilder
public abstract class AbstractBuilder
Base class for Builders
Field Summary | |
---|---|
protected BuilderContext |
m_context
|
Constructor Summary | |
---|---|
AbstractBuilder(BuilderContext ctx)
|
Method Summary | |
---|---|
(package private) static boolean |
attributeIsSet(org.xml.sax.Attributes attrs,
java.lang.String name)
true if the given attribute has a value (attribute is present) in the given Attributes |
(package private) static boolean |
attributeIsSet(org.xml.sax.Attributes attrs,
java.lang.String name,
org.xml.sax.Attributes defattrs)
true if the given attribute has a value (attribute is present) in the given Attributes or the default attributes |
void |
characters(java.lang.String str)
called by the parser for Text nodes |
(package private) static java.lang.String |
getAttribute(org.xml.sax.Attributes attrs,
java.lang.String tagName,
java.lang.String attrName,
boolean required)
return the value of given attribute |
(package private) static java.lang.String |
getAttribute(org.xml.sax.Attributes attrs,
java.lang.String tagName,
java.lang.String attrName,
boolean required,
org.xml.sax.Attributes defattrs)
return the value of given attribute from the Attributes or the default Attributes |
(package private) static java.lang.String |
getValue(org.xml.sax.Attributes attrs,
java.lang.String name)
return the value of the attribute with the specified name from the given Attributes |
(package private) static java.lang.String |
getValue(org.xml.sax.Attributes attrs,
java.lang.String name,
org.xml.sax.Attributes defattrs)
return the value of the attribute with the specified name from the given Attributes or the default attributes |
(package private) static boolean |
hasAttributeValue(org.xml.sax.Attributes attrs,
java.lang.String name,
java.lang.String desiredValue)
true if the given attribute value is contained in the given Attributes |
(package private) static boolean |
hasAttributeValue(org.xml.sax.Attributes attrs,
java.lang.String name,
java.lang.String desiredValue,
org.xml.sax.Attributes defattrs)
true if the given attribute value is contained in the given Attributes or the default attributes |
boolean |
ignoreChildren()
if true, xsl:fo elements that are children of an element using this builder must be ignored |
void |
postEnd()
called by Converter after calling end() |
void |
preStart(java.lang.String rawName,
org.xml.sax.Attributes atts)
called by Converter before calling start() |
boolean |
useForChildren(java.lang.String rawName,
org.xml.sax.Attributes attrs)
if true, builder is used for its child elements as well |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jfor.jfor.converter.IBuilder |
---|
end, getBuilder, start |
Field Detail |
---|
protected final BuilderContext m_context
Constructor Detail |
---|
AbstractBuilder(BuilderContext ctx)
Method Detail |
---|
public void characters(java.lang.String str) throws java.io.IOException
characters
in interface IBuilder
java.io.IOException
static boolean hasAttributeValue(org.xml.sax.Attributes attrs, java.lang.String name, java.lang.String desiredValue, org.xml.sax.Attributes defattrs)
static boolean hasAttributeValue(org.xml.sax.Attributes attrs, java.lang.String name, java.lang.String desiredValue)
static boolean attributeIsSet(org.xml.sax.Attributes attrs, java.lang.String name)
static boolean attributeIsSet(org.xml.sax.Attributes attrs, java.lang.String name, org.xml.sax.Attributes defattrs)
static java.lang.String getValue(org.xml.sax.Attributes attrs, java.lang.String name)
static java.lang.String getValue(org.xml.sax.Attributes attrs, java.lang.String name, org.xml.sax.Attributes defattrs)
static java.lang.String getAttribute(org.xml.sax.Attributes attrs, java.lang.String tagName, java.lang.String attrName, boolean required, org.xml.sax.Attributes defattrs) throws ConverterException
required
- if true and no value, throws ConverterException
ConverterException
static java.lang.String getAttribute(org.xml.sax.Attributes attrs, java.lang.String tagName, java.lang.String attrName, boolean required) throws ConverterException
required
- if true and no value, throws ConverterException
ConverterException
public boolean ignoreChildren()
ignoreChildren
in interface IBuilder
public boolean useForChildren(java.lang.String rawName, org.xml.sax.Attributes attrs)
useForChildren
in interface IBuilder
public void preStart(java.lang.String rawName, org.xml.sax.Attributes atts) throws java.io.IOException
preStart
in interface IBuilder
java.io.IOException
public void postEnd() throws java.io.IOException
postEnd
in interface IBuilder
java.io.IOException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |