KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xerces > impl > xs > identity > UniqueOrKey


1 /*
2  * Copyright 2001, 2002,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.impl.xs.identity;
18
19 /**
20  * Schema unique or key identity constraint.
21  * These two kinds of identity constraint have been combined to save
22  * the creation of a separate Vector object for any element that
23  * has both. A short int is used to distinguish which this object is.
24  *
25  * @xerces.internal
26  *
27  * @author Andy Clark, IBM
28  * @version $Id: UniqueOrKey.java,v 1.5 2004/10/06 15:14:51 mrglavas Exp $
29  */

30 public class UniqueOrKey
31     extends IdentityConstraint {
32
33     //
34
// Constructors
35
//
36

37     /** Constructs a unique or a key identity constraint. */
38     public UniqueOrKey(String JavaDoc namespace, String JavaDoc identityConstraintName,
39                        String JavaDoc elemName, short type) {
40         super(namespace, identityConstraintName, elemName);
41         this.type = type;
42     } // <init>(String,String)
43

44     //
45
// Public methods
46
//
47

48 } // class Unique
49
Popular Tags