KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > xml > schema > model > SimpleRestriction


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8
9  * 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-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.xml.schema.model;
21
22 import java.util.Collection JavaDoc;
23 import org.netbeans.modules.xml.xam.dom.NamedComponentReference;
24
25 /**
26  * This interface includes the common facet handling in restrictions.
27  * @author ChrisWebster
28  */

29 public interface SimpleRestriction extends SchemaComponent {
30     public static final String JavaDoc ENUMERATION_PROPERTY = "enumerations";
31     public static final String JavaDoc PATTERN_PROPERTY = "patterns";
32     public static final String JavaDoc MIN_EXCLUSIVE_PROPERTY = "minExclusives";
33     public static final String JavaDoc MIN_LENGTH_PROPERTY = "minLengths";
34     public static final String JavaDoc MAX_LENGTH_PROPERTY = "maxLengths";
35     public static final String JavaDoc FRACTION_DIGITS_PROPERTY = "fractionDigits";
36     public static final String JavaDoc WHITESPACE_PROPERTY = "whitespaces";
37     public static final String JavaDoc MAX_INCLUSIVE_PROPERTY = "maxInclusives";
38     public static final String JavaDoc TOTAL_DIGITS_PROPERTY = "totalDigits";
39     public static final String JavaDoc LENGTH_PROPERTY = "lengths";
40     public static final String JavaDoc MIN_INCLUSIVE_PROPERTY = "minInclusives";
41     public static final String JavaDoc MAX_EXCLUSIVE_PROPERTY = "maxExclusives";
42     public static final String JavaDoc BASE_PROPERTY = "base";
43     public static final String JavaDoc INLINETYPE_PROPERTY = "inlinetype";
44     
45     Collection JavaDoc<TotalDigits> getTotalDigits();
46     void addTotalDigit(TotalDigits td);
47     void removeTotalDigit(TotalDigits td);
48     
49     Collection JavaDoc<MinExclusive> getMinExclusives();
50     void addMinExclusive(MinExclusive me);
51     void removeMinExclusive(MinExclusive me);
52     
53     Collection JavaDoc<MinInclusive> getMinInclusives();
54     void addMinInclusive(MinInclusive me);
55     void removeMinInclusive(MinInclusive me);
56     
57     Collection JavaDoc<MinLength> getMinLengths();
58     void addMinLength(MinLength ml);
59     void removeMinLength(MinLength ml);
60     
61     Collection JavaDoc<MaxLength> getMaxLengths();
62     void addMaxLength(MaxLength ml);
63     void removeMaxLength(MaxLength ml);
64     
65     Collection JavaDoc<Pattern> getPatterns();
66     void addPattern(Pattern p);
67     void removePattern(Pattern p);
68     
69     Collection JavaDoc<MaxExclusive> getMaxExclusives();
70     void addMaxExclusive(MaxExclusive me);
71     void removeMaxExclusive(MaxExclusive me);
72     
73     Collection JavaDoc<MaxInclusive> getMaxInclusives();
74     void addMaxInclusive(MaxInclusive me);
75     void removeMaxInclusive(MaxInclusive me);
76     
77     Collection JavaDoc<Length> getLengths();
78     void addLength(Length me);
79     void removeLength(Length me);
80     
81     Collection JavaDoc<Whitespace> getWhitespaces();
82     void addWhitespace(Whitespace me);
83     void removeWhitespace(Whitespace me);
84     
85     Collection JavaDoc<FractionDigits> getFractionDigits();
86     void addFractionDigits(FractionDigits fd);
87     void removeFractionDigits(FractionDigits fd);
88     
89     Collection JavaDoc<Enumeration> getEnumerations();
90     void addEnumeration(Enumeration fd);
91     void removeEnumeration(Enumeration fd);
92     
93     LocalSimpleType getInlineType();
94     void setInlineType(LocalSimpleType aSimpleType);
95     
96 }
97
Popular Tags