001: /*
002: * @(#)DOMProcessingInstructionImpl.java 1.11 2000/08/16
003: *
004: */
005:
006: package org.w3c.tidy;
007:
008: import org.w3c.dom.DOMException;
009:
010: /**
011: *
012: * DOMProcessingInstructionImpl
013: *
014: * (c) 1998-2000 (W3C) MIT, INRIA, Keio University
015: * See Tidy.java for the copyright notice.
016: * Derived from <a href="http://www.w3.org/People/Raggett/tidy">
017: * HTML Tidy Release 4 Aug 2000</a>
018: *
019: * @author Dave Raggett <dsr@w3.org>
020: * @author Andy Quick <ac.quick@sympatico.ca> (translation to Java)
021: * @version 1.7, 1999/12/06 Tidy Release 30 Nov 1999
022: * @version 1.8, 2000/01/22 Tidy Release 13 Jan 2000
023: * @version 1.9, 2000/06/03 Tidy Release 30 Apr 2000
024: * @version 1.10, 2000/07/22 Tidy Release 8 Jul 2000
025: * @version 1.11, 2000/08/16 Tidy Release 4 Aug 2000
026: */
027:
028: public class DOMProcessingInstructionImpl extends DOMNodeImpl implements
029: org.w3c.dom.ProcessingInstruction {
030:
031: protected DOMProcessingInstructionImpl(Node adaptee) {
032: super (adaptee);
033: }
034:
035: /* --------------------- DOM ---------------------------- */
036:
037: /**
038: * @see org.w3c.dom.Node#getNodeType
039: */
040: public short getNodeType() {
041: return org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE;
042: }
043:
044: /**
045: * @see org.w3c.dom.ProcessingInstruction#getTarget
046: */
047: public String getTarget() {
048: // TODO
049: return null;
050: }
051:
052: /**
053: * @see org.w3c.dom.ProcessingInstruction#getData
054: */
055: public String getData() {
056: return getNodeValue();
057: }
058:
059: /**
060: * @see org.w3c.dom.ProcessingInstruction#setData
061: */
062: public void setData(String data) throws DOMException {
063: // NOT SUPPORTED
064: throw new DOMExceptionImpl(
065: DOMException.NO_MODIFICATION_ALLOWED_ERR,
066: "Not supported");
067: }
068:
069: public org.w3c.dom.Node adoptNode(org.w3c.dom.Node oNode) {
070: throw new UnsupportedOperationException(
071: "org.w3c.tidy.DOMProcessingInstructionImpl adoptNode() Not implemented");
072: }
073:
074: public short compareDocumentPosition(org.w3c.dom.Node oNode) {
075: throw new UnsupportedOperationException(
076: "org.w3c.tidy.DOMProcessingInstructionImpl compareDocumentPosition() Not implemented");
077: }
078:
079: public boolean isDefaultNamespace(String sStr1) {
080: throw new UnsupportedOperationException(
081: "org.w3c.tidy.DOMProcessingInstructionImpl isDefaultNamespace() Not implemented");
082: }
083:
084: public boolean isEqualNode(org.w3c.dom.Node oNode) {
085: throw new UnsupportedOperationException(
086: "org.w3c.tidy.DOMProcessingInstructionImpl isEqualNode() Not implemented");
087: }
088:
089: public boolean isSameNode(org.w3c.dom.Node oNode) {
090: throw new UnsupportedOperationException(
091: "org.w3c.tidy.DOMProcessingInstructionImpl isSameNode() Not implemented");
092: }
093:
094: public String lookupPrefix(String sStr1) {
095: throw new UnsupportedOperationException(
096: "org.w3c.tidy.DOMProcessingInstructionImpl lookupPreffix() Not implemented");
097: }
098:
099: public String lookupNamespaceURI(String sStr1) {
100: throw new UnsupportedOperationException(
101: "org.w3c.tidy.DOMProcessingInstructionImpl lookupNamespaceURI() Not implemented");
102: }
103:
104: public String getDocumentURI() {
105: throw new UnsupportedOperationException(
106: "org.w3c.tidy.DOMProcessingInstructionImpl getDocumentURI() Not implemented");
107: }
108:
109: public void setDocumentURI(String sStr1) {
110: throw new UnsupportedOperationException(
111: "org.w3c.tidy.DOMProcessingInstructionImpl setDocumentURI() Not implemented");
112: }
113:
114: public boolean getStrictErrorChecking() {
115: throw new UnsupportedOperationException(
116: "org.w3c.tidy.DOMProcessingInstructionImpl getStrictErrorChecking() Not implemented");
117: }
118:
119: public void setStrictErrorChecking(boolean bStrictCheck) {
120: throw new UnsupportedOperationException(
121: "org.w3c.tidy.DOMProcessingInstructionImpl setStrictErrorChecking() Not implemented");
122: }
123:
124: public boolean getXmlStandalone() {
125: throw new UnsupportedOperationException(
126: "org.w3c.tidy.DOMProcessingInstructionImpl getXmlStandalone() Not implemented");
127: }
128:
129: public void setXmlStandalone(boolean bXmlStandalone) {
130: throw new UnsupportedOperationException(
131: "org.w3c.tidy.DOMProcessingInstructionImpl setXmlStandalone() Not implemented");
132: }
133:
134: public Object getFeature(String sStr1, String sStr2) {
135: throw new UnsupportedOperationException(
136: "org.w3c.tidy.DOMProcessingInstructionImpl getFeature() Not implemented");
137: }
138:
139: public String getInputEncoding() {
140: throw new UnsupportedOperationException(
141: "org.w3c.tidy.DOMProcessingInstructionImpl getInputEncoding() Not implemented");
142: }
143:
144: public String getXmlEncoding() {
145: throw new UnsupportedOperationException(
146: "org.w3c.tidy.DOMProcessingInstructionImpl getXmlEncoding() Not implemented");
147: }
148:
149: public String getXmlVersion() {
150: throw new UnsupportedOperationException(
151: "org.w3c.tidy.DOMProcessingInstructionImpl getXmlVersion() Not implemented");
152: }
153:
154: public void setXmlVersion(String sStr1) {
155: throw new UnsupportedOperationException(
156: "org.w3c.tidy.DOMProcessingInstructionImpl setXmlVersion() Not implemented");
157: }
158:
159: public Object getUserData(String sStr1) {
160: throw new UnsupportedOperationException(
161: "org.w3c.tidy.DOMProcessingInstructionImpl getUserData() Not implemented");
162: }
163:
164: public Object setUserData(String sStr1, Object oObj2,
165: org.w3c.dom.UserDataHandler oHndlr) {
166: throw new UnsupportedOperationException(
167: "org.w3c.tidy.DOMProcessingInstructionImpl setUserData() Not implemented");
168: }
169:
170: public org.w3c.dom.DOMConfiguration getDomConfig() {
171: throw new UnsupportedOperationException(
172: "org.w3c.tidy.DOMProcessingInstructionImpl getDomConfig() Not implemented");
173: }
174:
175: public void normalizeDocument() {
176: throw new UnsupportedOperationException(
177: "org.w3c.tidy.DOMProcessingInstructionImpl normalizeDocument() Not implemented");
178: }
179:
180: public org.w3c.dom.Node renameNode(org.w3c.dom.Node oNode,
181: String sStr1, String sStr2) {
182: throw new UnsupportedOperationException(
183: "org.w3c.tidy.DOMProcessingInstructionImpl renameNode() Not implemented");
184: }
185:
186: public String getBaseURI() {
187: throw new UnsupportedOperationException(
188: "org.w3c.tidy.DOMProcessingInstructionImpl getBaseURI() Not implemented");
189: }
190:
191: public String getTextContent() {
192: throw new UnsupportedOperationException(
193: "org.w3c.tidy.DOMProcessingInstructionImpl getTextContent() Not implemented");
194: }
195:
196: public void setTextContent(String sStr1) {
197: throw new UnsupportedOperationException(
198: "org.w3c.tidy.DOMProcessingInstructionImpl setTextContent() Not implemented");
199: }
200: }
|