Exemplo n.º 1
0
  public EntryDescriptor() {
    super();
    _nsURI = "http://xmlns.opennms.org/xsd/config/rrdtool-xport";
    _xmlName = "entry";
    _elementDefinition = true;
    org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
    org.exolab.castor.mapping.FieldHandler handler = null;
    org.exolab.castor.xml.FieldValidator fieldValidator = null;
    // -- _content
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.String.class, "_content", "PCDATA", org.exolab.castor.xml.NodeType.Text);
    desc.setImmutable(true);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          @Override
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Entry target = (Entry) object;
            return target.getContent();
          }

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

          @Override
          @SuppressWarnings("unused")
          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    desc.setSchemaType("string");
    desc.setHandler(handler);
    addFieldDescriptor(desc);

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

    // -- initialize element descriptors

  }
  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()
Exemplo n.º 5
0
  public AndamiDescriptor() {
    super();
    xmlName = "andami";
    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

    // -- _update
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.Boolean.TYPE, "_update", "update", org.exolab.castor.xml.NodeType.Attribute);
    handler =
        (new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Andami target = (Andami) object;
            if (!target.hasUpdate()) return null;
            return (target.getUpdate() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
          }

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

              target.setUpdate(((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);
    desc.setRequired(true);
    addFieldDescriptor(desc);

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

  } // -- com.iver.andami.config.generate.AndamiDescriptor()
  public TimeLimitActionTypeDescriptor() {
    super();
    _nsURI = "http://www.adlnet.org/xsd/adlcp_v1p3";
    _xmlName = "timeLimitActionType";
    _elementDefinition = false;
    org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
    org.exolab.castor.mapping.FieldHandler handler = null;
    org.exolab.castor.xml.FieldValidator fieldValidator = null;
    // -- _content
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.String.class, "_content", "PCDATA", org.exolab.castor.xml.NodeType.Text);
    desc.setImmutable(true);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            TimeLimitActionType target = (TimeLimitActionType) object;
            return target.getContent();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              TimeLimitActionType target = (TimeLimitActionType) object;
              target.setContent((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: _content
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
      org.exolab.castor.xml.validators.StringValidator typeValidator;
      typeValidator = new org.exolab.castor.xml.validators.StringValidator();
      fieldValidator.setValidator(typeValidator);
      typeValidator.setWhiteSpace("preserve");
    }
    desc.setValidator(fieldValidator);
    // -- initialize attribute descriptors

    // -- initialize element descriptors

  }
Exemplo n.º 7
0
  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 MimeTypeTypeDescriptor() {
    super();
    nsURI = "http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd";
    xmlName = "mime-typeType";
    elementDefinition = false;
    org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
    org.exolab.castor.mapping.FieldHandler handler = null;
    org.exolab.castor.xml.FieldValidator fieldValidator = null;
    // -- _content
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.String.class, "_content", "PCDATA", org.exolab.castor.xml.NodeType.Text);
    desc.setImmutable(true);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            MimeTypeType target = (MimeTypeType) object;
            return target.getContent();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              MimeTypeType target = (MimeTypeType) object;
              target.setContent((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: _content
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
      StringValidator typeValidator = new StringValidator();
      typeValidator.setWhiteSpace("preserve");
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- initialize attribute descriptors

    // -- initialize element descriptors

  } // -- org.light.portlet.definition.MimeTypeTypeDescriptor()
Exemplo n.º 9
0
  public JndiDescriptor() {
    xmlName = "jndi";
    XMLFieldDescriptorImpl desc = null;
    XMLFieldHandler handler = null;
    FieldValidator fieldValidator = null;
    // -- initialize attribute descriptors

    attributes = new XMLFieldDescriptorImpl[1];
    // -- _name
    desc = new XMLFieldDescriptorImpl(java.lang.String.class, "_name", "name", NodeType.Attribute);
    desc.setImmutable(true);
    handler =
        (new XMLFieldHandler() {
          public Object getValue(Object object) throws IllegalStateException {
            Jndi target = (Jndi) object;
            return target.getName();
          }

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

          public Object newInstance(Object parent) {
            return null;
          }
        });
    desc.setHandler(handler);
    desc.setRequired(true);
    attributes[0] = desc;

    // -- validation code for: _name
    fieldValidator = new FieldValidator();
    fieldValidator.setMinOccurs(1);
    fieldValidator.setValidator(new StringValidator());
    desc.setValidator(fieldValidator);

    // -- initialize element descriptors

    elements = new XMLFieldDescriptorImpl[0];
  } // -- org.exolab.castor.jdo.conf.JndiDescriptor()
Exemplo n.º 10
0
  public RawScriptTypeDescriptor() {
    super();
    _xmlName = "RawScriptType";
    _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

    // -- _content
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.String.class, "_content", "content", 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 {
            RawScriptType target = (RawScriptType) object;
            return target.getContent();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              RawScriptType target = (RawScriptType) object;
              target.setContent((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.setSchemaType("string");
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);
    addSequenceElement(desc);

    // -- validation code for: _content
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
      org.exolab.castor.xml.validators.StringValidator typeValidator;
      typeValidator = new org.exolab.castor.xml.validators.StringValidator();
      fieldValidator.setValidator(typeValidator);
      typeValidator.setWhiteSpace("preserve");
    }
    desc.setValidator(fieldValidator);
  }
Exemplo n.º 11
0
  /**
   * Creates a VectorClassDescriptor for the given XML name.
   *
   * @param xmlName name of the XML type
   */
  public VectorClassDescriptor(final String xmlName) {
    super();

    _xmlName = xmlName;

    // -- Create FieldDescriptor
    _desc = new XMLFieldDescriptorImpl(Object.class, "item", _xmlName, NodeType.Element);

    _desc.setMultivalued(true);
    _desc.setMatches("*");
    _desc.setHandler(
        new XMLFieldHandler() {

          /** {@inheritDoc} */
          public Object getValue(final Object object) throws IllegalStateException {
            return ((java.util.Vector) object).elements();
          }

          /** {@inheritDoc} */
          public void setValue(final Object object, final Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              ((java.util.Vector) object).addElement(value);
            } catch (Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          /** {@inheritDoc} */
          public Object newInstance(final Object parent) {
            return null;
          }
        });

    _fields = new FieldDescriptor[1];
    _fields[0] = _desc;

    _elements = new XMLFieldDescriptor[1];
    _elements[0] = _desc;
  } // -- VectorClassDescriptor()
Exemplo n.º 12
0
  public MaximumVersionDescriptor() {
    super();
    _nsURI = "http://ltsc.ieee.org/xsd/LOM";
    _xmlName = "maximumVersion";
    _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

    // -- _groupMaximumVersionMaximumVersion
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            es.pode.parseadorXML.castor.GroupMaximumVersionMaximumVersion.class,
            "_groupMaximumVersionMaximumVersion",
            "maximumVersion",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            MaximumVersion target = (MaximumVersion) object;
            return target.getGroupMaximumVersionMaximumVersion();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              MaximumVersion target = (MaximumVersion) object;
              target.setGroupMaximumVersionMaximumVersion(
                  (es.pode.parseadorXML.castor.GroupMaximumVersionMaximumVersion) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return new es.pode.parseadorXML.castor.GroupMaximumVersionMaximumVersion();
          }
        };
    desc.setHandler(handler);
    desc.setNameSpaceURI("http://ltsc.ieee.org/xsd/LOM");
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _groupMaximumVersionMaximumVersion
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
  }
Exemplo n.º 13
0
  public EventsDescriptor() {
    super();
    _xmlName = "events";
    _elementDefinition = true;

    // -- 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

    // -- _event
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            com.bugclipse.fogbugz.api.Event.class,
            "_event",
            "event",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Events target = (Events) object;
            return target.getEvent();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Events target = (Events) object;
              target.setEvent((com.bugclipse.fogbugz.api.Event) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    desc.setSchemaType("com.bugclipse.fogbugz.api.Event");
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);
    addSequenceElement(desc);

    // -- validation code for: _event
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
  }
Exemplo n.º 14
0
  public IsNullExprTypeDescriptor() {
    super();
    _xmlName = "IsNullExprType";
    _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

    // -- _variable
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            org.ralasafe.db.sql.xml.Variable.class,
            "_variable",
            "variable",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            IsNullExprType target = (IsNullExprType) object;
            return target.getVariable();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              IsNullExprType target = (IsNullExprType) object;
              target.setVariable((org.ralasafe.db.sql.xml.Variable) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public java.lang.Object newInstance(java.lang.Object parent) {
            return new org.ralasafe.db.sql.xml.Variable();
          }
        };
    desc.setSchemaType("org.ralasafe.db.sql.xml.Variable");
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);
    addSequenceElement(desc);

    // -- validation code for: _variable
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
  }
  public SecurityRequirementDescriptor() {
    super();
    xmlName = "security-requirement";
    XMLFieldDescriptorImpl desc = null;
    XMLFieldHandler handler = null;
    FieldValidator fieldValidator = null;

    // -- set grouping compositor
    setCompositorAsSequence();
    // -- initialize attribute descriptors

    // -- initialize element descriptors

    // -- _description
    desc =
        new XMLFieldDescriptorImpl(
            java.lang.String.class, "_description", "description", NodeType.Element);
    desc.setImmutable(true);
    handler =
        (new XMLFieldHandler() {
          public Object getValue(Object object) throws IllegalStateException {
            SecurityRequirement target = (SecurityRequirement) object;
            return target.getDescription();
          }

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

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

    // -- validation code for: _description
    fieldValidator = new FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
      StringValidator sv = new StringValidator();
      sv.setWhiteSpace("preserve");
      fieldValidator.setValidator(sv);
    }
    desc.setValidator(fieldValidator);
  } // -- de.fhg.isst.ComponentML.SecurityRequirementDescriptor()
Exemplo n.º 16
0
  public TopicsDescriptor() {
    super();
    nsURI = "http://jakarta.apache.org/jetspeed/xml/jetspeed-portal-content";
    xmlName = "topics";
    XMLFieldDescriptorImpl desc = null;
    XMLFieldHandler handler = null;
    FieldValidator fieldValidator = null;
    // -- initialize attribute descriptors

    // -- initialize element descriptors

    // -- _entryList
    desc = new XMLFieldDescriptorImpl(Entry.class, "_entryList", "entry", NodeType.Element);
    handler =
        (new XMLFieldHandler() {
          public Object getValue(Object object) throws IllegalStateException {
            Topics target = (Topics) object;
            return target.getEntry();
          }

          public void setValue(Object object, Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Topics target = (Topics) object;
              target.addEntry((Entry) value);
            } catch (Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public Object newInstance(Object parent) {
            return new Entry();
          }
        });
    desc.setHandler(handler);
    desc.setNameSpaceURI("http://jakarta.apache.org/jetspeed/xml/jetspeed-portal-content");
    desc.setRequired(true);
    desc.setMultivalued(true);
    addFieldDescriptor(desc);

    // -- validation code for: _entryList
    fieldValidator = new FieldValidator();
    fieldValidator.setMinOccurs(1);
    desc.setValidator(fieldValidator);
  } // -- org.apache.jetspeed.xml.api.jcm.TopicsDescriptor()
Exemplo n.º 17
0
  public ParameterDescriptor() {
    super();
    _nsURI = "http://xmlns.opennms.org/xsd/config/datacollection";
    _xmlName = "parameter";
    _elementDefinition = true;
    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

    // -- _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() {
          @Override
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Parameter target = (Parameter) object;
            return target.getKey();
          }

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

          @Override
          @SuppressWarnings("unused")
          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    desc.setSchemaType("string");
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _key
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
      org.exolab.castor.xml.validators.StringValidator typeValidator;
      typeValidator = new org.exolab.castor.xml.validators.StringValidator();
      fieldValidator.setValidator(typeValidator);
      typeValidator.setWhiteSpace("preserve");
    }
    desc.setValidator(fieldValidator);
    // -- _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() {
          @Override
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Parameter target = (Parameter) object;
            return target.getValue();
          }

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

          @Override
          @SuppressWarnings("unused")
          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    desc.setSchemaType("string");
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

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

  }
  public NsclientCollectionDescriptor() {
    super();
    _nsURI = "http://xmlns.opennms.org/xsd/config/nsclient-datacollection";
    _xmlName = "nsclient-collection";
    _elementDefinition = true;

    // -- 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

    // -- _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() {
          @Override
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            NsclientCollection target = (NsclientCollection) object;
            return target.getName();
          }

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

          @Override
          @SuppressWarnings("unused")
          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    desc.setSchemaType("string");
    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
      org.exolab.castor.xml.validators.StringValidator typeValidator;
      typeValidator = new org.exolab.castor.xml.validators.StringValidator();
      fieldValidator.setValidator(typeValidator);
      typeValidator.setWhiteSpace("preserve");
    }
    desc.setValidator(fieldValidator);
    // -- initialize element descriptors

    // -- _rrd
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            org.opennms.netmgt.config.nsclient.Rrd.class,
            "_rrd",
            "rrd",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          @Override
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            NsclientCollection target = (NsclientCollection) object;
            return target.getRrd();
          }

          @Override
          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              NsclientCollection target = (NsclientCollection) object;
              target.setRrd((org.opennms.netmgt.config.nsclient.Rrd) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          @Override
          @SuppressWarnings("unused")
          public java.lang.Object newInstance(java.lang.Object parent) {
            return new org.opennms.netmgt.config.nsclient.Rrd();
          }
        };
    desc.setSchemaType("org.opennms.netmgt.config.nsclient.Rrd");
    desc.setHandler(handler);
    desc.setNameSpaceURI("http://xmlns.opennms.org/xsd/config/nsclient-datacollection");
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);
    addSequenceElement(desc);

    // -- validation code for: _rrd
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
    // -- _wpms
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            org.opennms.netmgt.config.nsclient.Wpms.class,
            "_wpms",
            "wpms",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          @Override
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            NsclientCollection target = (NsclientCollection) object;
            return target.getWpms();
          }

          @Override
          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              NsclientCollection target = (NsclientCollection) object;
              target.setWpms((org.opennms.netmgt.config.nsclient.Wpms) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          @Override
          @SuppressWarnings("unused")
          public java.lang.Object newInstance(java.lang.Object parent) {
            return new org.opennms.netmgt.config.nsclient.Wpms();
          }
        };
    desc.setSchemaType("org.opennms.netmgt.config.nsclient.Wpms");
    desc.setHandler(handler);
    desc.setNameSpaceURI("http://xmlns.opennms.org/xsd/config/nsclient-datacollection");
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);
    addSequenceElement(desc);

    // -- validation code for: _wpms
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
  }
