|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.foray.fotree.Namespace
org.foray.fotree.fo.NamespaceFO
public class NamespaceFO
This class manages the namespace that is used for XSL-FO elements.
| Constructor Summary | |
|---|---|
NamespaceFO()
Constructor. |
|
| Method Summary | |
|---|---|
protected PropertyList |
createNewPropertyList(Attributes attlist)
Return a newly-created appropriate PropertyList for this namespace. |
String |
getNamespaceURI()
Returns the URI for this namespace. |
String |
getTypicalPrefix()
Returns the typical prefix for this namespace, minus the ":". |
Property |
parseAttributeForNS(Attributes attributes,
String attributeName,
String attributeValue,
FObj fobj,
Locator locator)
Parses one attribute in this namespace. |
void |
parseAttributes(PropertyList propertyList,
Attributes attlist,
FObj currentFObj,
Locator locator,
FOTreeBuilder builder)
Parse the attributes for an element in this namespace. |
FObj |
parseElementForNS(String localName,
FObj currentFObj,
PropertyList list,
Locator locator)
The namespace-specific logic for paring an element. |
| Methods inherited from class org.foray.fotree.Namespace |
|---|
formatLocator, makeList, parseAttribute, parseElement, reset, sortAttributes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NamespaceFO()
| Method Detail |
|---|
public String getNamespaceURI()
Namespace
getNamespaceURI in class Namespacepublic String getTypicalPrefix()
Namespace
getTypicalPrefix in class Namespace
public FObj parseElementForNS(String localName,
FObj currentFObj,
PropertyList list,
Locator locator)
throws org.axsl.fo.FoTreeException
Namespace
parseElementForNS in class NamespacelocalName - The local name of the element.currentFObj - The current FObj, that is, the parent of the one
being parsed.list - The property list into which properties for the new FObj
should be placed.locator - The SAX locator.
org.axsl.fo.FoTreeException - For parsing errors.
public void parseAttributes(PropertyList propertyList,
Attributes attlist,
FObj currentFObj,
Locator locator,
FOTreeBuilder builder)
throws org.axsl.fo.FoTreeException
Namespace
parseAttributes in class NamespacepropertyList - The property list into which the parsed values should be
placed.attlist - The unparsed SAX attributes.currentFObj - The FObj instance to whom the attributes belong.locator - The SAX locator.builder - The FOTree builder.
org.axsl.fo.FoTreeException - For errors during attribute/property parsing.
public Property parseAttributeForNS(Attributes attributes,
String attributeName,
String attributeValue,
FObj fobj,
Locator locator)
throws PropertyException
Namespace
parseAttributeForNS in class Namespaceattributes - The unparsed SAX attributes.attributeName - The name of the attribute to be parsed.attributeValue - The value of the attribute to be parsed.fobj - The FObj to which the properties belongs.locator - The SAX locator.
PropertyException - For errors during parsing.protected PropertyList createNewPropertyList(Attributes attlist)
Namespace
createNewPropertyList in class Namespaceattlist - The attributes that will become the properties in the
list.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||