01: /*
02: * The contents of this file are subject to the terms of the Common Development
03: * and Distribution License (the License). You may not use this file except in
04: * compliance with the License.
05: *
06: * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
07: * or http://www.netbeans.org/cddl.txt.
08: *
09: * When distributing Covered Code, include this CDDL Header Notice in each file
10: * and include the License file at http://www.netbeans.org/cddl.txt.
11: * If applicable, add the following below the CDDL Header, with the fields
12: * enclosed by brackets [] replaced by your own identifying information:
13: * "Portions Copyrighted [year] [name of copyright owner]"
14: *
15: * The Original Software is NetBeans. The Initial Developer of the Original
16: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
17: * Microsystems, Inc. All Rights Reserved.
18: */
19: package org.netbeans.modules.xslt.model;
20:
21: /**
22: * <pre>
23: * <xs:element name="decimal-format" substitutionGroup="xsl:declaration">
24: * <xs:complexType>
25: * <xs:complexContent>
26: * <xs:extension base="xsl:element-only-versioned-element-type">
27: * <xs:attribute name="name" type="xsl:QName"/>
28: * <xs:attribute name="decimal-separator" type="xsl:char" default="."/>
29: * <xs:attribute name="grouping-separator" type="xsl:char" default=","/>
30: * <xs:attribute name="infinity" type="xs:string" default="Infinity"/>
31: * <xs:attribute name="minus-sign" type="xsl:char" default="-"/>
32: * <xs:attribute name="NaN" type="xs:string" default="NaN"/>
33: * <xs:attribute name="percent" type="xsl:char" default="%"/>
34: * <xs:attribute name="per-mille" type="xsl:char" default="‰"/>
35: * <xs:attribute name="zero-digit" type="xsl:char" default="0"/>
36: * <xs:attribute name="digit" type="xsl:char" default="#"/>
37: * <xs:attribute name="pattern-separator" type="xsl:char" default=";"/>
38: * </xs:extension>
39: * </xs:complexContent>
40: * </xs:complexType>
41: * </xs:element>
42: * </pre>
43: * @author ads
44: *
45: */
46: public interface DecimalFormat extends Declaration, QualifiedNameable {
47:
48: String DECIMAL_SEPARATOR = "decimal-separator"; // NOI18N
49:
50: String INFINITY = "infinity"; // NOI18N
51:
52: String MINUS_SIGN = "minus-sign"; // NOI18N
53:
54: String NAN = "NaN"; // NOI18N
55:
56: String PERCENT = "percent"; // NOI18N
57:
58: String ZERO_DIGIT = "zero-digit"; // NOI18N
59:
60: String PER_MILLE = "per-mille"; // NOI18N
61:
62: String DIGIT = "digit"; // NOI18N
63:
64: String PATTERN_SEPARATOR = "pattern-separator"; // NOI18N
65:
66: String GROUPING_SEPARATOR = "grouping-separator"; // NOI18N
67:
68: /**
69: * @return "infinity" attribute value
70: */
71: String getInfinity();
72:
73: /**
74: * Set "infinity" attribute value.
75: * @param value new value
76: */
77: void setInfinity(String value);
78:
79: /**
80: * @return "NaN" attribute value
81: */
82: String getNaN();
83:
84: /**
85: * Set "NaN" attribute value.
86: * @param nan new value
87: */
88: void setNaN(String nan);
89:
90: }
|