Exemplo n.º 19
0
/*
Exemplo n.º 20
0
  public MetadataTypeDescriptor() {
    super();
    _nsURI = "http://www.topografix.com/GPX/1/1";
    _xmlName = "metadataType";
    _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

    // -- _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() {
          @Override
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            MetadataType target = (MetadataType) object;
            return target.getName();
          }

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

          @Override
          @SuppressWarnings("unused")
          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    desc.setSchemaType("string");
    desc.setHandler(handler);
    desc.setNameSpaceURI("http://www.topografix.com/GPX/1/1");
    desc.setMultivalued(false);
    addFieldDescriptor(desc);
    addSequenceElement(desc);

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

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

          @Override
          @SuppressWarnings("unused")
          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    desc.setSchemaType("string");
    desc.setHandler(handler);
    desc.setNameSpaceURI("http://www.topografix.com/GPX/1/1");
    desc.setMultivalued(false);
    addFieldDescriptor(desc);
    addSequenceElement(desc);

    // -- validation code for: _desc
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
      org.exolab.castor.xml.validators.StringValidator typeValidator;
      typeValidator = new org.exolab.castor.xml.validators.StringValidator();
      fieldValidator.setValidator(typeValidator);
      typeValidator.setWhiteSpace("preserve");
    }
    desc.setValidator(fieldValidator);
    // -- _author
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            net.sourceforge.gpstools.gpx.Author.class,
            "_author",
            "author",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          @Override
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            MetadataType target = (MetadataType) object;
            return target.getAuthor();
          }

          @Override
          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              MetadataType target = (MetadataType) object;
              target.setAuthor((net.sourceforge.gpstools.gpx.Author) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          @Override
          @SuppressWarnings("unused")
          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    desc.setSchemaType("net.sourceforge.gpstools.gpx.Author");
    desc.setHandler(handler);
    desc.setNameSpaceURI("http://www.topografix.com/GPX/1/1");
    desc.setMultivalued(false);
    addFieldDescriptor(desc);
    addSequenceElement(desc);

    // -- validation code for: _author
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
    // -- _copyright
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            net.sourceforge.gpstools.gpx.Copyright.class,
            "_copyright",
            "copyright",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          @Override
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            MetadataType target = (MetadataType) object;
            return target.getCopyright();
          }

          @Override
          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              MetadataType target = (MetadataType) object;
              target.setCopyright((net.sourceforge.gpstools.gpx.Copyright) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          @Override
          @SuppressWarnings("unused")
          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    desc.setSchemaType("net.sourceforge.gpstools.gpx.Copyright");
    desc.setHandler(handler);
    desc.setNameSpaceURI("http://www.topografix.com/GPX/1/1");
    desc.setMultivalued(false);
    addFieldDescriptor(desc);
    addSequenceElement(desc);

    // -- validation code for: _copyright
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
    // -- _metadataLinkList
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            net.sourceforge.gpstools.gpx.MetadataLink.class,
            "_metadataLinkList",
            "link",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          @Override
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            MetadataType target = (MetadataType) object;
            return target.getMetadataLink();
          }

          @Override
          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              MetadataType target = (MetadataType) object;
              target.addMetadataLink((net.sourceforge.gpstools.gpx.MetadataLink) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          public void resetValue(Object object)
              throws IllegalStateException, IllegalArgumentException {
            try {
              MetadataType target = (MetadataType) object;
              target.removeAllMetadataLink();
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          @Override
          @SuppressWarnings("unused")
          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    desc.setSchemaType("net.sourceforge.gpstools.gpx.MetadataLink");
    desc.setHandler(handler);
    desc.setNameSpaceURI("http://www.topografix.com/GPX/1/1");
    desc.setMultivalued(true);
    addFieldDescriptor(desc);
    addSequenceElement(desc);

    // -- validation code for: _metadataLinkList
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(0);
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
    // -- _time
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.util.Date.class, "_time", "time", org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          @Override
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            MetadataType target = (MetadataType) object;
            return target.getTime();
          }

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

          @Override
          @SuppressWarnings("unused")
          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.setSchemaType("dateTime");
    desc.setHandler(handler);
    desc.setNameSpaceURI("http://www.topografix.com/GPX/1/1");
    desc.setMultivalued(false);
    addFieldDescriptor(desc);
    addSequenceElement(desc);

    // -- validation code for: _time
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
      org.exolab.castor.xml.validators.DateTimeValidator typeValidator;
      typeValidator = new org.exolab.castor.xml.validators.DateTimeValidator();
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- _keywords
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.String.class,
            "_keywords",
            "keywords",
            org.exolab.castor.xml.NodeType.Element);
    desc.setImmutable(true);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          @Override
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            MetadataType target = (MetadataType) object;
            return target.getKeywords();
          }

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

          @Override
          @SuppressWarnings("unused")
          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    desc.setSchemaType("string");
    desc.setHandler(handler);
    desc.setNameSpaceURI("http://www.topografix.com/GPX/1/1");
    desc.setMultivalued(false);
    addFieldDescriptor(desc);
    addSequenceElement(desc);

    // -- validation code for: _keywords
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
      org.exolab.castor.xml.validators.StringValidator typeValidator;
      typeValidator = new org.exolab.castor.xml.validators.StringValidator();
      fieldValidator.setValidator(typeValidator);
      typeValidator.setWhiteSpace("preserve");
    }
    desc.setValidator(fieldValidator);
    // -- _bounds
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            net.sourceforge.gpstools.gpx.Bounds.class,
            "_bounds",
            "bounds",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          @Override
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            MetadataType target = (MetadataType) object;
            return target.getBounds();
          }

          @Override
          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              MetadataType target = (MetadataType) object;
              target.setBounds((net.sourceforge.gpstools.gpx.Bounds) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          @Override
          @SuppressWarnings("unused")
          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    desc.setSchemaType("net.sourceforge.gpstools.gpx.Bounds");
    desc.setHandler(handler);
    desc.setNameSpaceURI("http://www.topografix.com/GPX/1/1");
    desc.setMultivalued(false);
    addFieldDescriptor(desc);
    addSequenceElement(desc);

    // -- validation code for: _bounds
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
    // -- _metadataExtensions
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            net.sourceforge.gpstools.gpx.MetadataExtensions.class,
            "_metadataExtensions",
            "extensions",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          @Override
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            MetadataType target = (MetadataType) object;
            return target.getMetadataExtensions();
          }

          @Override
          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              MetadataType target = (MetadataType) object;
              target.setMetadataExtensions((net.sourceforge.gpstools.gpx.MetadataExtensions) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          @Override
          @SuppressWarnings("unused")
          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    desc.setSchemaType("net.sourceforge.gpstools.gpx.MetadataExtensions");
    desc.setHandler(handler);
    desc.setNameSpaceURI("http://www.topografix.com/GPX/1/1");
    desc.setMultivalued(false);
    addFieldDescriptor(desc);
    addSequenceElement(desc);

    // -- validation code for: _metadataExtensions
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
  }
Exemplo n.º 21
0
 /**
  * Sets the XML Name for the described object.
  *
  * @param xmlName the XML name to use for the described object.
  */
 public void setXMLName(final String xmlName) {
   if (xmlName != null && xmlName.length() > 0) {
     _xmlName = xmlName;
     _desc.setXMLName(xmlName);
   }
 } // -- setXMLName
