01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package org.apache.xerces.xs;
19:
20: /**
21: * This interface represents the Identity-constraint Definition schema
22: * component.
23: */
24: public interface XSIDCDefinition extends XSObject {
25: // Identity Constraints
26: /**
27: * See the definition of <code>key</code> in the identity-constraint
28: * category.
29: */
30: public static final short IC_KEY = 1;
31: /**
32: * See the definition of <code>keyref</code> in the identity-constraint
33: * category.
34: */
35: public static final short IC_KEYREF = 2;
36: /**
37: * See the definition of <code>unique</code> in the identity-constraint
38: * category.
39: */
40: public static final short IC_UNIQUE = 3;
41:
42: /**
43: * [identity-constraint category]: one of key, keyref or unique.
44: */
45: public short getCategory();
46:
47: /**
48: * [selector]: a restricted XPath 1.0 expression.
49: */
50: public String getSelectorStr();
51:
52: /**
53: * [fields]: a non-empty list of restricted XPath 1.0 expressions.
54: */
55: public StringList getFieldStrs();
56:
57: /**
58: * [referenced key]: required if [identity-constraint category] is keyref,
59: * <code>null</code> otherwise. An identity-constraint definition with [
60: * identity-constraint category] equal to key or unique.
61: */
62: public XSIDCDefinition getRefKey();
63:
64: /**
65: * A sequence of [annotations] or an empty <code>XSObjectList</code>.
66: */
67: public XSObjectList getAnnotations();
68:
69: }
|