2 Replies Latest reply on Jan 19, 2009 12:45 PM by adrian.brock

    How to validate type-value?

    jeff.zhang

      In javaee_5.xsd, Line 399:
      The following are the legal values of env-entry-type-valuesType:
      java.lang.Boolean
      java.lang.Byte
      java.lang.Character
      java.lang.String
      java.lang.Short
      java.lang.Integer
      java.lang.Long
      java.lang.Float
      java.lang.Double
      I can't see any validate code in EnvironmentEntryMetaData.java. Is there any good way?

      I also meet this in connector_1.5.xsd:
      <xsd:complexType name="config-property-typeType">
      <xsd:simpleContent>
      <xsd:restriction base="javaee:string">
      <xsd:enumeration value="java.lang.Boolean"/>
      <xsd:enumeration value="java.lang.String"/>
      <xsd:enumeration value="java.lang.Integer"/>
      <xsd:enumeration value="java.lang.Double"/>
      <xsd:enumeration value="java.lang.Byte"/>
      <xsd:enumeration value="java.lang.Short"/>
      <xsd:enumeration value="java.lang.Long"/>
      <xsd:enumeration value="java.lang.Float"/>
      <xsd:enumeration value="java.lang.Character"/>
      </xsd:restriction>
      </xsd:simpleContent>
      </xsd:complexType>