Exemplo n.º 22
0
  public IntervalDescriptor() {
    super();
    _xmlName = "interval";
    _elementDefinition = true;

    // -- 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

    // -- _ixBug
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.Long.TYPE, "_ixBug", "ixBug", org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Interval target = (Interval) object;
            if (!target.hasIxBug()) {
              return null;
            }
            return new java.lang.Long(target.getIxBug());
          }

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

              target.setIxBug(((java.lang.Long) value).longValue());
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

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

    // -- validation code for: _ixBug
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
      org.exolab.castor.xml.validators.LongValidator typeValidator;
      typeValidator = new org.exolab.castor.xml.validators.LongValidator();
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- _ixInterval
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.Long.TYPE,
            "_ixInterval",
            "ixInterval",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Interval target = (Interval) object;
            if (!target.hasIxInterval()) {
              return null;
            }
            return new java.lang.Long(target.getIxInterval());
          }

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

              target.setIxInterval(((java.lang.Long) value).longValue());
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

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

    // -- validation code for: _ixInterval
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
      org.exolab.castor.xml.validators.LongValidator typeValidator;
      typeValidator = new org.exolab.castor.xml.validators.LongValidator();
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- _dtStart
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.util.Date.class, "_dtStart", "dtStart", org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Interval target = (Interval) object;
            return target.getDtStart();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Interval target = (Interval) object;
              target.setDtStart((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.setSchemaType("dateTime");
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);
    addSequenceElement(desc);

    // -- validation code for: _dtStart
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
      org.exolab.castor.xml.validators.DateTimeValidator typeValidator;
      typeValidator = new org.exolab.castor.xml.validators.DateTimeValidator();
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- _dtEnd
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.util.Date.class, "_dtEnd", "dtEnd", org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Interval target = (Interval) object;
            return target.getDtEnd();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Interval target = (Interval) object;
              target.setDtEnd((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.setSchemaType("dateTime");
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);
    addSequenceElement(desc);

    // -- validation code for: _dtEnd
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
      org.exolab.castor.xml.validators.DateTimeValidator typeValidator;
      typeValidator = new org.exolab.castor.xml.validators.DateTimeValidator();
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
    // -- _sTitle
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.String.class, "_sTitle", "sTitle", 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 {
            Interval target = (Interval) object;
            return target.getSTitle();
          }

          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Interval target = (Interval) object;
              target.setSTitle((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.setSchemaType("string");
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);
    addSequenceElement(desc);

    // -- validation code for: _sTitle
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
      org.exolab.castor.xml.validators.StringValidator typeValidator;
      typeValidator = new org.exolab.castor.xml.validators.StringValidator();
      fieldValidator.setValidator(typeValidator);
      typeValidator.setWhiteSpace("preserve");
    }
    desc.setValidator(fieldValidator);
    // -- _ixPerson
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.Long.TYPE, "_ixPerson", "ixPerson", org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Interval target = (Interval) object;
            if (!target.hasIxPerson()) {
              return null;
            }
            return new java.lang.Long(target.getIxPerson());
          }

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

              target.setIxPerson(((java.lang.Long) value).longValue());
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

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

    // -- validation code for: _ixPerson
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
      org.exolab.castor.xml.validators.LongValidator typeValidator;
      typeValidator = new org.exolab.castor.xml.validators.LongValidator();
      fieldValidator.setValidator(typeValidator);
    }
    desc.setValidator(fieldValidator);
  }
