/*
* 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.
*/
/**
* Complete infoset about a start tag.
*
* <p>
* This is used between {@link StreamMessage} and {@link StreamSOAPCodec}
* to capture the infoset of the s:Envelope, s:Header, and s:Body elements.
*
*
* <h3>Design Note</h3>
* <p>
* Since StAX and SAX uses different null vs empty string convention, one has
* to choose which format we store things. It can go either way, but I'm assuming
* that we'll be using StAX more in JAX-WS, so things are kept in the StAX style
* in this class.
*
* @author Kohsuke Kawaguchi
*/
public final class TagInfoset {
/**
* Namespace declarations on this tag. Read-only.
*
* This is an array of the even length of the form { prefix0, uri0, prefix1, uri1, ... }.
*
*/
/**
* Attributes on this tag. Read-only.
*/
/**
* Prefix of the start tag in stax-style.
*/
/**
* Namespace URI of the start tag in stax-style.
*/
/**
* Local name of the start tag.
*/
/**
* Lazily computed QName (i.e., "foo:bar")
*/
public TagInfoset(String nsUri, String localName, String prefix, AttributesImpl atts, String... ns) {
}
/**
* Fills a {@link TagInfoset} object by the current element
* that the reader points to.
*/
if(nsc>0) {
for(int i=0; i<nsc; i++){
}
} else {
ns = EMPTY_ARRAY;
}
if(ac>0) {
atts = new AttributesImpl();
for(int i=0; i< ac;i++){
} else {
}
reader.getAttributeValue(i));
}
} else {
}
}
/**
* Writes the start element event.
*/
}
/**
* Writes the end element event.
*/
}
}
/**
* Writes the start element event.
*/
// write start tag.
else {
//fix Null prefix. otherwise throws XMLStreamException,
// if the namespace URI has not been bound to a prefix
}
} else {
}
}
} else {
}
}
}
} else {
}
return qname;
}
if(s==null) return "";
else return s;
}
}