[jboss-dev-forums] [Design of JBossXB] - How to validate type-value?
jeff.zhang
do-not-reply at jboss.com
Mon Jan 19 10:58:38 EST 2009
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>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4202919#4202919
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4202919
More information about the jboss-dev-forums
mailing list