org.apache.batik.dom

Class StyleSheetProcessingInstruction

public class StyleSheetProcessingInstruction extends AbstractProcessingInstruction implements LinkStyle

This class provides an implementation of the 'xml-stylesheet' processing instructions.
Field Summary
protected StyleSheetFactoryfactory
The stylesheet factory.
protected HashTablepseudoAttributes
The pseudo attributes.
protected booleanreadonly
Is this node immutable?
protected StyleSheetsheet
The style sheet.
Constructor Summary
protected StyleSheetProcessingInstruction()
Creates a new ProcessingInstruction object.
StyleSheetProcessingInstruction(String data, AbstractDocument owner, StyleSheetFactory f)
Creates a new ProcessingInstruction object.
Method Summary
HashTablegetPseudoAttributes()
Returns the pseudo attributes in a table.
StyleSheetgetSheet()
The style sheet.
StringgetTarget()
DOM: Implements org.w3c.dom.ProcessingInstruction#getTarget().
booleanisReadonly()
Tests whether this node is readonly.
protected NodenewNode()
Returns a new uninitialized instance of this object's class.
voidsetData(String data)
DOM: Implements org.w3c.dom.ProcessingInstruction#setData(String).
voidsetNodeName(String v)
Sets the node name.
voidsetReadonly(boolean v)
Sets this node readonly attribute.

Field Detail

factory

protected StyleSheetFactory factory
The stylesheet factory.

pseudoAttributes

protected transient HashTable pseudoAttributes
The pseudo attributes.

readonly

protected boolean readonly
Is this node immutable?

sheet

protected transient StyleSheet sheet
The style sheet.

Constructor Detail

StyleSheetProcessingInstruction

protected StyleSheetProcessingInstruction()
Creates a new ProcessingInstruction object.

StyleSheetProcessingInstruction

public StyleSheetProcessingInstruction(String data, AbstractDocument owner, StyleSheetFactory f)
Creates a new ProcessingInstruction object.

Method Detail

getPseudoAttributes

public HashTable getPseudoAttributes()
Returns the pseudo attributes in a table.

getSheet

public StyleSheet getSheet()
The style sheet.

getTarget

public String getTarget()
DOM: Implements org.w3c.dom.ProcessingInstruction#getTarget().

Returns: "xml-stylesheet".

isReadonly

public boolean isReadonly()
Tests whether this node is readonly.

newNode

protected Node newNode()
Returns a new uninitialized instance of this object's class.

setData

public void setData(String data)
DOM: Implements org.w3c.dom.ProcessingInstruction#setData(String).

setNodeName

public void setNodeName(String v)
Sets the node name.

setReadonly

public void setReadonly(boolean v)
Sets this node readonly attribute.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.