//
// 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 XJBSecurityRuleImpl implements phex.xml.XJBSecurityRule, 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.XJBSecurityRule.class;
    protected boolean has_TriggerCount;
    protected int _TriggerCount;
    protected String _Description;
    protected boolean has_DenyingRule;
    protected boolean _DenyingRule;
    protected boolean has_ExpiryDate;
    protected long _ExpiryDate;
    protected boolean has_SystemRule;
    protected boolean _SystemRule;
    protected boolean has_Disabled;
    protected boolean _Disabled;
    protected boolean has_DeletedOnExpiry;
    protected boolean _DeletedOnExpiry;
    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\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\u001bL\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\u0012psr\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u001bL\u0000\fnamespaceURIq\u0000~\u0000\u001bxpq\u0000~\u0000\u001fq\u0000~\u0000\u001esr\u0000#com.sun.msv.grammar.SimpleNameClass\u0091\u00e9\u00f7\u008d\u00ab\u0010\u00aa\u00f5\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u001bL\u0000\fnamespaceURIq\u0000~\u0000\u001bxr\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\u0011\u0001psq\u0000~\u0000\u000b\u0001<F\u00b0ppsq\u0000~\u0000\r\u0001<F\u00a5q\u0000~\u0000\u0012p\u0000sq\u0000~\u0000\u0013\u0001<F\u009appsr\u0000$com.sun.msv.datatype.xsd.BooleanType\u008f\u0081\u0081\u0090\u00c8\u0002}\u0099\u0002\u0000\u0000xq\u0000~\u0000\u0018q\u0000~\u0000\u001et\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~\u00004q\u0000~\u0000\u001esq\u0000~\u0000\'t\u0000\risDenyingRuleq\u0000~\u0000+q\u0000~\u0000-sq\u0000~\u0000\u000b\u0001<F\u00b0ppsq\u0000~\u0000\r\u0001<F\u00a5q\u0000~\u0000\u0012p\u0000q\u0000~\u00001sq\u0000~\u0000\'t\u0000\nisDisabledq\u0000~\u0000+q\u0000~\u0000-sq\u0000~\u0000\u000b\u0001<F\u00b0ppsq\u0000~\u0000\r\u0001<F\u00a5q\u0000~\u0000\u0012p\u0000q\u0000~\u00001sq\u0000~\u0000\'t\u0000\fisSystemRuleq\u0000~\u0000+q\u0000~\u0000-sq\u0000~\u0000\u000b\u0000\u008f=Mppsq\u0000~\u0000\r\u0000\u008f=Bq\u0000~\u0000\u0012p\u0000sq\u0000~\u0000\u0013\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\u0018q\u0000~\u0000\u001et\u0000\u0003intq\u0000~\u00006q\u0000~\u0000$sq\u0000~\u0000%q\u0000~\u0000Hq\u0000~\u0000\u001esq\u0000~\u0000\'t\u0000\ftriggerCountq\u0000~\u0000+q\u0000~\u0000-sq\u0000~\u0000\u000b\u0000\u00d4\u0003\u0003ppsq\u0000~\u0000\r\u0000\u00d4\u0002\u00f8q\u0000~\u0000\u0012p\u0000sq\u0000~\u0000\u0013\u0000\u00d4\u0002\u00edppsr\u0000!com.sun.msv.datatype.xsd.LongType\u00e8A\u00fc\u001d>J\u00a1\u00c1\u0002\u0000\u0000xq\u0000~\u0000Fq\u0000~\u0000\u001et\u0000\u0004longq\u0000~\u00006q\u0000~\u0000$sq\u0000~\u0000%q\u0000~\u0000Qq\u0000~\u0000\u001esq\u0000~\u0000\'t\u0000\nexpiryDateq\u0000~\u0000+q\u0000~\u0000-sq\u0000~\u0000\u000b\u0001<F\u00b0ppsq\u0000~\u0000\r\u0001<F\u00a5q\u0000~\u0000\u0012p\u0000q\u0000~\u00001sq\u0000~\u0000\'t\u0000\u0011isDeletedOnExpiryq\u0000~\u0000+q\u0000~\u0000-sr\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~\u0000Z[\u0000\u0005tablet\u0000![Lcom/sun/msv/grammar/Expression;xp\u0000\u0000\u0000\r\u0000\u0000\u00009pur\u0000![Lcom.sun.msv.grammar.Expression;\u00d68D\u00c3]\u00ad\u00a7\n\u0002\u0000\u0000xp\u0000\u0000\u0000\u00bfppppppppppppppppppppppppppppppppppq\u0000~\u0000\u0005pppppppppppppppppppppppppppppppppq\u0000~\u0000\bq\u0000~\u0000\u0006pppq\u0000~\u0000Bppppppppppppppppppppppppppppq\u0000~\u0000\tpppppq\u0000~\u0000Lpppppppppppppppppppppppppppq\u0000~\u0000\npppppppppq\u0000~\u0000\u0007pppppq\u0000~\u0000/q\u0000~\u0000:q\u0000~\u0000>q\u0000~\u0000Uppppppppppppppq\u0000~\u0000\fpppppppppppppppppppp");

    public int getTriggerCount() {
        return _TriggerCount;
    }

    public void setTriggerCount(int value) {
        _TriggerCount = value;
        has_TriggerCount = true;
    }

    public String getDescription() {
        return _Description;
    }

    public void setDescription(String value) {
        _Description = value;
    }

    public boolean isDenyingRule() {
        return _DenyingRule;
    }

    public void setDenyingRule(boolean value) {
        _DenyingRule = value;
        has_DenyingRule = true;
    }

    public long getExpiryDate() {
        return _ExpiryDate;
    }

    public void setExpiryDate(long value) {
        _ExpiryDate = value;
        has_ExpiryDate = true;
    }

    public boolean isSystemRule() {
        return _SystemRule;
    }

    public void setSystemRule(boolean value) {
        _SystemRule = value;
        has_SystemRule = true;
    }

    public boolean isDisabled() {
        return _Disabled;
    }

    public void setDisabled(boolean value) {
        _Disabled = value;
        has_Disabled = true;
    }

    public boolean isDeletedOnExpiry() {
        return _DeletedOnExpiry;
    }

    public void setDeletedOnExpiry(boolean value) {
        _DeletedOnExpiry = value;
        has_DeletedOnExpiry = true;
    }

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

    public Class getPrimaryInterfaceClass() {
        return PRIMARY_INTERFACE_CLASS;
    }

    public void serializeElements(com.sun.xml.bind.serializer.XMLSerializer context)
        throws org.xml.sax.SAXException
    {
        if (_Description!= null) {
            context.startElement("", "description");
            context.endAttributes();
            context.text(((String) _Description));
            context.endElement();
        }
        if (has_DenyingRule) {
            context.startElement("", "isDenyingRule");
            context.endAttributes();
            context.text(com.sun.msv.datatype.xsd.BooleanType.save(((Boolean) new java.lang.Boolean(_DenyingRule))));
            context.endElement();
        }
        if (has_Disabled) {
            context.startElement("", "isDisabled");
            context.endAttributes();
            context.text(com.sun.msv.datatype.xsd.BooleanType.save(((Boolean) new java.lang.Boolean(_Disabled))));
            context.endElement();
        }
        if (has_SystemRule) {
            context.startElement("", "isSystemRule");
            context.endAttributes();
            context.text(com.sun.msv.datatype.xsd.BooleanType.save(((Boolean) new java.lang.Boolean(_SystemRule))));
            context.endElement();
        }
        if (has_TriggerCount) {
            context.startElement("", "triggerCount");
            context.endAttributes();
            context.text(com.sun.msv.datatype.xsd.IntType.save(((Integer) new java.lang.Integer(_TriggerCount))));
            context.endElement();
        }
        if (has_ExpiryDate) {
            context.startElement("", "expiryDate");
            context.endAttributes();
            context.text(com.sun.msv.datatype.xsd.LongType.save(((Long) new java.lang.Long(_ExpiryDate))));
            context.endElement();
        }
        if (has_DeletedOnExpiry) {
            context.startElement("", "isDeletedOnExpiry");
            context.endAttributes();
            context.text(com.sun.msv.datatype.xsd.BooleanType.save(((Boolean) new java.lang.Boolean(_DeletedOnExpiry))));
            context.endElement();
        }
    }

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

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

    public Class getPrimaryInterface() {
        return (phex.xml.XJBSecurityRule.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.XJBSecurityRuleImpl.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)) {
                        context.pushAttributes(__atts);
                        state = 13;
                        return ;
                    }
                    if ("".equals(___uri)&&"isDisabled".equals(___local)) {
                        context.pushAttributes(__atts);
                        state = 1;
                        return ;
                    }
                    if ("".equals(___uri)&&"expiryDate".equals(___local)) {
                        context.pushAttributes(__atts);
                        state = 11;
                        return ;
                    }
                    if ("".equals(___uri)&&"description".equals(___local)) {
                        context.pushAttributes(__atts);
                        state = 3;
                        return ;
                    }
                    if ("".equals(___uri)&&"triggerCount".equals(___local)) {
                        context.pushAttributes(__atts);
                        state = 9;
                        return ;
                    }
                    if ("".equals(___uri)&&"isDenyingRule".equals(___local)) {
                        context.pushAttributes(__atts);
                        state = 5;
                        return ;
                    }
                    if ("".equals(___uri)&&"isSystemRule".equals(___local)) {
                        context.pushAttributes(__atts);
                        state = 7;
                        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  10 :
                    if ("".equals(___uri)&&"triggerCount".equals(___local)) {
                        context.popAttributes();
                        state = 0;
                        return ;
                    }
                    break;
                case  14 :
                    if ("".equals(___uri)&&"isDeletedOnExpiry".equals(___local)) {
                        context.popAttributes();
                        state = 0;
                        return ;
                    }
                    break;
                case  8 :
                    if ("".equals(___uri)&&"isSystemRule".equals(___local)) {
                        context.popAttributes();
                        state = 0;
                        return ;
                    }
                    break;
                case  6 :
                    if ("".equals(___uri)&&"isDenyingRule".equals(___local)) {
                        context.popAttributes();
                        state = 0;
                        return ;
                    }
                    break;
                case  2 :
                    if ("".equals(___uri)&&"isDisabled".equals(___local)) {
                        context.popAttributes();
                        state = 0;
                        return ;
                    }
                    break;
                case  12 :
                    if ("".equals(___uri)&&"expiryDate".equals(___local)) {
                        context.popAttributes();
                        state = 0;
                        return ;
                    }
                    break;
                case  4 :
                    if ("".equals(___uri)&&"description".equals(___local)) {
                        context.popAttributes();
                        state = 0;
                        return ;
                    }
                    break;
                case  0 :
                    revertToParentFromLeaveElement(___uri, ___local);
                    return ;
            }
            super.leaveElement(___uri, ___local);
        }

        public void enterAttribute(String ___uri, String ___local)
            throws com.sun.xml.bind.unmarshaller.UnreportedException
        {
            switch (state) {
                case  0 :
                    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 :
                    revertToParentFromLeaveAttribute(___uri, ___local);
                    return ;
            }
            super.leaveAttribute(___uri, ___local);
        }

        public void text(String value)
            throws com.sun.xml.bind.unmarshaller.UnreportedException
        {
            try {
                switch (state) {
                    case  13 :
                        _DeletedOnExpiry = com.sun.msv.datatype.xsd.BooleanType.load(com.sun.xml.bind.WhiteSpaceProcessor.collapse(value)).booleanValue();
                        has_DeletedOnExpiry = true;
                        state = 14;
                        return ;
                    case  9 :
                        _TriggerCount = com.sun.msv.datatype.xsd.IntType.load(com.sun.xml.bind.WhiteSpaceProcessor.collapse(value)).intValue();
                        has_TriggerCount = true;
                        state = 10;
                        return ;
                    case  1 :
                        _Disabled = com.sun.msv.datatype.xsd.BooleanType.load(com.sun.xml.bind.WhiteSpaceProcessor.collapse(value)).booleanValue();
                        has_Disabled = true;
                        state = 2;
                        return ;
                    case  11 :
                        _ExpiryDate = com.sun.msv.datatype.xsd.LongType.load(com.sun.xml.bind.WhiteSpaceProcessor.collapse(value)).longValue();
                        has_ExpiryDate = true;
                        state = 12;
                        return ;
                    case  7 :
                        _SystemRule = com.sun.msv.datatype.xsd.BooleanType.load(com.sun.xml.bind.WhiteSpaceProcessor.collapse(value)).booleanValue();
                        has_SystemRule = true;
                        state = 8;
                        return ;
                    case  3 :
                        _Description = value;
                        state = 4;
                        return ;
                    case  5 :
                        _DenyingRule = com.sun.msv.datatype.xsd.BooleanType.load(com.sun.xml.bind.WhiteSpaceProcessor.collapse(value)).booleanValue();
                        has_DenyingRule = true;
                        state = 6;
                        return ;
                    case  0 :
                        revertToParentFromText(value);
                        return ;
                }
            } catch (RuntimeException e) {
                handleUnexpectedTextException(value, e);
            }
        }

    }

}
