286N/A/*
286N/A * reserved comment block
286N/A * DO NOT REMOVE OR ALTER!
286N/A */
286N/A/*
286N/A * Copyright 2001, 2002,2004,2005 The Apache Software Foundation.
286N/A *
286N/A * Licensed under the Apache License, Version 2.0 (the "License");
286N/A * you may not use this file except in compliance with the License.
286N/A * You may obtain a copy of the License at
286N/A *
286N/A * http://www.apache.org/licenses/LICENSE-2.0
286N/A *
286N/A * Unless required by applicable law or agreed to in writing, software
286N/A * distributed under the License is distributed on an "AS IS" BASIS,
286N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
286N/A * See the License for the specific language governing permissions and
286N/A * limitations under the License.
286N/A */
286N/A
286N/Apackage com.sun.org.apache.xerces.internal.impl.xs.identity;
286N/A
286N/Aimport com.sun.org.apache.xerces.internal.xs.ShortList;
286N/A
286N/A
286N/A/**
286N/A * Interface for storing values associated to an identity constraint.
286N/A * Each value stored corresponds to a field declared for the identity
286N/A * constraint. One instance of an object implementing this interface
286N/A * is created for each identity constraint per element declaration in
286N/A * the instance document to store the information for this identity
286N/A * constraint.
286N/A * <p>
286N/A * <strong>Note:</strong> The component performing identity constraint
286N/A * collection and validation is responsible for providing an
286N/A * implementation of this interface. The component is also responsible
286N/A * for performing the necessary checks required by each type of identity
286N/A * constraint.
286N/A *
286N/A * @xerces.internal
286N/A *
286N/A * @author Andy Clark, IBM
286N/A *
286N/A */
286N/Apublic interface ValueStore {
286N/A
286N/A //
286N/A // ValueStore methods
286N/A //
286N/A
286N/A /**
286N/A * Adds the specified value to the value store.
286N/A *
286N/A * @param field The field associated to the value. This reference
286N/A * is used to ensure that each field only adds a value
286N/A * once within a selection scope.
286N/A * @param actualValue The value to add.
286N/A */
286N/A public void addValue(Field field, Object actualValue, short valueType, ShortList itemValueType);
286N/A
286N/A /**
286N/A * Since the valueStore will have access to an error reporter, this
286N/A * allows it to be called appropriately.
286N/A * @param key the key of the localized error message
286N/A * @param args the list of arguments for substitution.
286N/A */
286N/A public void reportError(String key, Object[] args);
286N/A
286N/A
286N/A} // interface ValueStore