Exemplo n.º 23
0
  public Grp_anyDescriptor() {
    super();
    _nsURI = "http://www.imsglobal.org/xsd/imscp_v1p1";
    _xmlName = "grp.any";
    _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

    // -- _anyObject
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.Object.class,
            "_anyObject",
            (java.lang.String) null,
            org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Grp_any target = (Grp_any) object;
            return target.getAnyObject();
          }

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

          public void resetValue(Object object)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Grp_any target = (Grp_any) object;
              target.removeAllAnyObject();
            } 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.setMatches("*");
    desc.setMultivalued(true);
    addFieldDescriptor(desc);

    // -- validation code for: _anyObject
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    desc.setValidator(fieldValidator);
  }
Exemplo n.º 24
0
  public SystemsDescriptor() {
    super();
    _nsURI = "http://xmlns.opennms.org/xsd/config/datacollection";
    _xmlName = "systems";
    _elementDefinition = true;

    // -- 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

    // -- _systemDefList
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            org.opennms.netmgt.config.datacollection.SystemDef.class,
            "_systemDefList",
            "systemDef",
            org.exolab.castor.xml.NodeType.Element);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          @Override
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Systems target = (Systems) object;
            return target.getSystemDef();
          }

          @Override
          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Systems target = (Systems) object;
              target.addSystemDef((org.opennms.netmgt.config.datacollection.SystemDef) value);
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          @Override
          public void resetValue(Object object)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Systems target = (Systems) object;
              target.removeAllSystemDef();
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          @Override
          @SuppressWarnings("unused")
          public java.lang.Object newInstance(java.lang.Object parent) {
            return new org.opennms.netmgt.config.datacollection.SystemDef();
          }
        };
    desc.setSchemaType("org.opennms.netmgt.config.datacollection.SystemDef");
    desc.setHandler(handler);
    desc.setNameSpaceURI("http://xmlns.opennms.org/xsd/config/datacollection");
    desc.setRequired(true);
    desc.setMultivalued(true);
    addFieldDescriptor(desc);
    addSequenceElement(desc);

    // -- validation code for: _systemDefList
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
    }
    desc.setValidator(fieldValidator);
  }
  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()
Exemplo n.º 26
0
  public DowntimeDescriptor() {
    super();
    _nsURI = "http://xmlns.opennms.org/xsd/config/poller";
    _xmlName = "downtime";
    _elementDefinition = true;
    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

    // -- _begin
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.Long.TYPE, "_begin", "begin", org.exolab.castor.xml.NodeType.Attribute);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          @Override
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Downtime target = (Downtime) object;
            if (!target.hasBegin()) {
              return null;
            }
            return new java.lang.Long(target.getBegin());
          }

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

              target.setBegin(((java.lang.Long) value).longValue());
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          @Override
          @SuppressWarnings("unused")
          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    desc.setSchemaType("long");
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _begin
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
      org.exolab.castor.xml.validators.LongValidator typeValidator;
      typeValidator = new org.exolab.castor.xml.validators.LongValidator();
      fieldValidator.setValidator(typeValidator);
      typeValidator.setMinInclusive(-9223372036854775808L);
      typeValidator.setMaxInclusive(9223372036854775807L);
    }
    desc.setValidator(fieldValidator);
    // -- _end
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.Long.TYPE, "_end", "end", org.exolab.castor.xml.NodeType.Attribute);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          @Override
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Downtime target = (Downtime) object;
            if (!target.hasEnd()) {
              return null;
            }
            return new java.lang.Long(target.getEnd());
          }

          @Override
          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Downtime target = (Downtime) object;
              // if null, use delete method for optional primitives
              if (value == null) {
                target.deleteEnd();
                return;
              }
              target.setEnd(((java.lang.Long) value).longValue());
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          @Override
          @SuppressWarnings("unused")
          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    desc.setSchemaType("long");
    desc.setHandler(handler);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _end
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
      org.exolab.castor.xml.validators.LongValidator typeValidator;
      typeValidator = new org.exolab.castor.xml.validators.LongValidator();
      fieldValidator.setValidator(typeValidator);
      typeValidator.setMinInclusive(-9223372036854775808L);
      typeValidator.setMaxInclusive(9223372036854775807L);
    }
    desc.setValidator(fieldValidator);
    // -- _delete
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.String.class, "_delete", "delete", org.exolab.castor.xml.NodeType.Attribute);
    desc.setImmutable(true);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          @Override
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Downtime target = (Downtime) object;
            return target.getDelete();
          }

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

          @Override
          @SuppressWarnings("unused")
          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    desc.setSchemaType("string");
    desc.setHandler(handler);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _delete
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
      org.exolab.castor.xml.validators.StringValidator typeValidator;
      typeValidator = new org.exolab.castor.xml.validators.StringValidator();
      fieldValidator.setValidator(typeValidator);
      typeValidator.addPattern("(yes|true)");
      typeValidator.setWhiteSpace("preserve");
    }
    desc.setValidator(fieldValidator);
    // -- _interval
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.Long.TYPE, "_interval", "interval", org.exolab.castor.xml.NodeType.Attribute);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          @Override
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Downtime target = (Downtime) object;
            if (!target.hasInterval()) {
              return null;
            }
            return new java.lang.Long(target.getInterval());
          }

          @Override
          public void setValue(java.lang.Object object, java.lang.Object value)
              throws IllegalStateException, IllegalArgumentException {
            try {
              Downtime target = (Downtime) object;
              // if null, use delete method for optional primitives
              if (value == null) {
                target.deleteInterval();
                return;
              }
              target.setInterval(((java.lang.Long) value).longValue());
            } catch (java.lang.Exception ex) {
              throw new IllegalStateException(ex.toString());
            }
          }

          @Override
          @SuppressWarnings("unused")
          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    desc.setSchemaType("long");
    desc.setHandler(handler);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: _interval
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
      org.exolab.castor.xml.validators.LongValidator typeValidator;
      typeValidator = new org.exolab.castor.xml.validators.LongValidator();
      fieldValidator.setValidator(typeValidator);
      typeValidator.setMinInclusive(-9223372036854775808L);
      typeValidator.setMaxInclusive(9223372036854775807L);
    }
    desc.setValidator(fieldValidator);
    // -- initialize element descriptors

  }
