KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xerces > xs > XSIDCDefinition


1 /*
2  * Copyright 2003,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.apache.xerces.xs;
18
19 /**
20  * This interface represents the Identity-constraint Definition schema
21  * component.
22  */

23 public interface XSIDCDefinition extends XSObject {
24     // Identity Constraints
25
/**
26      * See the definition of <code>key</code> in the identity-constraint
27      * category.
28      */

29     public static final short IC_KEY = 1;
30     /**
31      * See the definition of <code>keyref</code> in the identity-constraint
32      * category.
33      */

34     public static final short IC_KEYREF = 2;
35     /**
36      * See the definition of <code>unique</code> in the identity-constraint
37      * category.
38      */

39     public static final short IC_UNIQUE = 3;
40
41     /**
42      * [identity-constraint category]: one of key, keyref or unique.
43      */

44     public short getCategory();
45
46     /**
47      * [selector]: a restricted XPath 1.0 expression.
48      */

49     public String JavaDoc getSelectorStr();
50
51     /**
52      * [fields]: a non-empty list of restricted XPath 1.0 expressions.
53      */

54     public StringList getFieldStrs();
55
56     /**
57      * [referenced key]: required if [identity-constraint category] is keyref,
58      * <code>null</code> otherwise. An identity-constraint definition with [
59      * identity-constraint category] equal to key or unique.
60      */

61     public XSIDCDefinition getRefKey();
62
63     /**
64      * A set of [annotations] if it exists, otherwise an empty
65      * <code>XSObjectList</code>.
66      */

67     public XSObjectList getAnnotations();
68
69 }
70
Popular Tags