/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2013 Oracle and/or its affiliates. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution License("CDDL") (collectively, the "License"). You
* may not use this file except in compliance with the License. You can
* obtain a copy of the License at
* https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
* or packager/legal/LICENSE.txt. See the License for the specific
* language governing permissions and limitations under the License.
*
* When distributing the software, include this License Header Notice in each
* file and include the License file at packager/legal/LICENSE.txt.
*
* GPL Classpath Exception:
* Oracle designates this particular file as subject to the "Classpath"
* exception as provided by Oracle in the GPL Version 2 section of the License
* file that accompanied this code.
*
* Modifications:
* If applicable, add the following below the License Header, with the fields
* enclosed by brackets [] replaced by your own identifying information:
* "Portions Copyright [year] [name of copyright owner]"
*
* Contributor(s):
* If you wish your version of this file to be governed by only the CDDL or
* only the GPL Version 2, indicate your decision by adding "[Contributor]
* elects to include this software in this distribution under the [CDDL or GPL
* Version 2] license." If you don't indicate a single choice of license, a
* recipient has the option to distribute your version of this file under
* either the CDDL, the GPL Version 2 or to extend the choice of license to
* its licensees as provided above. However, if you add GPL Version 2 code
* and therefore, elected the GPL Version 2 license, then the option applies
* only if the new code is made subject to such option by the copyright
* holder.
*/
package jaxb1.impl;
public class CatalogImpl
extends jaxb1.impl.CatalogTypeImpl
implements jaxb1.Catalog, com.sun.xml.bind.RIElement, com.sun.xml.bind.JAXBObject, jaxb1.impl.runtime.UnmarshallableObject, jaxb1.impl.runtime.XMLSerializable, jaxb1.impl.runtime.ValidatableObject
{
public final static java.lang.Class version = (jaxb1.impl.JAXBVersion.class);
private static com.sun.msv.grammar.Grammar schemaFragment;
private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
return (jaxb1.Catalog.class);
}
public java.lang.String ____jaxb_ri____getNamespaceURI() {
return "";
}
public java.lang.String ____jaxb_ri____getLocalName() {
return "catalog";
}
public jaxb1.impl.runtime.UnmarshallingEventHandler createUnmarshaller(jaxb1.impl.runtime.UnmarshallingContext context) {
return new jaxb1.impl.CatalogImpl.Unmarshaller(context);
}
public void serializeBody(jaxb1.impl.runtime.XMLSerializer context)
throws org.xml.sax.SAXException
{
context.startElement("", "catalog");
super.serializeURIs(context);
context.endNamespaceDecls();
super.serializeAttributes(context);
context.endAttributes();
super.serializeBody(context);
context.endElement();
}
public void serializeAttributes(jaxb1.impl.runtime.XMLSerializer context)
throws org.xml.sax.SAXException
{
}
public void serializeURIs(jaxb1.impl.runtime.XMLSerializer context)
throws org.xml.sax.SAXException
{
}
public java.lang.Class getPrimaryInterface() {
return (jaxb1.Catalog.class);
}
public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
if (schemaFragment == null) {
schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer.deserialize((
"\u00ac\u00ed\u0000\u0005sr\u0000\'com.sun.msv.grammar.trex.ElementPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000"
+"\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameClass;xr\u0000\u001ecom.sun.msv."
+"grammar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttributesL\u0000"
+"\fcontentModelt\u0000 Lcom/sun/msv/grammar/Expression;xr\u0000\u001ecom.sun."
+"msv.grammar.Expression\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Lj"
+"ava/lang/Boolean;L\u0000\u000bexpandedExpq\u0000~\u0000\u0003xppp\u0000sr\u0000\u001fcom.sun.msv.gra"
+"mmar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.grammar.BinaryExp"
+"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1q\u0000~\u0000\u0003L\u0000\u0004exp2q\u0000~\u0000\u0003xq\u0000~\u0000\u0004ppsr\u0000\u001dcom.sun.msv.g"
+"rammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\bppsr\u0000 com.sun.msv.grammar.A"
+"ttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0003L\u0000\tnameClassq\u0000~\u0000\u0001xq\u0000~\u0000\u0004sr\u0000\u0011"
+"java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psr\u0000\u001bcom.sun.msv.gram"
+"mar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/Datatype"
+";L\u0000\u0006exceptq\u0000~\u0000\u0003L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000~\u0000\u0004"
+"ppsr\u0000#com.sun.msv.datatype.xsd.StringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\risAlw"
+"aysValidxr\u0000*com.sun.msv.datatype.xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000"
+"\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000"
+"\'com.sun.msv.datatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamesp"
+"aceUrit\u0000\u0012Ljava/lang/String;L\u0000\btypeNameq\u0000~\u0000\u0018L\u0000\nwhiteSpacet\u0000.L"
+"com/sun/msv/datatype/xsd/WhiteSpaceProcessor;xpt\u0000 http://www"
+".w3.org/2001/XMLSchemat\u0000\u0006stringsr\u00005com.sun.msv.datatype.xsd."
+"WhiteSpaceProcessor$Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.datat"
+"ype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xp\u0001sr\u00000com.sun.msv.gra"
+"mmar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004ppsr\u0000\u001bcom."
+"sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0018L\u0000\fnamesp"
+"aceURIq\u0000~\u0000\u0018xpq\u0000~\u0000\u001cq\u0000~\u0000\u001bsr\u0000#com.sun.msv.grammar.SimpleNameCla"
+"ss\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0018L\u0000\fnamespaceURIq\u0000~\u0000\u0018xr\u0000\u001dcom.su"
+"n.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\u0007sectiont\u0000\u0000sr\u00000com.sun"
+".msv.grammar.Expression$EpsilonExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004pp"
+"sq\u0000~\u0000\nppsq\u0000~\u0000\fq\u0000~\u0000\u000fpsq\u0000~\u0000\u0010ppsr\u0000\"com.sun.msv.datatype.xsd.Qna"
+"meType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0015q\u0000~\u0000\u001bt\u0000\u0005QNamesr\u00005com.sun.msv.datatype"
+".xsd.WhiteSpaceProcessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u001eq\u0000~\u0000!sq\u0000~\u0000"
+"\"q\u0000~\u00000q\u0000~\u0000\u001bsq\u0000~\u0000$t\u0000\u0004typet\u0000)http://www.w3.org/2001/XMLSchema-"
+"instanceq\u0000~\u0000*sq\u0000~\u0000$t\u0000\u0007catalogq\u0000~\u0000(sr\u0000\"com.sun.msv.grammar.Ex"
+"pressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/Ex"
+"pressionPool$ClosedHash;xpsr\u0000-com.sun.msv.grammar.Expression"
+"Pool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006parentt"
+"\u0000$Lcom/sun/msv/grammar/ExpressionPool;xp\u0000\u0000\u0000\u0003\u0001pq\u0000~\u0000\u000bq\u0000~\u0000+q\u0000~\u0000"
+"\tx"));
}
return new com.sun.msv.verifier.regexp.REDocumentDeclaration(schemaFragment);
}
public class Unmarshaller
extends jaxb1.impl.runtime.AbstractUnmarshallingEventHandlerImpl
{
public Unmarshaller(jaxb1.impl.runtime.UnmarshallingContext context) {
super(context, "----");
}
protected Unmarshaller(jaxb1.impl.runtime.UnmarshallingContext context, int startState) {
this(context);
state = startState;
}
public java.lang.Object owner() {
return jaxb1.impl.CatalogImpl.this;
}
public void enterElement(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname, org.xml.sax.Attributes __atts)
throws org.xml.sax.SAXException
{
int attIdx;
outer:
while (true) {
switch (state) {
case 1 :
attIdx = context.getAttribute("", "section");
if (attIdx >= 0) {
context.consumeAttribute(attIdx);
context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
return ;
}
spawnHandlerFromEnterElement((((jaxb1.impl.CatalogTypeImpl)jaxb1.impl.CatalogImpl.this).new Unmarshaller(context)), 2, ___uri, ___local, ___qname, __atts);
return ;
case 0 :
if (("catalog" == ___local)&&("" == ___uri)) {
context.pushAttributes(__atts, false);
state = 1;
return ;
}
break;
case 3 :
revertToParentFromEnterElement(___uri, ___local, ___qname, __atts);
return ;
}
super.enterElement(___uri, ___local, ___qname, __atts);
break;
}
}
public void leaveElement(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
throws org.xml.sax.SAXException
{
int attIdx;
outer:
while (true) {
switch (state) {
case 1 :
attIdx = context.getAttribute("", "section");
if (attIdx >= 0) {
context.consumeAttribute(attIdx);
context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
return ;
}
spawnHandlerFromLeaveElement((((jaxb1.impl.CatalogTypeImpl)jaxb1.impl.CatalogImpl.this).new Unmarshaller(context)), 2, ___uri, ___local, ___qname);
return ;
case 2 :
if (("catalog" == ___local)&&("" == ___uri)) {
context.popAttributes();
state = 3;
return ;
}
break;
case 3 :
revertToParentFromLeaveElement(___uri, ___local, ___qname);
return ;
}
super.leaveElement(___uri, ___local, ___qname);
break;
}
}
public void enterAttribute(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
throws org.xml.sax.SAXException
{
int attIdx;
outer:
while (true) {
switch (state) {
case 1 :
if (("section" == ___local)&&("" == ___uri)) {
spawnHandlerFromEnterAttribute((((jaxb1.impl.CatalogTypeImpl)jaxb1.impl.CatalogImpl.this).new Unmarshaller(context)), 2, ___uri, ___local, ___qname);
return ;
}
spawnHandlerFromEnterAttribute((((jaxb1.impl.CatalogTypeImpl)jaxb1.impl.CatalogImpl.this).new Unmarshaller(context)), 2, ___uri, ___local, ___qname);
return ;
case 3 :
revertToParentFromEnterAttribute(___uri, ___local, ___qname);
return ;
}
super.enterAttribute(___uri, ___local, ___qname);
break;
}
}
public void leaveAttribute(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
throws org.xml.sax.SAXException
{
int attIdx;
outer:
while (true) {
switch (state) {
case 1 :
attIdx = context.getAttribute("", "section");
if (attIdx >= 0) {
context.consumeAttribute(attIdx);
context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
return ;
}
spawnHandlerFromLeaveAttribute((((jaxb1.impl.CatalogTypeImpl)jaxb1.impl.CatalogImpl.this).new Unmarshaller(context)), 2, ___uri, ___local, ___qname);
return ;
case 3 :
revertToParentFromLeaveAttribute(___uri, ___local, ___qname);
return ;
}
super.leaveAttribute(___uri, ___local, ___qname);
break;
}
}
public void handleText(final java.lang.String value)
throws org.xml.sax.SAXException
{
int attIdx;
outer:
while (true) {
try {
switch (state) {
case 1 :
attIdx = context.getAttribute("", "section");
if (attIdx >= 0) {
context.consumeAttribute(attIdx);
context.getCurrentHandler().text(value);
return ;
}
spawnHandlerFromText((((jaxb1.impl.CatalogTypeImpl)jaxb1.impl.CatalogImpl.this).new Unmarshaller(context)), 2, value);
return ;
case 3 :
revertToParentFromText(value);
return ;
}
} catch (java.lang.RuntimeException e) {
handleUnexpectedTextException(value, e);
}
break;
}
}
}
}