|
XML for Java Compatibility API 2.0.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.xml.parser.Child | +--com.ibm.xml.parser.TXPI | +--com.ibm.xml.parser.StylesheetPI
The StyleSheetPI class provides specific support for the stylesheet processing instruction (PI).
A stylesheet PI is formatted as:
<?xml:stylesheet type="..." href="..."?>
or<?xml:alternate-stylesheet type="..." href="..."?>
Refer to Associating stylesheets with XML documents for details.
TXPI
, Serialized FormField Summary | |
static java.lang.String |
S_ALTSTYLESHEET
"alternate-stylesheet" . |
static java.lang.String |
S_STYLESHEET
"stylesheet" . |
static java.lang.String |
S_TEXTCSS
"text/css" . |
static java.lang.String |
S_XMLALTSTYLESHEET
"xml:alternate-stylesheet" . |
static java.lang.String |
S_XMLSTYLESHEET
"xml:stylesheet" . |
Fields inherited from class com.ibm.xml.parser.Child |
ATTDEF,
ATTLIST,
ELEMENT_DECL,
NAME_ATTDEF,
NAME_ATTLIST,
NAME_CDATA,
NAME_COMMENT,
NAME_DOCFRAGMENT,
NAME_DOCUMENT,
NAME_ELEMENT_DECL,
NAME_PSEUDONODE,
NAME_TEXT,
PSEUDONODE |
Constructor Summary | |
StylesheetPI(java.lang.String hrefURI)
Cascading Style Sheet (CSS) stylesheet PI constructor. |
|
StylesheetPI(java.lang.String type,
java.lang.String hrefURI,
java.lang.String title)
XML and XML-alternate stylesheet PI constructor. |
|
StylesheetPI(java.lang.String name,
java.lang.String type,
java.lang.String hrefURI,
java.lang.String title)
Generic constructor. |
|
StylesheetPI(java.lang.String name,
java.lang.String data,
java.lang.String type,
java.lang.String hrefURI,
java.lang.String title)
Generic constructor. |
Method Summary | |
java.lang.Object |
clone()
Clone this stylesheet PI Node using the appropriate factory. |
java.lang.String |
getHref()
Returns the stylesheet URI (the value of the href= attribute) which
defines where to retrieve the stylesheet. |
java.lang.String |
getTitle()
Returns the stylesheet title (the value of the title= attribute). |
java.lang.String |
getType()
Returns the stylesheet type (the value of the type= attribute) which
defines the stylesheet as xml:stylesheet , xml:alternate-stylesheet ,
or text/css . |
Methods inherited from class com.ibm.xml.parser.TXPI |
acceptPost,
acceptPre,
equals,
getData,
getName,
getNodeName,
getNodeType,
getNodeValue,
getTarget,
getText,
setData,
setNodeValue,
setTarget |
Methods inherited from class com.ibm.xml.parser.Child |
appendChild,
clearDigest,
cloneNode,
getAttributes,
getChildNodes,
getDigest,
getFactory,
getFirstChild,
getFirstWithoutReference,
getLastChild,
getLastWithoutReference,
getNextSibling,
getNextWithoutReference,
getOwnerDocument,
getParentNode,
getParentWithoutReference,
getPreviousSibling,
getPreviousWithoutReference,
getUserData,
hasChildNodes,
insertBefore,
makeXPointer,
print,
print,
removeChild,
replaceChild,
searchAncestors,
searchAncestors,
setFactory,
setUserData,
toXMLString,
toXMLString |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String S_XMLSTYLESHEET
"xml:stylesheet"
.public static final java.lang.String S_XMLALTSTYLESHEET
"xml:alternate-stylesheet"
.public static final java.lang.String S_STYLESHEET
"stylesheet"
.public static final java.lang.String S_ALTSTYLESHEET
"alternate-stylesheet"
.public static final java.lang.String S_TEXTCSS
"text/css"
.Constructor Detail |
public StylesheetPI(java.lang.String hrefURI)
hrefURI
- The value of the href=
attribute.public StylesheetPI(java.lang.String type, java.lang.String hrefURI, java.lang.String title)
type
- The value of the type=
attribute.hrefURI
- The value of the href=
attribute.title
- The value of the title=
attribute, or null.public StylesheetPI(java.lang.String name, java.lang.String type, java.lang.String hrefURI, java.lang.String title)
name
- The first token following the markup (e.g. "xml:stylesheet"
).type
- The value of the type=
attribute.hrefURI
- The value of the href=
attribute.title
- The value of the title=
attribute, or null.public StylesheetPI(java.lang.String name, java.lang.String data, java.lang.String type, java.lang.String hrefURI, java.lang.String title) throws LibraryException
name
- The first token following the markup (e.g. "xml:stylesheet"
).data
- From the character immediately after name to the character immediately preceding the ?>
.type
- The value of the type=
attribute.hrefURI
- The value of the href=
attribute.title
- The value of the title=
attribute, or null.Method Detail |
public java.lang.Object clone()
This method is defined by Child.
Child.clone()
public java.lang.String getType()
type=
attribute) which
defines the stylesheet as xml:stylesheet
, xml:alternate-stylesheet
,
or text/css
.type=
attribute.public java.lang.String getHref()
href=
attribute) which
defines where to retrieve the stylesheet.href=
attribute.public java.lang.String getTitle()
title=
attribute).title=
attribute, or null if no title.
|
XML for Java Compatibility API 2.0.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |