/*
* reserved comment block
* DO NOT REMOVE OR ALTER!
*/
/*
* Copyright 2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Wraps {@link XMLAttributes} and makes it look like
* {@link AttributeList} and {@link Attributes}.
*
* @author Arnaud Le Hors, IBM
* @author Andy Clark, IBM
*
*/
public final class AttributesProxy
implements AttributeList, Attributes2 {
//
// Data
//
/** XML attributes. */
//
// Constructors
//
}
//
// Public methods
//
/** Sets the XML attributes to be wrapped. */
} // setAttributes(XMLAttributes)
return fAttributes;
}
/*
* Attributes methods
*/
public int getLength() {
return fAttributes.getLength();
}
}
// This hides the fact that internally we use null instead of empty string
// SAX requires the URI to be a string or an empty string
}
}
return fAttributes.getType(i);
}
}
}
return fAttributes.getValue(i);
}
}
}
}
}
/*
* Attributes2 methods
*/
throw new ArrayIndexOutOfBoundsException(index);
}
}
if (index == -1) {
throw new IllegalArgumentException(qName);
}
}
if (index == -1) {
throw new IllegalArgumentException(localName);
}
}
throw new ArrayIndexOutOfBoundsException(index);
}
}
if (index == -1) {
throw new IllegalArgumentException(qName);
}
}
if (index == -1) {
throw new IllegalArgumentException(localName);
}
}
/*
* AttributeList methods
*/
return fAttributes.getQName(i);
}
}