/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2005 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: QualifiedCollection.java,v 1.3 2008/06/25 05:41:38 qcheng Exp $
*
*/
/**
* Class that wraps a collection and a boolean flag Used to represent ACI target
* attributes and ACI permissions. The boolean flag indicates whether the target
* attributes ( or the permissions ) are exclusive or inclusive
* @supported.api
*/
public class QualifiedCollection {
boolean _exclusive;
/**
* Constructor
*
* @param collection
* the collections of values.
* @param exclusive
* the boolean flag indicating whether the values are excluisive
* or inclusive.
* @supported.api
*/
}
/**
* Compares whether the passed object is equal to this object semantically.
* The objects are considered equal if they have the same collection of
* values, and the same value of exclusive flag
*
* @param object
* the object that is to be compared for equality
* @return <code>true</code> if the passed object is equal to this object,
* <code>false</code> otherwise
* @supported.api
*/
boolean objectsEqual = false;
if (object == this) {
objectsEqual = true;
objectsEqual = true;
}
}
return objectsEqual;
}
/**
* Clones this object
*
* @return the cloned object
* @supported.api
*/
try {
} catch (CloneNotSupportedException ingnored) {
}
}
return theClone;
}
/**
* Sets the collection of values
*
* @param collection
* the collection of values
* @supported.api
*/
}
/**
* Gets the collection of values
*
* @return the collection of values
* @supported.api
*/
return _collection;
}
/**
* Sets the exclusive flag
*
* @param exclusive
* value of exclusive flag
* @supported.api
*/
}
/**
* Gets the value of the exclusive flag
*
* @return the value of the exclusive flag
* @supported.api
*/
public boolean isExclusive() {
return _exclusive;
}
}