/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/** Implementation of StartElementEvent.
*
* @author Neeraj Bajaj Sun Microsystems,Inc.
* @author K.Venugopal Sun Microsystems,Inc.
*/
implements StartElement {
}
init();
}
this(startelement.getName());
}
protected void init() {
fAttributes = new HashMap();
fNamespaces = new ArrayList();
}
return fQName;
}
}
if(fAttributes != null){
}
return new ReadOnlyIterator();
}
if(fNamespaces != null){
}
return new ReadOnlyIterator();
}
return null;
}
return fQName.getNamespaceURI();
}
//check that URI was supplied when creating this startElement event and prefix matches
//else check the namespace context
if(fNamespaceContext != null)
return null;
}
/**
* <p>Return a <code>String</code> representation of this
* <code>StartElement</code> formatted as XML.</p>
*
* @return <code>String</code> representation of this
* <code>StartElement</code> formatted as XML.
*/
// open element
// add any attributes
if (fAttributes != null) {
}
}
// add any namespaces
if (fNamespaces != null) {
}
}
// close start tag
// return StartElement as a String
return startElement.toString();
}
/** Return this event as String
* @return String Event returned as string.
*/
return fQName.getLocalPart();
else
}
/** Gets a read-only namespace context. If no context is
* available this method will return an empty namespace context.
* The NamespaceContext contains information about all namespaces
* in scope for this StartElement.
*
* @return the current namespace context
*/
return fNamespaceContext;
}
}
{
}
if(attr.isNamespace()){
}else{
}
}
return;
}
}
return;
}
return;
}
}
}