|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.share.xml.BaseNodeParser | +--oracle.cabo.image.xml.parse.BaseImageProviderRequestParser
Base class for NodeParsers which parse ImageProviderRequests.
This class parses the following attributes:
It also parses the following elements
Constructor Summary | |
protected |
BaseImageProviderRequestParser(int capacity)
Creates a NodeParser with enough storage to hold the number of ImageProviderRequest properties specified by capacity. |
Method Summary | |
void |
addCompletedChild(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName,
java.lang.Object child)
Implementation of NodeParser.addCompletedChild(). |
java.lang.Object |
endElement(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName)
Implementation of NodeParser.endElement() |
protected java.lang.Object |
getColorKey(java.lang.String namespaceURI,
java.lang.String localName)
Returns the key to use for storing the color associated with the specified element in the ImageProviderRequest. |
protected java.lang.Integer |
getDirection(ParseContext context,
org.xml.sax.Attributes attrs)
Gets the Integer value of the "direction" attribute. |
protected java.lang.String |
getEncodingType(ParseContext context,
org.xml.sax.Attributes attrs)
Gets the image encoding type. |
protected java.lang.Object |
getFontKey(java.lang.String namespaceURI,
java.lang.String localName)
Returns the key to use for storing the font associated with the specified element in the ImageProviderRequest. |
protected java.lang.Integer |
getHeight(ParseContext context,
org.xml.sax.Attributes attrs)
Gets the Integer value of the "height" attribute. |
protected java.lang.Integer |
getWidth(ParseContext context,
org.xml.sax.Attributes attrs)
Gets the Integer value of the "width" attribute. |
protected boolean |
isColorElement(java.lang.String namespaceURI,
java.lang.String localName)
Tests whether the specified element is a color. |
protected java.lang.Boolean |
isDisabled(ParseContext context,
org.xml.sax.Attributes attrs)
Gets the Boolean value of the "disabled" attribute. |
protected boolean |
isFontElement(java.lang.String namespaceURI,
java.lang.String localName)
Tests whether the specified element is a font. |
protected java.lang.Boolean |
isTextAntaliased(ParseContext context,
org.xml.sax.Attributes attrs)
Gets the boolean value of the "textAntialias" attribute. |
protected void |
setProperty(java.lang.Object key,
java.lang.Object value)
Sets a property to be included in the ImageProviderRequest |
NodeParser |
startChildElement(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName,
org.xml.sax.Attributes attrs)
Implementation of NodeParser.startChildElement() |
void |
startElement(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName,
org.xml.sax.Attributes attrs)
Implementation of NodeParser.startElement |
Methods inherited from class oracle.cabo.share.xml.BaseNodeParser |
addText, addWhitespace, endChildElement, getIgnoreParser, getRequiredAttribute, logError, logUnexpectedAttribute, logUnexpectedElement, logWarning, logWarning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected BaseImageProviderRequestParser(int capacity)
Method Detail |
public void startElement(ParseContext context, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXParseException
startElement
in class BaseNodeParser
oracle.cabo.share.xml.NodeParser
context
- the parsing contextnamespaceURI
- the namespace of the elementlocalName
- the local name of the elementattrs
- the attributes attached to the elementpublic java.lang.Object endElement(ParseContext context, java.lang.String namespaceURI, java.lang.String localName)
endElement
in class BaseNodeParser
oracle.cabo.share.xml.NodeParser
context
- the parsing contextnamespaceURI
- the namespace of the elementlocalName
- the local name of the elementpublic NodeParser startChildElement(ParseContext context, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)
startChildElement
in class BaseNodeParser
oracle.cabo.share.xml.NodeParser
context
- the parsing contextnamespaceURI
- the namespace of the child elementlocalName
- the local name of the child elementattrs
- the attributes attached to the elementNodeParser
NodeParser.endChildElement(oracle.cabo.share.xml.ParseContext, java.lang.String, java.lang.String)
,
NodeParser.addCompletedChild(oracle.cabo.share.xml.ParseContext, java.lang.String, java.lang.String, java.lang.Object)
public void addCompletedChild(ParseContext context, java.lang.String namespaceURI, java.lang.String localName, java.lang.Object child)
addCompletedChild
in class BaseNodeParser
oracle.cabo.share.xml.NodeParser
context
- the parsing contextnamespaceURI
- the namespace of the child elementlocalName
- the local name of the child elementchild
- the Java object produced for that child by
its NodeParser's endElement()
method.NodeParser.endElement(oracle.cabo.share.xml.ParseContext, java.lang.String, java.lang.String)
protected void setProperty(java.lang.Object key, java.lang.Object value)
protected boolean isColorElement(java.lang.String namespaceURI, java.lang.String localName)
protected boolean isFontElement(java.lang.String namespaceURI, java.lang.String localName)
protected java.lang.Object getColorKey(java.lang.String namespaceURI, java.lang.String localName)
protected java.lang.Object getFontKey(java.lang.String namespaceURI, java.lang.String localName)
protected java.lang.Boolean isTextAntaliased(ParseContext context, org.xml.sax.Attributes attrs)
Returns null if the textAntialias attribute is not specified. Otherwise, returns a Boolean indicating the value of the textAntialias attribute.
protected java.lang.Boolean isDisabled(ParseContext context, org.xml.sax.Attributes attrs)
Returns null if the disabled attribute is not specified. Otherwise, returns a Boolean indicating the value of the disabled attribute.
protected java.lang.Integer getWidth(ParseContext context, org.xml.sax.Attributes attrs)
Returns null if the width attribute is not specified. Otherwise, returns an Integer indicating the value of the width attribute.
protected java.lang.Integer getHeight(ParseContext context, org.xml.sax.Attributes attrs)
Returns null if the height attribute is not specified. Otherwise, returns an Integer indicating the value of the height attribute.
protected java.lang.Integer getDirection(ParseContext context, org.xml.sax.Attributes attrs)
Returns LocaleUtils.DIRECTION_RIGHTTOLEFT for "rtl" directions, LocaleUtils.DIRECTION_LEFTTORIGHT for "ltr" directions, or LocaleUtils.DIRECTION_DEFAULT if the direction is not specified.
protected java.lang.String getEncodingType(ParseContext context, org.xml.sax.Attributes attrs)
Returns one of the ImageEncoderManager.*_TYPE constants.
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |