[prev in list] [next in list] [prev in thread] [next in thread]
List: xerces-cvs
Subject: cvs commit: xml-xerces/java/src/org/apache/xerces/impl/dv/xs XSSimpleTypeDecl.java
From: elena () apache ! org
Date: 2003-07-30 14:13:19
[Download RAW message or body]
elena 2003/07/30 07:13:19
Modified: java/src/org/apache/xerces/impl/dv/xs XSSimpleTypeDecl.java
Log:
Apply patch by Peter McCracken: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21966
Revision Changes Path
1.44 +10 -10 xml-xerces/java/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java
Index: XSSimpleTypeDecl.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- XSSimpleTypeDecl.java 23 Jul 2003 20:00:26 -0000 1.43
+++ XSSimpleTypeDecl.java 30 Jul 2003 14:13:18 -0000 1.44
@@ -1905,25 +1905,25 @@
public String getLexicalFacetValue(short facetName) {
switch (facetName) {
case FACET_LENGTH:
- return Integer.toString(fLength);
+ return (fLength == -1)?null:Integer.toString(fLength);
case FACET_MINLENGTH:
- return Integer.toString(fMinLength);
+ return (fMinLength == -1)?null:Integer.toString(fMinLength);
case FACET_MAXLENGTH:
- return Integer.toString(fMaxLength);
+ return (fMaxLength == -1)?null:Integer.toString(fMaxLength);
case FACET_WHITESPACE:
return WS_FACET_STRING[fWhiteSpace];
case FACET_MAXINCLUSIVE:
- return fMaxInclusive.toString();
+ return (fMaxInclusive == null)?null:fMaxInclusive.toString();
case FACET_MAXEXCLUSIVE:
- return fMaxExclusive.toString();
+ return (fMaxExclusive == null)?null:fMaxExclusive.toString();
case FACET_MINEXCLUSIVE:
- return fMinExclusive.toString();
+ return (fMinExclusive == null)?null:fMinExclusive.toString();
case FACET_MININCLUSIVE:
- return fMinInclusive.toString();
+ return (fMinInclusive == null)?null:fMinInclusive.toString();
case FACET_TOTALDIGITS:
- return Integer.toString(fTotalDigits);
+ return (fTotalDigits == -1)?null:Integer.toString(fTotalDigits);
case FACET_FRACTIONDIGITS:
- return Integer.toString(fFractionDigits);
+ return (fFractionDigits == -1)?null:Integer.toString(fFractionDigits);
}
return null;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic