public MultPartTypeDescriptor() {
    super();
    nsURI = "http://www.brandbank.com/2007/12";
    xmlName = "MultPartType";
    elementDefinition = false;

    // -- set grouping compositor
    setCompositorAsSequence();
    org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
    org.exolab.castor.mapping.FieldHandler handler = null;
    org.exolab.castor.xml.FieldValidator fieldValidator = null;
    // -- initialize attribute descriptors

    // -- initialize element descriptors

    // -- _partList
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            com.pg.brandbank.Part.class,
            "_partList",
            "Part",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            MultPartType target = (MultPartType) object;
            return target.getPart();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              MultPartType target = (MultPartType) object;
              target.addPart((com.pg.brandbank.Part) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return new com.pg.brandbank.Part();
          }
        };
    desc.setHandler(handler);
    desc.setNameSpaceURI("http://www.brandbank.com/2007/12");
    desc.setMultivalued(true);
    addFieldDescriptor(desc);

    // -- validation code for: _partList
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(0);
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
  } // -- com.pg.brandbank.MultPartTypeDescriptor()
  public ProcesosBackgroundDescriptor() {
    super();
    xmlName = "ProcesosBackground";

    // -- set grouping compositor
    setCompositorAsSequence();
    org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
    org.exolab.castor.xml.XMLFieldHandler handler = null;
    org.exolab.castor.xml.FieldValidator fieldValidator = null;
    // -- initialize attribute descriptors

    // -- initialize element descriptors

    // -- _procesoList
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            com.tmk.kernel.server.Proceso.class,
            "_procesoList",
            "Proceso",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            ProcesosBackground target = (ProcesosBackground) object;
            return target.getProceso();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              ProcesosBackground target = (ProcesosBackground) object;
              target.addProceso((com.tmk.kernel.server.Proceso) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return new com.tmk.kernel.server.Proceso();
          }
        });
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(true);
    addFieldDescriptor(desc);

    // -- validation code for: _procesoList
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
  } // -- com.tmk.kernel.server.ProcesosBackgroundDescriptor()
  public TaskSeriesCollectionDescriptor() {
    super();
    xmlName = "TaskSeriesCollection";

    // -- set grouping compositor
    setCompositorAsSequence();
    org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
    org.exolab.castor.xml.XMLFieldHandler handler = null;
    org.exolab.castor.xml.FieldValidator fieldValidator = null;
    // -- initialize attribute descriptors

    // -- initialize element descriptors

    // -- _taskSeriesList
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            org.gridsphere.services.core.charts.TaskSeries.class,
            "_taskSeriesList",
            "TaskSeries",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            TaskSeriesCollection target = (TaskSeriesCollection) object;
            return target.getTaskSeries();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              TaskSeriesCollection target = (TaskSeriesCollection) object;
              target.addTaskSeries((org.gridsphere.services.core.charts.TaskSeries) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return new org.gridsphere.services.core.charts.TaskSeries();
          }
        });
    desc.setHandler(handler);
    desc.setMultivalued(true);
    addFieldDescriptor(desc);

    // -- validation code for: _taskSeriesList
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(0);
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
  } // -- org.gridsphere.services.core.charts.TaskSeriesCollectionDescriptor()
  public AT033ATDescriptor() {
    super();
    nsURI = "http://www.evologic.com.uk/evologic/evotype";
    xmlName = "AT033AT";
    org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
    org.exolab.castor.xml.XMLFieldHandler handler = null;
    org.exolab.castor.xml.FieldValidator fieldValidator = null;
    // -- initialize attribute descriptors

    // -- _value
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.String.class, "_value", "value", org.exolab.castor.xml.NodeType.Attribute);
    desc.setImmutable(true);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            AT033AT target = (AT033AT) object;
            return target.getValue();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              AT033AT target = (AT033AT) object;
              target.setValue((java.lang.String) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        });
    desc.setHandler(handler);
    desc.setRequired(true);
    addFieldDescriptor(desc);

    // -- validation code for: _value
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
      StringValidator typeValidator = new StringValidator();
      typeValidator.setWhiteSpace("preserve");
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- initialize element descriptors

  } // -- org.artistar.tahoe.config.type.AT033ATDescriptor()
  public PremiumDtlsDescriptor() {
    super();
    xmlName = "PremiumDtls";

    // -- set grouping compositor
    setCompositorAsSequence();
    org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
    org.exolab.castor.mapping.FieldHandler handler = null;
    org.exolab.castor.xml.FieldValidator fieldValidator = null;
    // -- initialize attribute descriptors

    // -- initialize element descriptors

    // -- _premiumTypeCd
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            au.com.suncorp.dm.policy.types.PremiumTypeCdType.class,
            "_premiumTypeCd",
            "PremiumTypeCd",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            PremiumDtls target = (PremiumDtls) object;
            return target.getPremiumTypeCd();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              PremiumDtls target = (PremiumDtls) object;
              target.setPremiumTypeCd((au.com.suncorp.dm.policy.types.PremiumTypeCdType) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    handler =
        new org.exolab.castor.xml.handlers.EnumFieldHandler(
            au.com.suncorp.dm.policy.types.PremiumTypeCdType.class, handler);
    desc.setImmutable(true);
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _premiumTypeCd
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
    // -- _inOutputCd
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            au.com.suncorp.dm.policy.types.InOutputCdType.class,
            "_inOutputCd",
            "InOutputCd",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            PremiumDtls target = (PremiumDtls) object;
            return target.getInOutputCd();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              PremiumDtls target = (PremiumDtls) object;
              target.setInOutputCd((au.com.suncorp.dm.policy.types.InOutputCdType) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    handler =
        new org.exolab.castor.xml.handlers.EnumFieldHandler(
            au.com.suncorp.dm.policy.types.InOutputCdType.class, handler);
    desc.setImmutable(true);
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _inOutputCd
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
    // -- _singleInstalmentCd
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            au.com.suncorp.dm.policy.types.SingleInstalmentCdType.class,
            "_singleInstalmentCd",
            "SingleInstalmentCd",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            PremiumDtls target = (PremiumDtls) object;
            return target.getSingleInstalmentCd();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              PremiumDtls target = (PremiumDtls) object;
              target.setSingleInstalmentCd(
                  (au.com.suncorp.dm.policy.types.SingleInstalmentCdType) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    handler =
        new org.exolab.castor.xml.handlers.EnumFieldHandler(
            au.com.suncorp.dm.policy.types.SingleInstalmentCdType.class, handler);
    desc.setImmutable(true);
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _singleInstalmentCd
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
    // -- _premiumCompDtlsList
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            au.com.suncorp.dm.policy.PremiumCompDtls.class,
            "_premiumCompDtlsList",
            "PremiumCompDtls",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            PremiumDtls target = (PremiumDtls) object;
            return target.getPremiumCompDtls();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              PremiumDtls target = (PremiumDtls) object;
              target.addPremiumCompDtls((au.com.suncorp.dm.policy.PremiumCompDtls) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return new au.com.suncorp.dm.policy.PremiumCompDtls();
          }
        };
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(true);
    addFieldDescriptor(desc);

    // -- validation code for: _premiumCompDtlsList
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
  } // -- au.com.suncorp.dm.policy.PremiumDtlsDescriptor()
  public MeteorRsMsgTypeDescriptor() {
    super();
    nsURI = "http://schemas.pescxml.org";
    xmlName = "MeteorRsMsgType";

    // -- set grouping compositor
    setCompositorAsSequence();
    org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
    org.exolab.castor.xml.XMLFieldHandler handler = null;
    org.exolab.castor.xml.FieldValidator fieldValidator = null;
    // -- initialize attribute descriptors

    // -- _PESCXMLVersion
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.String.class,
            "_PESCXMLVersion",
            "PESCXMLVersion",
            org.exolab.castor.xml.NodeType.Attribute);
    desc.setImmutable(true);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            MeteorRsMsgType target = (MeteorRsMsgType) object;
            return target.getPESCXMLVersion();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              MeteorRsMsgType target = (MeteorRsMsgType) object;
              target.setPESCXMLVersion((java.lang.String) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        });
    desc.setHandler(handler);
    desc.setRequired(true);
    addFieldDescriptor(desc);

    // -- validation code for: _PESCXMLVersion
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
      StringValidator typeValidator = new StringValidator();
      typeValidator.setWhiteSpace("preserve");
      typeValidator.setFixed("3.0.0");
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- initialize element descriptors

    // -- _meteorDataProviderInfoList
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            org.nchelp.meteor.message.response.MeteorDataProviderInfo.class,
            "_meteorDataProviderInfoList",
            "MeteorDataProviderInfo",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            MeteorRsMsgType target = (MeteorRsMsgType) object;
            return target.getMeteorDataProviderInfo();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              MeteorRsMsgType target = (MeteorRsMsgType) object;
              target.addMeteorDataProviderInfo(
                  (org.nchelp.meteor.message.response.MeteorDataProviderInfo) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return new org.nchelp.meteor.message.response.MeteorDataProviderInfo();
          }
        });
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(true);
    addFieldDescriptor(desc);

    // -- validation code for: _meteorDataProviderInfoList
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
    // -- _meteorDataAggregates
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            org.nchelp.meteor.message.response.MeteorDataAggregates.class,
            "_meteorDataAggregates",
            "MeteorDataAggregates",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            MeteorRsMsgType target = (MeteorRsMsgType) object;
            return target.getMeteorDataAggregates();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              MeteorRsMsgType target = (MeteorRsMsgType) object;
              target.setMeteorDataAggregates(
                  (org.nchelp.meteor.message.response.MeteorDataAggregates) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return new org.nchelp.meteor.message.response.MeteorDataAggregates();
          }
        });
    desc.setHandler(handler);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _meteorDataAggregates
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
    // -- _meteorIndexProviderDataList
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            org.nchelp.meteor.message.response.MeteorIndexProviderData.class,
            "_meteorIndexProviderDataList",
            "MeteorIndexProviderData",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            MeteorRsMsgType target = (MeteorRsMsgType) object;
            return target.getMeteorIndexProviderData();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              MeteorRsMsgType target = (MeteorRsMsgType) object;
              target.addMeteorIndexProviderData(
                  (org.nchelp.meteor.message.response.MeteorIndexProviderData) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return new org.nchelp.meteor.message.response.MeteorIndexProviderData();
          }
        });
    desc.setHandler(handler);
    desc.setMultivalued(true);
    addFieldDescriptor(desc);

    // -- validation code for: _meteorIndexProviderDataList
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(0);
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
  } // -- org.nchelp.meteor.message.response.MeteorRsMsgTypeDescriptor()
