You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mm...@locus.apache.org on 2000/08/11 21:32:12 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/stree CDATASectionImpl.java CommentImpl.java DocumentFragmentImpl.java DocumentImpl.java DocumentTypeImpl.java NotationImpl.java ProcessingInstructionImpl.java TextImpl.java WhiteSpace.java
mmidy 00/08/11 12:32:12
Modified: java/src/org/apache/xalan/stree CDATASectionImpl.java
CommentImpl.java DocumentFragmentImpl.java
DocumentImpl.java DocumentTypeImpl.java
NotationImpl.java ProcessingInstructionImpl.java
TextImpl.java WhiteSpace.java
Log:
Implement method getLocalName()
Revision Changes Path
1.2 +12 -0 xml-xalan/java/src/org/apache/xalan/stree/CDATASectionImpl.java
Index: CDATASectionImpl.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/stree/CDATASectionImpl.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- CDATASectionImpl.java 2000/06/19 16:52:29 1.1
+++ CDATASectionImpl.java 2000/08/11 19:32:06 1.2
@@ -26,4 +26,16 @@
{
return "#cdata-section";
}
+
+ /**
+ * Returns the local part of the qualified name of this node.
+ * <br>For nodes created with a DOM Level 1 method, such as
+ * <code>createElement</code> from the <code>Document</code> interface,
+ * it is <code>null</code>.
+ * @since DOM Level 2
+ */
+ public String getLocalName()
+ {
+ return "#cdata-section";
+ }
}
1.2 +12 -0 xml-xalan/java/src/org/apache/xalan/stree/CommentImpl.java
Index: CommentImpl.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/stree/CommentImpl.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- CommentImpl.java 2000/06/19 16:52:30 1.1
+++ CommentImpl.java 2000/08/11 19:32:07 1.2
@@ -29,4 +29,16 @@
{
return "#comment";
}
+
+ /**
+ * Returns the local part of the qualified name of this node.
+ * <br>For nodes created with a DOM Level 1 method, such as
+ * <code>createElement</code> from the <code>Document</code> interface,
+ * it is <code>null</code>.
+ * @since DOM Level 2
+ */
+ public String getLocalName()
+ {
+ return "#comment";
+ }
}
1.2 +12 -0 xml-xalan/java/src/org/apache/xalan/stree/DocumentFragmentImpl.java
Index: DocumentFragmentImpl.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/stree/DocumentFragmentImpl.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- DocumentFragmentImpl.java 2000/06/19 16:52:30 1.1
+++ DocumentFragmentImpl.java 2000/08/11 19:32:07 1.2
@@ -19,4 +19,16 @@
{
return "#document-fragment";
}
+
+ /**
+ * Returns the local part of the qualified name of this node.
+ * <br>For nodes created with a DOM Level 1 method, such as
+ * <code>createElement</code> from the <code>Document</code> interface,
+ * it is <code>null</code>.
+ * @since DOM Level 2
+ */
+ public String getLocalName()
+ {
+ return "#document-fragment";
+ }
}
1.3 +12 -0 xml-xalan/java/src/org/apache/xalan/stree/DocumentImpl.java
Index: DocumentImpl.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/stree/DocumentImpl.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DocumentImpl.java 2000/08/04 22:26:25 1.2
+++ DocumentImpl.java 2000/08/11 19:32:07 1.3
@@ -153,6 +153,18 @@
return "#document";
}
+ /**
+ * Returns the local part of the qualified name of this node.
+ * <br>For nodes created with a DOM Level 1 method, such as
+ * <code>createElement</code> from the <code>Document</code> interface,
+ * it is <code>null</code>.
+ * @since DOM Level 2
+ */
+ public String getLocalName()
+ {
+ return "#document";
+ }
+
/** Unimplemented. */
public Element createElement(String tagName)
throws DOMException
1.2 +12 -0 xml-xalan/java/src/org/apache/xalan/stree/DocumentTypeImpl.java
Index: DocumentTypeImpl.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/stree/DocumentTypeImpl.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- DocumentTypeImpl.java 2000/06/19 16:52:35 1.1
+++ DocumentTypeImpl.java 2000/08/11 19:32:08 1.2
@@ -37,6 +37,18 @@
*/
public String getName()
{
return m_name;
}
+
+ /**
+ * Returns the local part of the qualified name of this node.
+ * <br>For nodes created with a DOM Level 1 method, such as
+ * <code>createElement</code> from the <code>Document</code> interface,
+ * it is <code>null</code>.
+ * @since DOM Level 2
+ */
+ public String getLocalName()
+ {
+ return m_name;
+ }
/**
1.2 +12 -0 xml-xalan/java/src/org/apache/xalan/stree/NotationImpl.java
Index: NotationImpl.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/stree/NotationImpl.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- NotationImpl.java 2000/06/19 16:52:37 1.1
+++ NotationImpl.java 2000/08/11 19:32:08 1.2
@@ -45,5 +45,17 @@
{
return m_name;
}
+
+ /**
+ * Returns the local part of the qualified name of this node.
+ * <br>For nodes created with a DOM Level 1 method, such as
+ * <code>createElement</code> from the <code>Document</code> interface,
+ * it is <code>null</code>.
+ * @since DOM Level 2
+ */
+ public String getLocalName()
+ {
+ return m_name;
+ }
}
1.2 +12 -0 xml-xalan/java/src/org/apache/xalan/stree/ProcessingInstructionImpl.java
Index: ProcessingInstructionImpl.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/stree/ProcessingInstructionImpl.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ProcessingInstructionImpl.java 2000/06/19 16:52:37 1.1
+++ ProcessingInstructionImpl.java 2000/08/11 19:32:08 1.2
@@ -18,6 +18,18 @@
m_data = data;
}
+ /**
+ * Returns the local part of the qualified name of this node.
+ * <br>For nodes created with a DOM Level 1 method, such as
+ * <code>createElement</code> from the <code>Document</code> interface,
+ * it is <code>null</code>.
+ * @since DOM Level 2
+ */
+ public String getLocalName()
+ {
+ return m_name;
+ }
+
/** Get the PI name. */
public String getNodeName()
{
1.2 +12 -0 xml-xalan/java/src/org/apache/xalan/stree/TextImpl.java
Index: TextImpl.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/stree/TextImpl.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TextImpl.java 2000/06/19 16:52:37 1.1
+++ TextImpl.java 2000/08/11 19:32:08 1.2
@@ -33,6 +33,18 @@
}
/**
+ * Returns the local part of the qualified name of this node.
+ * <br>For nodes created with a DOM Level 1 method, such as
+ * <code>createElement</code> from the <code>Document</code> interface,
+ * it is <code>null</code>.
+ * @since DOM Level 2
+ */
+ public String getLocalName()
+ {
+ return "#text";
+ }
+
+ /**
* Retrieve character data currently stored in this node.
*
* @throws DOMExcpetion(DOMSTRING_SIZE_ERR) In some implementations,
1.2 +12 -0 xml-xalan/java/src/org/apache/xalan/stree/WhiteSpace.java
Index: WhiteSpace.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/stree/WhiteSpace.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- WhiteSpace.java 2000/06/19 16:52:37 1.1
+++ WhiteSpace.java 2000/08/11 19:32:09 1.2
@@ -33,6 +33,18 @@
}
/**
+ * Returns the local part of the qualified name of this node.
+ * <br>For nodes created with a DOM Level 1 method, such as
+ * <code>createElement</code> from the <code>Document</code> interface,
+ * it is <code>null</code>.
+ * @since DOM Level 2
+ */
+ public String getLocalName()
+ {
+ return "#text";
+ }
+
+ /**
* Retrieve character data currently stored in this node.
*
* @throws DOMExcpetion(DOMSTRING_SIZE_ERR) In some implementations,