|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfor.jfor.converter.AbstractBuilder
Base class for Builders
Field Summary | |
protected BuilderContext |
m_context
|
Constructor Summary | |
(package private) |
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 |
void |
end()
called by Converter at the end of an element |
(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 |
IBuilder |
getBuilder(BuilderContext ctx,
java.lang.String rawName,
org.xml.sax.Attributes atts)
factory method: return the appropriate builder for given element if we have one |
(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() |
void |
start(java.lang.String rawName,
org.xml.sax.Attributes atts)
called by Converter at the start of an element |
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 |
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
public void start(java.lang.String rawName, org.xml.sax.Attributes atts) throws java.io.IOException
java.io.IOException
public void end() throws java.io.IOException
java.io.IOException
public IBuilder getBuilder(BuilderContext ctx, java.lang.String rawName, org.xml.sax.Attributes atts)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |