//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vBeta 
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2004.05.26 at 03:38:22 CEST 
//


package phex.xml.impl;

public class XJBIPAccessRuleImpl
    extends phex.xml.impl.XJBSecurityRuleImpl
    implements phex.xml.XJBIPAccessRule, com.sun.xml.bind.unmarshaller.UnmarshallableObject, com.sun.xml.bind.serializer.XMLSerializable, com.sun.xml.bind.validator.ValidatableObject
{

    private final static Class PRIMARY_INTERFACE_CLASS = phex.xml.XJBIPAccessRule.class;
    protected byte[] _CompareIP;
    protected byte[] _Ip;
    protected boolean has_AddressType;
    protected byte _AddressType;
    private final static com.sun.msv.grammar.Grammar schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer.deserialize("\u00ac\u00ed\u0000\u0005sr\u0000\u001fcom.sun.msv.grammar.SequenceExp\u0091Ue\u00f1\u0017p\u00f3\u00ad\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.grammar.BinaryExp\u009f\u008d\u000fi<\u00c1_\u00b7\u0002\u0000\u0002L\u0000\u0004exp1t\u0000 Lcom/sun/msv/grammar/Expression;L\u0000\u0004exp2q\u0000~\u0000\u0002xr\u0000\u001ecom.sun.msv.grammar.Expression\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0003I\u0000\u000ecachedHashCodeL\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava/lang/Boolean;L\u0000\u000bexpandedExpq\u0000~\u0000\u0002xp\t\u0084\u00c5\u0018ppsq\u0000~\u0000\u0000\b:o\bppsq\u0000~\u0000\u0000\u0006\u00f0\u0018\u00f8ppsq\u0000~\u0000\u0000\u0006\u00a5`\u0081ppsq\u0000~\u0000\u0000\u0005i\u0019\u00ccppsq\u0000~\u0000\u0000\u0004\u0095\u0016\u00c4ppsq\u0000~\u0000\u0000\u0004\u0005\u00d9rppsq\u0000~\u0000\u0000\u0002\u00c9\u0092\u00bdppsq\u0000~\u0000\u0000\u0001\u008dL\bppsr\u0000\u001dcom.sun.msv.grammar.ChoiceExp\u00c6|\u00ec3\u0087\u00b8\u00f9\u00f4\u0002\u0000\u0000xq\u0000~\u0000\u0001\u0000Q\u0005Sppsr\u0000\'com.sun.msv.grammar.trex.ElementPattern\u008b\u0010\u001fsu\u008b\u0091\u00c2\u0002\u0000\u0001L\u0000\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameClass;xr\u0000\u001ecom.sun.msv.grammar.ElementExp\u00d3\u00c6b\u0095\u0015\rC\u0092\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttributesL\u0000\fcontentModelq\u0000~\u0000\u0002xq\u0000~\u0000\u0003\u0000Q\u0005Hsr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000p\u0000sr\u0000\u001bcom.sun.msv.grammar.DataExp8\u00f5\u00f5>{j!\u00cb\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0002L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000~\u0000\u0003\u0000Q\u0005=ppsr\u0000#com.sun.msv.datatype.xsd.StringType\u00c0\t\u00a9y\u00f6\u0011\u009b\u00e6\u0002\u0000\u0000xr\u0000*com.sun.msv.datatype.xsd.BuiltinAtomicType\u0002\u00ff10\u00a8bR\u00ca\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd.ConcreteType7\u00adsa|\u00d7Z\u001d\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatype.xsd.XSDatatypeImpl4\u00e9\u0099H.\u00872z\u0002\u0000\u0003L\u0000\fnamespaceUrit\u0000\u0012Ljava/lang/String;L\u0000\btypeNameq\u0000~\u0000\u001eL\u0000\nwhiteSpacet\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpaceProcessor;xpt\u0000 http://www.w3.org/2001/XMLSchemat\u0000\u0006stringsr\u0000.com.sun.msv.datatype.xsd.WhiteSpaceProcessor$1\u0013JMoI\u00db\u00a4G\u0002\u0000\u0000xr\u0000,com.sun.msv.datatype.xsd.WhiteSpaceProcessorip\u00ff0C\u00ce\u000eN\u0002\u0000\u0000xpsr\u00000com.sun.msv.grammar.Expression$NullSetExpression s\u0080\u0089\u0096\u00cf\u009a@\u0002\u0000\u0000xq\u0000~\u0000\u0003\u0000\u0000\u0000\nq\u0000~\u0000\u0015psr\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u001eL\u0000\fnamespaceURIq\u0000~\u0000\u001expq\u0000~\u0000\"q\u0000~\u0000!sr\u0000#com.sun.msv.grammar.SimpleNameClass\u0091\u00e9\u00f7\u008d\u00ab\u0010\u00aa\u00f5\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u001eL\u0000\fnamespaceURIq\u0000~\u0000\u001exr\u0000\u001dcom.sun.msv.grammar.NameClass\u009c}\u00d4kB\u00c7\tk\u0002\u0000\u0000xpt\u0000\u000bdescriptiont\u0000\u0000sr\u00000com.sun.msv.grammar.Expression$EpsilonExpression\u0098v\u00e3\u0003Z\u00fex\u00ee\u0002\u0000\u0000xq\u0000~\u0000\u0003\u0000\u0000\u0000\tsq\u0000~\u0000\u0014\u0001psq\u0000~\u0000\u000e\u0001<F\u00b0ppsq\u0000~\u0000\u0010\u0001<F\u00a5q\u0000~\u0000\u0015p\u0000sq\u0000~\u0000\u0016\u0001<F\u009appsr\u0000$com.sun.msv.datatype.xsd.BooleanType\u008f\u0081\u0081\u0090\u00c8\u0002}\u0099\u0002\u0000\u0000xq\u0000~\u0000\u001bq\u0000~\u0000!t\u0000\u0007booleansr\u0000.com.sun.msv.datatype.xsd.WhiteSpaceProcessor$2\u0087z9\u00ee\u00f8,N\u0005\u0002\u0000\u0000xq\u0000~\u0000$q\u0000~\u0000\'sq\u0000~\u0000(q\u0000~\u00007q\u0000~\u0000!sq\u0000~\u0000*t\u0000\risDenyingRuleq\u0000~\u0000.q\u0000~\u00000sq\u0000~\u0000\u000e\u0001<F\u00b0ppsq\u0000~\u0000\u0010\u0001<F\u00a5q\u0000~\u0000\u0015p\u0000q\u0000~\u00004sq\u0000~\u0000*t\u0000\nisDisabledq\u0000~\u0000.q\u0000~\u00000sq\u0000~\u0000\u000e\u0001<F\u00b0ppsq\u0000~\u0000\u0010\u0001<F\u00a5q\u0000~\u0000\u0015p\u0000q\u0000~\u00004sq\u0000~\u0000*t\u0000\fisSystemRuleq\u0000~\u0000.q\u0000~\u00000sq\u0000~\u0000\u000e\u0000\u008f=Mppsq\u0000~\u0000\u0010\u0000\u008f=Bq\u0000~\u0000\u0015p\u0000sq\u0000~\u0000\u0016\u0000\u008f=7ppsr\u0000 com.sun.msv.datatype.xsd.IntType\u00bel\u00b6\u0018\u00b0\u0014\u00e4\u0014\u0002\u0000\u0000xr\u0000+com.sun.msv.datatype.xsd.IntegerDerivedType\u0099\u00f1]\u0090&6k\u00be\u0002\u0000\u0000xq\u0000~\u0000\u001bq\u0000~\u0000!t\u0000\u0003intq\u0000~\u00009q\u0000~\u0000\'sq\u0000~\u0000(q\u0000~\u0000Kq\u0000~\u0000!sq\u0000~\u0000*t\u0000\ftriggerCountq\u0000~\u0000.q\u0000~\u00000sq\u0000~\u0000\u000e\u0000\u00d4\u0003\u0003ppsq\u0000~\u0000\u0010\u0000\u00d4\u0002\u00f8q\u0000~\u0000\u0015p\u0000sq\u0000~\u0000\u0016\u0000\u00d4\u0002\u00edppsr\u0000!com.sun.msv.datatype.xsd.LongType\u00e8A\u00fc\u001d>J\u00a1\u00c1\u0002\u0000\u0000xq\u0000~\u0000Iq\u0000~\u0000!t\u0000\u0004longq\u0000~\u00009q\u0000~\u0000\'sq\u0000~\u0000(q\u0000~\u0000Tq\u0000~\u0000!sq\u0000~\u0000*t\u0000\nexpiryDateq\u0000~\u0000.q\u0000~\u00000sq\u0000~\u0000\u000e\u0001<F\u00b0ppsq\u0000~\u0000\u0010\u0001<F\u00a5q\u0000~\u0000\u0015p\u0000q\u0000~\u00004sq\u0000~\u0000*t\u0000\u0011isDeletedOnExpiryq\u0000~\u0000.q\u0000~\u00000sq\u0000~\u0000\u000e\u0000J\u00b8rppsq\u0000~\u0000\u0010\u0000J\u00b8gq\u0000~\u0000\u0015p\u0000sq\u0000~\u0000\u0016\u0000J\u00b8\\ppsr\u0000!com.sun.msv.datatype.xsd.ByteType\u00a8n4XR\u00cfH\u00d5\u0002\u0000\u0000xq\u0000~\u0000Iq\u0000~\u0000!t\u0000\u0004byteq\u0000~\u00009q\u0000~\u0000\'sq\u0000~\u0000(q\u0000~\u0000aq\u0000~\u0000!sq\u0000~\u0000*t\u0000\u000baddressTypeq\u0000~\u0000.q\u0000~\u00000sq\u0000~\u0000\u000e\u0001JV\u000bppsq\u0000~\u0000\u0010\u0001JV\u0000q\u0000~\u0000\u0015p\u0000sq\u0000~\u0000\u0016\u0001JU\u00f5ppsr\u0000&com.sun.msv.datatype.xsd.HexBinaryType\u00ab\u0090pPy\u0084\u0018l\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatype.xsd.BinaryBaseType\u00a7\u00ce\u000e\u0097^\u00afW\u0011\u0002\u0000\u0000xq\u0000~\u0000\u001bq\u0000~\u0000!t\u0000\thexBinaryq\u0000~\u00009q\u0000~\u0000\'sq\u0000~\u0000(q\u0000~\u0000kq\u0000~\u0000!sq\u0000~\u0000*t\u0000\u0002ipq\u0000~\u0000.q\u0000~\u00000sq\u0000~\u0000\u000e\u0001JV\u000bppsq\u0000~\u0000\u0010\u0001JV\u0000q\u0000~\u0000\u0015p\u0000q\u0000~\u0000gsq\u0000~\u0000*t\u0000\tcompareIPq\u0000~\u0000.q\u0000~\u00000sr\u0000\"com.sun.msv.grammar.ExpressionPool\u00e5\u00f3J;\u00cd]^\u00f8\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/ExpressionPool$ClosedHash;xpsr\u0000-com.sun.msv.grammar.ExpressionPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0002\u0000\u0004I\u0000\u0005countI\u0000\tthresholdL\u0000\u0006parentq\u0000~\u0000t[\u0000\u0005tablet\u0000![Lcom/sun/msv/grammar/Expression;xp\u0000\u0000\u0000\u0013\u0000\u0000\u00009pur\u0000![Lcom.sun.msv.grammar.Expression;\u00d68D\u00c3]\u00ad\u00a7\n\u0002\u0000\u0000xp\u0000\u0000\u0000\u00bfppppppppppppq\u0000~\u0000eq\u0000~\u0000oppppppppppq\u0000~\u0000\\pppppppppq\u0000~\u0000\bppppppppppppppppppppppppppppq\u0000~\u0000\u0007ppppq\u0000~\u0000\u000bq\u0000~\u0000\tpppq\u0000~\u0000Eppppppq\u0000~\u0000\u0006ppppppppppppppppq\u0000~\u0000\u0005ppppq\u0000~\u0000\fpppppq\u0000~\u0000Opppppppppppppppppppppppppppq\u0000~\u0000\rpppppppppq\u0000~\u0000\npppppq\u0000~\u00002q\u0000~\u0000=q\u0000~\u0000Aq\u0000~\u0000Xppppppppppppppq\u0000~\u0000\u000fpppppppppppppppppppp");

    public byte[] getCompareIP() {
        return _CompareIP;
    }

    public void setCompareIP(byte[] value) {
        _CompareIP = value;
    }

    public byte[] getIp() {
        return _Ip;
    }

    public void setIp(byte[] value) {
        _Ip = value;
    }

    public byte getAddressType() {
        return _AddressType;
    }

    public void setAddressType(byte value) {
        _AddressType = value;
        has_AddressType = true;
    }

    public com.sun.xml.bind.unmarshaller.ContentHandlerEx getUnmarshaller(com.sun.xml.bind.unmarshaller.UnmarshallingContext context) {
        return new phex.xml.impl.XJBIPAccessRuleImpl.Unmarshaller(context);
    }

    public Class getPrimaryInterfaceClass() {
        return PRIMARY_INTERFACE_CLASS;
    }

    public void serializeElements(com.sun.xml.bind.serializer.XMLSerializer context)
        throws org.xml.sax.SAXException
    {
        super.serializeElements(context);
        if (has_AddressType) {
            context.startElement("", "addressType");
            context.endAttributes();
            context.text(com.sun.msv.datatype.xsd.ByteType.save(((Byte) new java.lang.Byte(_AddressType))));
            context.endElement();
        }
        if (_Ip!= null) {
            context.startElement("", "ip");
            context.endAttributes();
            context.text(com.sun.msv.datatype.xsd.HexBinaryType.save(((byte[]) _Ip)));
            context.endElement();
        }
        if (_CompareIP!= null) {
            context.startElement("", "compareIP");
            context.endAttributes();
            context.text(com.sun.msv.datatype.xsd.HexBinaryType.save(((byte[]) _CompareIP)));
            context.endElement();
        }
    }

    public void serializeAttributes(com.sun.xml.bind.serializer.XMLSerializer context)
        throws org.xml.sax.SAXException
    {
        super.serializeAttributes(context);
    }

    public void serializeAttributeBodies(com.sun.xml.bind.serializer.XMLSerializer context)
        throws org.xml.sax.SAXException
    {
        super.serializeAttributeBodies(context);
    }

    public Class getPrimaryInterface() {
        return (phex.xml.XJBIPAccessRule.class);
    }

    public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
        return new com.sun.msv.verifier.regexp.REDocumentDeclaration(schemaFragment);
    }

    public class Unmarshaller
        extends com.sun.xml.bind.unmarshaller.ContentHandlerEx
    {


        public Unmarshaller(com.sun.xml.bind.unmarshaller.UnmarshallingContext context) {
            super(context, "--------");
        }

        protected com.sun.xml.bind.unmarshaller.UnmarshallableObject owner() {
            return phex.xml.impl.XJBIPAccessRuleImpl.this;
        }

        public void enterElement(String ___uri, String ___local, org.xml.sax.Attributes __atts)
            throws com.sun.xml.bind.unmarshaller.UnreportedException
        {
            switch (state) {
                case  0 :
                    if ("".equals(___uri)&&"isDeletedOnExpiry".equals(___local)) {
                        spawnSuperClassFromEnterElement((new phex.xml.impl.XJBSecurityRuleImpl.Unmarshaller(context)), 1, ___uri, ___local, __atts);
                        return ;
                    }
                    if ("".equals(___uri)&&"isDisabled".equals(___local)) {
                        spawnSuperClassFromEnterElement((new phex.xml.impl.XJBSecurityRuleImpl.Unmarshaller(context)), 1, ___uri, ___local, __atts);
                        return ;
                    }
                    if ("".equals(___uri)&&"expiryDate".equals(___local)) {
                        spawnSuperClassFromEnterElement((new phex.xml.impl.XJBSecurityRuleImpl.Unmarshaller(context)), 1, ___uri, ___local, __atts);
                        return ;
                    }
                    if ("".equals(___uri)&&"description".equals(___local)) {
                        spawnSuperClassFromEnterElement((new phex.xml.impl.XJBSecurityRuleImpl.Unmarshaller(context)), 1, ___uri, ___local, __atts);
                        return ;
                    }
                    if ("".equals(___uri)&&"ip".equals(___local)) {
                        spawnSuperClassFromEnterElement((new phex.xml.impl.XJBSecurityRuleImpl.Unmarshaller(context)), 1, ___uri, ___local, __atts);
                        return ;
                    }
                    if ("".equals(___uri)&&"isDenyingRule".equals(___local)) {
                        spawnSuperClassFromEnterElement((new phex.xml.impl.XJBSecurityRuleImpl.Unmarshaller(context)), 1, ___uri, ___local, __atts);
                        return ;
                    }
                    if ("".equals(___uri)&&"triggerCount".equals(___local)) {
                        spawnSuperClassFromEnterElement((new phex.xml.impl.XJBSecurityRuleImpl.Unmarshaller(context)), 1, ___uri, ___local, __atts);
                        return ;
                    }
                    if ("".equals(___uri)&&"isSystemRule".equals(___local)) {
                        spawnSuperClassFromEnterElement((new phex.xml.impl.XJBSecurityRuleImpl.Unmarshaller(context)), 1, ___uri, ___local, __atts);
                        return ;
                    }
                    if ("".equals(___uri)&&"addressType".equals(___local)) {
                        spawnSuperClassFromEnterElement((new phex.xml.impl.XJBSecurityRuleImpl.Unmarshaller(context)), 1, ___uri, ___local, __atts);
                        return ;
                    }
                    if ("".equals(___uri)&&"compareIP".equals(___local)) {
                        spawnSuperClassFromEnterElement((new phex.xml.impl.XJBSecurityRuleImpl.Unmarshaller(context)), 1, ___uri, ___local, __atts);
                        return ;
                    }
                    spawnSuperClassFromEnterElement((new phex.xml.impl.XJBSecurityRuleImpl.Unmarshaller(context)), 1, ___uri, ___local, __atts);
                    return ;
                case  1 :
                    if ("".equals(___uri)&&"ip".equals(___local)) {
                        context.pushAttributes(__atts);
                        state = 2;
                        return ;
                    }
                    if ("".equals(___uri)&&"addressType".equals(___local)) {
                        context.pushAttributes(__atts);
                        state = 4;
                        return ;
                    }
                    if ("".equals(___uri)&&"compareIP".equals(___local)) {
                        context.pushAttributes(__atts);
                        state = 6;
                        return ;
                    }
                    revertToParentFromEnterElement(___uri, ___local, __atts);
                    return ;
            }
            super.enterElement(___uri, ___local, __atts);
        }

        public void leaveElement(String ___uri, String ___local)
            throws com.sun.xml.bind.unmarshaller.UnreportedException
        {
            switch (state) {
                case  0 :
                    spawnSuperClassFromLeaveElement((new phex.xml.impl.XJBSecurityRuleImpl.Unmarshaller(context)), 1, ___uri, ___local);
                    return ;
                case  1 :
                    revertToParentFromLeaveElement(___uri, ___local);
                    return ;
                case  7 :
                    if ("".equals(___uri)&&"compareIP".equals(___local)) {
                        context.popAttributes();
                        state = 1;
                        return ;
                    }
                    break;
                case  5 :
                    if ("".equals(___uri)&&"addressType".equals(___local)) {
                        context.popAttributes();
                        state = 1;
                        return ;
                    }
                    break;
                case  3 :
                    if ("".equals(___uri)&&"ip".equals(___local)) {
                        context.popAttributes();
                        state = 1;
                        return ;
                    }
                    break;
            }
            super.leaveElement(___uri, ___local);
        }

        public void enterAttribute(String ___uri, String ___local)
            throws com.sun.xml.bind.unmarshaller.UnreportedException
        {
            switch (state) {
                case  0 :
                    spawnSuperClassFromEnterAttribute((new phex.xml.impl.XJBSecurityRuleImpl.Unmarshaller(context)), 1, ___uri, ___local);
                    return ;
                case  1 :
                    revertToParentFromEnterAttribute(___uri, ___local);
                    return ;
            }
            super.enterAttribute(___uri, ___local);
        }

        public void leaveAttribute(String ___uri, String ___local)
            throws com.sun.xml.bind.unmarshaller.UnreportedException
        {
            switch (state) {
                case  0 :
                    spawnSuperClassFromLeaveAttribute((new phex.xml.impl.XJBSecurityRuleImpl.Unmarshaller(context)), 1, ___uri, ___local);
                    return ;
                case  1 :
                    revertToParentFromLeaveAttribute(___uri, ___local);
                    return ;
            }
            super.leaveAttribute(___uri, ___local);
        }

        public void text(String value)
            throws com.sun.xml.bind.unmarshaller.UnreportedException
        {
            try {
                switch (state) {
                    case  0 :
                        spawnSuperClassFromText((new phex.xml.impl.XJBSecurityRuleImpl.Unmarshaller(context)), 1, value);
                        return ;
                    case  1 :
                        revertToParentFromText(value);
                        return ;
                    case  6 :
                        _CompareIP = com.sun.msv.datatype.xsd.HexBinaryType.load(com.sun.xml.bind.WhiteSpaceProcessor.collapse(value));
                        state = 7;
                        return ;
                    case  4 :
                        _AddressType = com.sun.msv.datatype.xsd.ByteType.load(com.sun.xml.bind.WhiteSpaceProcessor.collapse(value)).byteValue();
                        has_AddressType = true;
                        state = 5;
                        return ;
                    case  2 :
                        _Ip = com.sun.msv.datatype.xsd.HexBinaryType.load(com.sun.xml.bind.WhiteSpaceProcessor.collapse(value));
                        state = 3;
                        return ;
                }
            } catch (RuntimeException e) {
                handleUnexpectedTextException(value, e);
            }
        }

        public void leaveChild(int nextState)
            throws com.sun.xml.bind.unmarshaller.UnreportedException
        {
            switch (nextState) {
                case  1 :
                    state = 1;
                    return ;
            }
            super.leaveChild(nextState);
        }

    }

}
