|
||||||||||
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.xml.NamespaceXML
public class NamespaceXML
This class manages the namespace that is used for elements with the "xml:" prefix.
Constructor Summary | |
---|---|
NamespaceXML()
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 NamespaceXML()
Method Detail |
---|
public String getNamespaceURI()
Namespace
getNamespaceURI
in class Namespace
public 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 Namespace
localName
- 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)
Namespace
parseAttributes
in class Namespace
propertyList
- 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.public Property parseAttributeForNS(Attributes attributes, String attributeName, String attributeValue, FObj fobj, Locator locator) throws PropertyException
Namespace
parseAttributeForNS
in class Namespace
attributes
- 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 Namespace
attlist
- 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 |