Exemplo n.º 27
0
  public AutoacknowledgeDescriptor() {
    super();
    _nsURI = "http://xmlns.opennms.org/xsd/eventconf";
    _xmlName = "autoacknowledge";
    _elementDefinition = true;
    org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
    org.exolab.castor.mapping.FieldHandler handler = null;
    org.exolab.castor.xml.FieldValidator fieldValidator = null;
    // -- _content
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.String.class, "_content", "PCDATA", org.exolab.castor.xml.NodeType.Text);
    desc.setImmutable(true);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          @Override
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            Autoacknowledge target = (Autoacknowledge) object;
            return target.getContent();
          }

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

          @Override
          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    desc.setSchemaType("string");
    desc.setHandler(handler);
    addFieldDescriptor(desc);

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

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

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

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

    // -- validation code for: _state
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
      org.exolab.castor.xml.validators.StringValidator typeValidator;
      typeValidator = new org.exolab.castor.xml.validators.StringValidator();
      fieldValidator.setValidator(typeValidator);
      typeValidator.addPattern("(on|off)");
      typeValidator.setWhiteSpace("preserve");
    }
    desc.setValidator(fieldValidator);
    // -- initialize element descriptors

  }
Exemplo n.º 28
0
  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()
Exemplo n.º 29
0
  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()
Exemplo n.º 30
0
  public SelectRecordDescriptor() {
    super();
    setExtendsWithoutFlatten(
        new com.cdoframework.cdolib.database.xsd.descriptors.SQLBlockTypeDescriptor());
    _xmlName = "SelectRecord";
    _elementDefinition = true;
    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

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

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

          @Override
          @SuppressWarnings("unused")
          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    desc.setSchemaType("string");
    desc.setHandler(handler);
    desc.setRequired(true);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: outputId
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    fieldValidator.setMinOccurs(1);
    { // -- local scope
      org.exolab.castor.xml.validators.StringValidator typeValidator;
      typeValidator = new org.exolab.castor.xml.validators.StringValidator();
      fieldValidator.setValidator(typeValidator);
      typeValidator.addPattern("\\{([a-z]|[A-Z])([a-z]|[A-Z]|[0-9]|\\.|\\[|\\])*\\}");
      typeValidator.setWhiteSpace("preserve");
      typeValidator.setMinLength(1);
    }
    desc.setValidator(fieldValidator);
    // -- recordCountId
    desc =
        new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
            java.lang.String.class,
            "recordCountId",
            "RecordCountId",
            org.exolab.castor.xml.NodeType.Attribute);
    desc.setImmutable(true);
    handler =
        new org.exolab.castor.xml.XMLFieldHandler() {
          @Override
          public java.lang.Object getValue(java.lang.Object object) throws IllegalStateException {
            SelectRecord target = (SelectRecord) object;
            return target.getRecordCountId();
          }

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

          @Override
          @SuppressWarnings("unused")
          public java.lang.Object newInstance(java.lang.Object parent) {
            return null;
          }
        };
    desc.setSchemaType("string");
    desc.setHandler(handler);
    desc.setMultivalued(false);
    addFieldDescriptor(desc);

    // -- validation code for: recordCountId
    fieldValidator = new org.exolab.castor.xml.FieldValidator();
    { // -- local scope
      org.exolab.castor.xml.validators.StringValidator typeValidator;
      typeValidator = new org.exolab.castor.xml.validators.StringValidator();
      fieldValidator.setValidator(typeValidator);
      typeValidator.addPattern("(\\{([a-z]|[A-Z])([a-z]|[A-Z]|[0-9]|\\.|\\[|\\])*\\})?");
      typeValidator.setWhiteSpace("preserve");
    }
    desc.setValidator(fieldValidator);
    // -- initialize element descriptors

  }