You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by el...@apache.org on 2003/01/23 20:25:04 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/impl/xs/util XSNamedMap4Types.java XSNamedMapImpl.java
elena 2003/01/23 11:25:04
Modified: java/src/org/apache/xerces/impl/xs/psvi XSNamedMap.java
java/src/org/apache/xerces/impl/xs/util
XSNamedMap4Types.java XSNamedMapImpl.java
Log:
change getMapLength to getLength to be consistent with the rest collection interfaces.
Also rename methods that were missed during the XS API change
Revision Changes Path
1.4 +1 -1 xml-xerces/java/src/org/apache/xerces/impl/xs/psvi/XSNamedMap.java
Index: XSNamedMap.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/psvi/XSNamedMap.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- XSNamedMap.java 23 Jan 2003 16:47:19 -0000 1.3
+++ XSNamedMap.java 23 Jan 2003 19:25:03 -0000 1.4
@@ -71,7 +71,7 @@
* The range of valid child object indices is 0 to
* <code>mapLength-1</code> inclusive.
*/
- public int getMapLength();
+ public int getLength();
/**
* Returns the <code>index</code>th item in the collection. The index
1.3 +5 -5 xml-xerces/java/src/org/apache/xerces/impl/xs/util/XSNamedMap4Types.java
Index: XSNamedMap4Types.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/util/XSNamedMap4Types.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- XSNamedMap4Types.java 21 May 2002 21:41:50 -0000 1.2
+++ XSNamedMap4Types.java 23 Jan 2003 19:25:04 -0000 1.3
@@ -103,7 +103,7 @@
* range of valid child node indices is 0 to <code>length-1</code>
* inclusive.
*/
- public synchronized int getMapLength() {
+ public synchronized int getLength() {
if (fLength == -1) {
// first get the number of components for all types
int length = 0;
@@ -140,7 +140,7 @@
* name and namespace URI, or <code>null</code> if they do not
* identify any <code>XSObject</code> in this map.
*/
- public XSObject getNSItem(String namespace, String localName) {
+ public XSObject itemByName(String namespace, String localName) {
if (namespace != null)
namespace = namespace.intern();
for (int i = 0; i < fNSNum; i++) {
@@ -165,9 +165,9 @@
* in the <code>XSNamedMap</code>, or <code>null</code> if that is
* not a valid index.
*/
- public synchronized XSObject getItem(int index) {
+ public synchronized XSObject item(int index) {
if (fArray == null) {
- getMapLength();
+ getLength();
}
if (index < 0 || index >= fLength)
return null;
1.4 +3 -3 xml-xerces/java/src/org/apache/xerces/impl/xs/util/XSNamedMapImpl.java
Index: XSNamedMapImpl.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/util/XSNamedMapImpl.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- XSNamedMapImpl.java 14 Jan 2003 20:21:48 -0000 1.3
+++ XSNamedMapImpl.java 23 Jan 2003 19:25:04 -0000 1.4
@@ -137,7 +137,7 @@
* range of valid child node indices is 0 to <code>length-1</code>
* inclusive.
*/
- public synchronized int getMapLength() {
+ public synchronized int getLength() {
if (fLength == -1) {
fLength = 0;
for (int i = 0; i < fNSNum; i++)
@@ -192,7 +192,7 @@
public synchronized XSObject item(int index) {
if (fArray == null) {
// calculate the total number of elements
- getMapLength();
+ getLength();
fArray = new XSObject[fLength];
int pos = 0;
// get components from all SymbolHash's
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org