Example #7
0
  public IconDescriptor() {
    super();
    xmlName = "icon";
    org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
    org.exolab.castor.xml.XMLFieldHandler handler = null;
    org.exolab.castor.xml.FieldValidator fieldValidator = null;
    // -- initialize attribute descriptors

    // -- _text
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.String.class, "_text", "text", org.exolab.castor.xml.NodeType.Attribute);
    desc.setImmutable(true);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Icon target = (Icon) object;
            return target.getText();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Icon target = (Icon) object;
              target.setText((java.lang.String) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        });
    desc.setHandler(handler);
    desc.setRequired(true);
    addFieldDescriptor(desc);

    // -- validation code for: _text
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
      StringValidator typeValidator = new StringValidator();
      typeValidator.setWhiteSpace("preserve");
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- _src
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.String.class, "_src", "src", org.exolab.castor.xml.NodeType.Attribute);
    desc.setImmutable(true);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Icon target = (Icon) object;
            return target.getSrc();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Icon target = (Icon) object;
              target.setSrc((java.lang.String) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        });
    desc.setHandler(handler);
    desc.setRequired(true);
    addFieldDescriptor(desc);

    // -- validation code for: _src
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
      StringValidator typeValidator = new StringValidator();
      typeValidator.setWhiteSpace("preserve");
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- initialize element descriptors

  } // -- com.iver.andami.plugins.config.generate.IconDescriptor()
  public PolicyCompRefItemDescriptor() {
    super();
    xmlName = "PolicyCompRef";

    // -- set grouping compositor
    setCompositorAsChoice();
    org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
    org.exolab.castor.mapping.FieldHandler handler = null;
    org.exolab.castor.xml.FieldValidator fieldValidator = null;
    // -- initialize attribute descriptors

    // -- initialize element descriptors

    // -- _policyCoverageDtls
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            au.com.suncorp.dm.policy.PolicyCoverageDtls.class,
            "_policyCoverageDtls",
            "PolicyCoverageDtls",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            PolicyCompRefItem target = (PolicyCompRefItem) object;
            return target.getPolicyCoverageDtls();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              PolicyCompRefItem target = (PolicyCompRefItem) object;
              target.setPolicyCoverageDtls((au.com.suncorp.dm.policy.PolicyCoverageDtls) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return new au.com.suncorp.dm.policy.PolicyCoverageDtls();
          }
        };
    desc.setHandler(handler);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _policyCoverageDtls
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
    // -- _adjustmentDtls
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            au.com.suncorp.dm.policy.AdjustmentDtls.class,
            "_adjustmentDtls",
            "AdjustmentDtls",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            PolicyCompRefItem target = (PolicyCompRefItem) object;
            return target.getAdjustmentDtls();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              PolicyCompRefItem target = (PolicyCompRefItem) object;
              target.setAdjustmentDtls((au.com.suncorp.dm.policy.AdjustmentDtls) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return new au.com.suncorp.dm.policy.AdjustmentDtls();
          }
        };
    desc.setHandler(handler);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _adjustmentDtls
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
    // -- _premiumDtls
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            au.com.suncorp.dm.policy.PremiumDtls.class,
            "_premiumDtls",
            "PremiumDtls",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            PolicyCompRefItem target = (PolicyCompRefItem) object;
            return target.getPremiumDtls();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              PolicyCompRefItem target = (PolicyCompRefItem) object;
              target.setPremiumDtls((au.com.suncorp.dm.policy.PremiumDtls) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return new au.com.suncorp.dm.policy.PremiumDtls();
          }
        };
    desc.setHandler(handler);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _premiumDtls
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
    // -- _transactionDtls
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            au.com.suncorp.dm.policy.TransactionDtls.class,
            "_transactionDtls",
            "TransactionDtls",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            PolicyCompRefItem target = (PolicyCompRefItem) object;
            return target.getTransactionDtls();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              PolicyCompRefItem target = (PolicyCompRefItem) object;
              target.setTransactionDtls((au.com.suncorp.dm.policy.TransactionDtls) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return new au.com.suncorp.dm.policy.TransactionDtls();
          }
        };
    desc.setHandler(handler);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _transactionDtls
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
  } // -- au.com.suncorp.dm.policy.PolicyCompRefItemDescriptor()
  public GetPolicyResponseTypeDescriptor() {
    super();
    nsURI = "urn:ais:schema:insurance:policy";
    xmlName = "GetPolicyResponseType";

    // -- set grouping compositor
    setCompositorAsSequence();
    org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
    org.exolab.castor.mapping.FieldHandler handler = null;
    org.exolab.castor.xml.FieldValidator fieldValidator = null;
    // -- initialize attribute descriptors

    // -- initialize element descriptors

    // -- _policyResponseGIHeader
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            au.com.suncorp.dm.getpolicyFE.PolicyResponseGIHeader.class,
            "_policyResponseGIHeader",
            "GIHeader",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            GetPolicyResponseType target = (GetPolicyResponseType) object;
            return target.getPolicyResponseGIHeader();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              GetPolicyResponseType target = (GetPolicyResponseType) object;
              target.setPolicyResponseGIHeader(
                  (au.com.suncorp.dm.getpolicyFE.PolicyResponseGIHeader) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return new au.com.suncorp.dm.getpolicyFE.PolicyResponseGIHeader();
          }
        };
    desc.setHandler(handler);
    desc.setNameSpaceURI("urn:ais:schema:insurance:policy");
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _policyResponseGIHeader
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
    // -- _policyResponseBusinessData
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            au.com.suncorp.dm.getpolicyFE.PolicyResponseBusinessData.class,
            "_policyResponseBusinessData",
            "BusinessData",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            GetPolicyResponseType target = (GetPolicyResponseType) object;
            return target.getPolicyResponseBusinessData();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              GetPolicyResponseType target = (GetPolicyResponseType) object;
              target.setPolicyResponseBusinessData(
                  (au.com.suncorp.dm.getpolicyFE.PolicyResponseBusinessData) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return new au.com.suncorp.dm.getpolicyFE.PolicyResponseBusinessData();
          }
        };
    desc.setHandler(handler);
    desc.setNameSpaceURI("urn:ais:schema:insurance:policy");
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _policyResponseBusinessData
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
  } // -- au.com.suncorp.dm.getpolicyFE.GetPolicyResponseTypeDescriptor()
  public WdbElementDescriptor() {
    super();
    xmlName = "wdbElement";
    org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
    org.exolab.castor.mapping.FieldHandler handler = null;
    org.exolab.castor.xml.FieldValidator fieldValidator = null;
    // -- initialize attribute descriptors

    // -- _name
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute);
    desc.setImmutable(true);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            WdbElement target = (WdbElement) object;
            return target.getName();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              WdbElement target = (WdbElement) object;
              target.setName((java.lang.String) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _name
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
      StringValidator typeValidator = new StringValidator();
      typeValidator.setWhiteSpace("preserve");
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- _type
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.String.class, "_type", "type", org.exolab.castor.xml.NodeType.Attribute);
    desc.setImmutable(true);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            WdbElement target = (WdbElement) object;
            return target.getType();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              WdbElement target = (WdbElement) object;
              target.setType((java.lang.String) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _type
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
      StringValidator typeValidator = new StringValidator();
      typeValidator.setWhiteSpace("preserve");
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- _size
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.Integer.TYPE, "_size", "size", org.exolab.castor.xml.NodeType.Attribute);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            WdbElement target = (WdbElement) object;
            if (!target.hasSize()) return null;
            return new java.lang.Integer(target.getSize());
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              WdbElement target = (WdbElement) object;
              // if null, use delete method for optional primitives
              if (value == null) {
                target.deleteSize();
                return;
              }
              target.setSize(((java.lang.Integer) value).intValue());
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    desc.setHandler(handler);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _size
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
      IntegerValidator typeValidator = new IntegerValidator();
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- initialize element descriptors

  } // -- com.gele.tools.wow.wdbearmanager.castor.WdbElementDescriptor()
