1 /* 2 * reserved comment block 3 * DO NOT REMOVE OR ALTER! 4 */ 5 /* 6 * Licensed to the Apache Software Foundation (ASF) under one or more 7 * contributor license agreements. See the NOTICE file distributed with 8 * this work for additional information regarding copyright ownership. 9 * The ASF licenses this file to You under the Apache License, Version 2.0 10 * (the "License"); you may not use this file except in compliance with 11 * the License. You may obtain a copy of the License at 12 * 13 * http://www.apache.org/licenses/LICENSE-2.0 14 * 15 * Unless required by applicable law or agreed to in writing, software 16 * distributed under the License is distributed on an "AS IS" BASIS, 17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 * See the License for the specific language governing permissions and 19 * limitations under the License. 20 */ 21 22 package com.sun.org.apache.xerces.internal.impl.xs.identity; 23 24 /** 25 * Schema unique or key identity constraint. 26 * These two kinds of identity constraint have been combined to save 27 * the creation of a separate Vector object for any element that 28 * has both. A short int is used to distinguish which this object is. 29 * 30 * @xerces.internal 31 * 32 * @author Andy Clark, IBM 33 */ 34 public class UniqueOrKey 35 extends IdentityConstraint { 36 37 // 38 // Constructors 39 // 40 41 /** Constructs a unique or a key identity constraint. */ 42 public UniqueOrKey(String namespace, String identityConstraintName, 43 String elemName, short type) { 44 super(namespace, identityConstraintName, elemName); 45 this.type = type; 46 } // <init>(String,String) 47 48 // 49 // Public methods 50 // 51 52 } // class Unique