Facet classes missing toString method
-------------------------------------
Key: WSCOMMONS-51
URL: http://issues.apache.org/jira/browse/WSCOMMONS-51
Project: WS-Commons
Type: Bug
Components: XmlSchema
Environment: Windows XP SP2
Reporter: Brent Ulbricht
Attachments: patch.txt
When calling the toString(String, int) method on any of the facet classes, the
output prints just the facet class name.
<xsd:simpleType>
<xsd:restriction base
="{http://www.w3.org/2001/XMLSchema}string">
class
org.apache.ws.commons.schema.XmlSchemaLengthFacet
class
org.apache.ws.commons.schema.XmlSchemaPatternFacet
</xsd:restriction>
</xsd:simpleType>
The patch implements a toString(String, int) method for the facets so that the
value of the facet can be seen when using toString(String, int).
<xsd:simpleType>
<xsd:restriction base
="{http://www.w3.org/2001/XMLSchema}string">
<length value="5"
fixed="false"/>
<pattern value="\d{5}"
fixed="false"/>
</xsd:restriction>
</xsd:simpleType>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]