Example #11
0
  public MenuDescriptor() {
    super();
    xmlName = "menu";
    org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
    org.exolab.castor.xml.XMLFieldHandler handler = null;
    org.exolab.castor.xml.FieldValidator fieldValidator = null;
    // -- initialize attribute descriptors

    // -- _actionCommand
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.String.class,
            "_actionCommand",
            "action-command",
            org.exolab.castor.xml.NodeType.Attribute);
    desc.setImmutable(true);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Menu target = (Menu) object;
            return target.getActionCommand();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Menu target = (Menu) object;
              target.setActionCommand((java.lang.String) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        });
    desc.setHandler(handler);
    addFieldDescriptor(desc);

    // -- validation code for: _actionCommand
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
      StringValidator typeValidator = new StringValidator();
      typeValidator.setWhiteSpace("preserve");
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- _key
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.String.class, "_key", "key", org.exolab.castor.xml.NodeType.Attribute);
    desc.setImmutable(true);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Menu target = (Menu) object;
            return target.getKey();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Menu target = (Menu) object;
              target.setKey((java.lang.String) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        });
    desc.setHandler(handler);
    addFieldDescriptor(desc);

    // -- validation code for: _key
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
      StringValidator typeValidator = new StringValidator();
      typeValidator.setWhiteSpace("preserve");
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- _icon
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.String.class, "_icon", "icon", org.exolab.castor.xml.NodeType.Attribute);
    desc.setImmutable(true);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Menu target = (Menu) object;
            return target.getIcon();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Menu target = (Menu) object;
              target.setIcon((java.lang.String) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        });
    desc.setHandler(handler);
    addFieldDescriptor(desc);

    // -- validation code for: _icon
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
      StringValidator typeValidator = new StringValidator();
      typeValidator.setWhiteSpace("preserve");
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- _tooltip
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.String.class,
            "_tooltip",
            "tooltip",
            org.exolab.castor.xml.NodeType.Attribute);
    desc.setImmutable(true);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Menu target = (Menu) object;
            return target.getTooltip();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Menu target = (Menu) object;
              target.setTooltip((java.lang.String) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        });
    desc.setHandler(handler);
    addFieldDescriptor(desc);

    // -- validation code for: _tooltip
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
      StringValidator typeValidator = new StringValidator();
      typeValidator.setWhiteSpace("preserve");
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- _enableText
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.String.class,
            "_enableText",
            "enable-text",
            org.exolab.castor.xml.NodeType.Attribute);
    desc.setImmutable(true);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Menu target = (Menu) object;
            return target.getEnableText();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Menu target = (Menu) object;
              target.setEnableText((java.lang.String) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        });
    desc.setHandler(handler);
    addFieldDescriptor(desc);

    // -- validation code for: _enableText
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
      StringValidator typeValidator = new StringValidator();
      typeValidator.setWhiteSpace("preserve");
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- _mnemonic
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.String.class,
            "_mnemonic",
            "mnemonic",
            org.exolab.castor.xml.NodeType.Attribute);
    desc.setImmutable(true);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Menu target = (Menu) object;
            return target.getMnemonic();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Menu target = (Menu) object;
              target.setMnemonic((java.lang.String) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        });
    desc.setHandler(handler);
    addFieldDescriptor(desc);

    // -- validation code for: _mnemonic
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
      StringValidator typeValidator = new StringValidator();
      typeValidator.setWhiteSpace("preserve");
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- _text
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.String.class, "_text", "text", org.exolab.castor.xml.NodeType.Attribute);
    desc.setImmutable(true);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Menu target = (Menu) object;
            return target.getText();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Menu target = (Menu) object;
              target.setText((java.lang.String) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        });
    desc.setHandler(handler);
    desc.setRequired(true);
    addFieldDescriptor(desc);

    // -- validation code for: _text
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
      StringValidator typeValidator = new StringValidator();
      typeValidator.setWhiteSpace("preserve");
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- _position
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.Integer.TYPE,
            "_position",
            "position",
            org.exolab.castor.xml.NodeType.Attribute);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Menu target = (Menu) object;
            if (!target.hasPosition()) return null;
            return new java.lang.Integer(target.getPosition());
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Menu target = (Menu) object;
              // if null, use delete method for optional primitives
              if (value == null) {
                target.deletePosition();
                return;
              }
              target.setPosition(((java.lang.Integer) value).intValue());
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        });
    desc.setHandler(handler);
    addFieldDescriptor(desc);

    // -- validation code for: _position
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
      IntegerValidator typeValidator = new IntegerValidator();
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- _is_separator
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.Boolean.TYPE,
            "_is_separator",
            "is_separator",
            org.exolab.castor.xml.NodeType.Attribute);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Menu target = (Menu) object;
            if (!target.hasIs_separator()) return null;
            return (target.getIs_separator() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Menu target = (Menu) object;
              // if null, use delete method for optional primitives
              if (value == null) {
                target.deleteIs_separator();
                return;
              }
              target.setIs_separator(((java.lang.Boolean) value).booleanValue());
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        });
    desc.setHandler(handler);
    addFieldDescriptor(desc);

    // -- validation code for: _is_separator
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
      BooleanValidator typeValidator = new BooleanValidator();
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- initialize element descriptors

  } // -- com.iver.andami.plugins.config.generate.MenuDescriptor()
  public MgmtPolicyDescriptor() {
    super();
    xmlName = "MgmtPolicy";

    // -- set grouping compositor
    setCompositorAsSequence();
    org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
    org.exolab.castor.xml.XMLFieldHandler handler = null;
    org.exolab.castor.xml.FieldValidator fieldValidator = null;
    // -- initialize attribute descriptors

    // -- initialize element descriptors

    // -- _id
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            com.cisco.eManager.common.inventory2.ManagedObjectId.class,
            "_id",
            "id",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            MgmtPolicy target = (MgmtPolicy) object;
            return target.getId();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              MgmtPolicy target = (MgmtPolicy) object;
              target.setId((com.cisco.eManager.common.inventory2.ManagedObjectId) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return new com.cisco.eManager.common.inventory2.ManagedObjectId();
          }
        });
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _id
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
    // -- _name
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Element);
    desc.setImmutable(true);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            MgmtPolicy target = (MgmtPolicy) object;
            return target.getName();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              MgmtPolicy target = (MgmtPolicy) object;
              target.setName((java.lang.String) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        });
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _name
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
      StringValidator typeValidator = new StringValidator();
      typeValidator.setWhiteSpace("preserve");
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- _pathname
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.String.class,
            "_pathname",
            "pathname",
            org.exolab.castor.xml.NodeType.Element);
    desc.setImmutable(true);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            MgmtPolicy target = (MgmtPolicy) object;
            return target.getPathname();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              MgmtPolicy target = (MgmtPolicy) object;
              target.setPathname((java.lang.String) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        });
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _pathname
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
      StringValidator typeValidator = new StringValidator();
      typeValidator.setWhiteSpace("preserve");
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- _state
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            com.cisco.eManager.common.inventory2.MgmtPolicyState.class,
            "_state",
            "state",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            MgmtPolicy target = (MgmtPolicy) object;
            return target.getState();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              MgmtPolicy target = (MgmtPolicy) object;
              target.setState((com.cisco.eManager.common.inventory2.MgmtPolicyState) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return new com.cisco.eManager.common.inventory2.MgmtPolicyState();
          }
        });
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _state
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
  } // -- com.cisco.eManager.common.inventory2.MgmtPolicyDescriptor()
