public abstract class AbstractBuilder extends java.lang.Object implements IBuilder
Modifier and Type | Field and Description |
---|---|
protected BuilderContext |
m_context |
Constructor and Description |
---|
AbstractBuilder(BuilderContext ctx) |
Modifier and Type | Method and Description |
---|---|
(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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
end, getBuilder, start
protected final BuilderContext m_context
AbstractBuilder(BuilderContext ctx)
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 ConverterExceptionConverterException
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 ConverterExceptionConverterException
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