Example #13
0
  /** ----------------/ - Constructors -/ ----------------/ */
  public RelationsDescriptor() {
    super();
    nsURI = "http://www.cismet.de/cids";
    xmlName = "relations";

    // -- set grouping compositor
    setCompositorAsSequence();
    org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
    org.exolab.castor.xml.XMLFieldHandler handler = null;
    org.exolab.castor.xml.FieldValidator fieldValidator = null;
    // -- initialize attribute descriptors

    // -- initialize element descriptors

    // -- _relationList
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            de.cismet.jpresso.core.deprecated.castorGenerated.Relation.class,
            "_relationList",
            "relation",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {

          @Override
          public java.lang.Object getValue(final java.lang.Object object)
              throws IllegalStateException {
            final Relations target = (Relations) object;
            return target.getRelation();
          }

          @Override
          public void setValue(final java.lang.Object object, final java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              final Relations target = (Relations) object;
              target.addRelation(
                  (de.cismet.jpresso.core.deprecated.castorGenerated.Relation) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          @Override
          public java.lang.Object newInstance(final java.lang.Object parent) {
            return new de.cismet.jpresso.core.deprecated.castorGenerated.Relation();
          }
        });
    desc.setHandler(handler);
    desc.setNameSpaceURI("http://www.cismet.de/cids");
    desc.setRequired(true);
    desc.setMultivalued(true);
    addFieldDescriptor(desc);

    // -- validation code for: _relationList
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
  } // -- de.cismet.cids.admin.importAnt.castorGenerated.RelationsDescriptor()
  public TransactionDescriptor() {
    super();
    nsURI = "http://www.example.org/Transaction_psiahu";
    xmlName = "Transaction";

    // -- set grouping compositor
    setCompositorAsSequence();
    org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
    org.exolab.castor.mapping.FieldHandler handler = null;
    org.exolab.castor.xml.FieldValidator fieldValidator = null;
    // -- initialize attribute descriptors

    // -- initialize element descriptors

    // -- _transactionType
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            au.com.suncorp.dm.tx.types.TransactionTypeType.class,
            "_transactionType",
            "TransactionType",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Transaction target = (Transaction) object;
            return target.getTransactionType();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Transaction target = (Transaction) object;
              target.setTransactionType((au.com.suncorp.dm.tx.types.TransactionTypeType) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    handler =
        new org.exolab.castor.xml.handlers.EnumFieldHandler(
            au.com.suncorp.dm.tx.types.TransactionTypeType.class, handler);
    desc.setImmutable(true);
    desc.setHandler(handler);
    desc.setNameSpaceURI("http://www.example.org/Transaction_psiahu");
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _transactionType
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
    // -- _amount
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.math.BigDecimal.class,
            "_amount",
            "Amount",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Transaction target = (Transaction) object;
            return target.getAmount();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Transaction target = (Transaction) object;
              target.setAmount((java.math.BigDecimal) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return new java.math.BigDecimal(0);
          }
        };
    desc.setImmutable(true);
    desc.setHandler(handler);
    desc.setNameSpaceURI("http://www.example.org/Transaction_psiahu");
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _amount
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
      DecimalValidator typeValidator = new DecimalValidator();
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- _createDate
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.util.Date.class,
            "_createDate",
            "CreateDate",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Transaction target = (Transaction) object;
            return target.getCreateDate();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Transaction target = (Transaction) object;
              target.setCreateDate((java.util.Date) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return new java.util.Date();
          }
        };
    handler = new org.exolab.castor.xml.handlers.DateFieldHandler(handler);
    desc.setImmutable(true);
    desc.setHandler(handler);
    desc.setNameSpaceURI("http://www.example.org/Transaction_psiahu");
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _createDate
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
    // -- _description
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.String.class,
            "_description",
            "Description",
            org.exolab.castor.xml.NodeType.Element);
    desc.setImmutable(true);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Transaction target = (Transaction) object;
            return target.getDescription();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Transaction target = (Transaction) object;
              target.setDescription((java.lang.String) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    desc.setHandler(handler);
    desc.setNameSpaceURI("http://www.example.org/Transaction_psiahu");
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _description
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
      StringValidator typeValidator = new StringValidator();
      typeValidator.setWhiteSpace("preserve");
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
  } // -- au.com.suncorp.dm.tx.TransactionDescriptor()
  public HostStateDescriptor() {
    super();
    xmlName = "HostState";

    // -- set grouping compositor
    setCompositorAsChoice();
    org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
    org.exolab.castor.xml.XMLFieldHandler handler = null;
    org.exolab.castor.xml.FieldValidator fieldValidator = null;
    // -- initialize attribute descriptors

    // -- initialize element descriptors

    // -- _down
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.Integer.TYPE, "_down", "Down", org.exolab.castor.xml.NodeType.Element);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            HostState target = (HostState) object;
            if (!target.hasDown()) return null;
            return new Integer(target.getDown());
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              HostState target = (HostState) object;
              // ignore null values for non optional primitives
              if (value == null) return;

              target.setDown(((Integer) value).intValue());
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        });
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _down
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
      IntegerValidator typeValidator = new IntegerValidator();
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- _up
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.Integer.TYPE, "_up", "Up", org.exolab.castor.xml.NodeType.Element);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            HostState target = (HostState) object;
            if (!target.hasUp()) return null;
            return new Integer(target.getUp());
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              HostState target = (HostState) object;
              // ignore null values for non optional primitives
              if (value == null) return;

              target.setUp(((Integer) value).intValue());
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        });
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _up
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
      IntegerValidator typeValidator = new IntegerValidator();
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
  } // -- com.cisco.eManager.common.inventory2.HostStateDescriptor()
  public PlotDescriptor() {
    super();
    xmlName = "Plot";

    // -- set grouping compositor
    setCompositorAsSequence();
    org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
    org.exolab.castor.xml.XMLFieldHandler handler = null;
    org.exolab.castor.xml.FieldValidator fieldValidator = null;
    // -- initialize attribute descriptors

    // -- _foregroundAlpha
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            float.class,
            "_foregroundAlpha",
            "foregroundAlpha",
            org.exolab.castor.xml.NodeType.Attribute);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Plot target = (Plot) object;
            if (!target.hasForegroundAlpha()) return null;
            return new java.lang.Float(target.getForegroundAlpha());
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Plot target = (Plot) object;
              // if null, use delete method for optional primitives
              if (value == null) {
                target.deleteForegroundAlpha();
                return;
              }
              target.setForegroundAlpha(((java.lang.Float) value).floatValue());
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        });
    desc.setHandler(handler);
    addFieldDescriptor(desc);

    // -- validation code for: _foregroundAlpha
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
      FloatValidator typeValidator = new FloatValidator();
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- initialize element descriptors

    // -- _backgroundPaint
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            org.gridsphere.services.core.charts.BackgroundPaint.class,
            "_backgroundPaint",
            "BackgroundPaint",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Plot target = (Plot) object;
            return target.getBackgroundPaint();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Plot target = (Plot) object;
              target.setBackgroundPaint(
                  (org.gridsphere.services.core.charts.BackgroundPaint) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return new org.gridsphere.services.core.charts.BackgroundPaint();
          }
        });
    desc.setHandler(handler);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _backgroundPaint
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
    // -- _settings
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            org.gridsphere.services.core.charts.Settings.class,
            "_settings",
            "Settings",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Plot target = (Plot) object;
            return target.getSettings();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Plot target = (Plot) object;
              target.setSettings((org.gridsphere.services.core.charts.Settings) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return new org.gridsphere.services.core.charts.Settings();
          }
        });
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _settings
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
    // -- _seriesPaintList
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            org.gridsphere.services.core.charts.SeriesPaint.class,
            "_seriesPaintList",
            "SeriesPaint",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Plot target = (Plot) object;
            return target.getSeriesPaint();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Plot target = (Plot) object;
              target.addSeriesPaint((org.gridsphere.services.core.charts.SeriesPaint) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return new org.gridsphere.services.core.charts.SeriesPaint();
          }
        });
    desc.setHandler(handler);
    desc.setMultivalued(true);
    addFieldDescriptor(desc);

    // -- validation code for: _seriesPaintList
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(0);
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
    // -- _noDataMessage
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            org.gridsphere.services.core.charts.NoDataMessage.class,
            "_noDataMessage",
            "NoDataMessage",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Plot target = (Plot) object;
            return target.getNoDataMessage();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Plot target = (Plot) object;
              target.setNoDataMessage((org.gridsphere.services.core.charts.NoDataMessage) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return new org.gridsphere.services.core.charts.NoDataMessage();
          }
        });
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _noDataMessage
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
  } // -- org.gridsphere.services.core.charts.PlotDescriptor()
Example #17
0
/*
  public PaymentTypeDescriptor() {
    super();
    nsURI = "http://schemas.pescxml.org";
    xmlName = "PaymentType";

    // -- set grouping compositor
    setCompositorAsSequence();
    org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
    org.exolab.castor.xml.XMLFieldHandler handler = null;
    org.exolab.castor.xml.FieldValidator fieldValidator = null;
    // -- initialize attribute descriptors

    // -- initialize element descriptors

    // -- _paymentAmt
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.math.BigDecimal.class,
            "_paymentAmt",
            "PaymentAmt",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            PaymentType target = (PaymentType) object;
            return target.getPaymentAmt();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              PaymentType target = (PaymentType) object;
              target.setPaymentAmt((java.math.BigDecimal) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return new java.math.BigDecimal(0);
          }
        });
    desc.setHandler(handler);
    desc.setImmutable(true);
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _paymentAmt
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
      DecimalValidator typeValidator = new DecimalValidator();
      typeValidator.setMinInclusive(new java.math.BigDecimal("0.00"));
      typeValidator.setMaxInclusive(new java.math.BigDecimal("999999999.99"));
      typeValidator.setTotalDigits(11);
      typeValidator.setFractionDigits(2);
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- _paymentDt
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            org.exolab.castor.types.Date.class,
            "_paymentDt",
            "PaymentDt",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            PaymentType target = (PaymentType) object;
            return target.getPaymentDt();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              PaymentType target = (PaymentType) object;
              target.setPaymentDt((org.exolab.castor.types.Date) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return new org.exolab.castor.types.Date();
          }
        });
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _paymentDt
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
      DateTimeValidator typeValidator = new DateTimeValidator();
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
  } // -- org.nchelp.meteor.message.response.PaymentTypeDescriptor()