Class LookupAttributes
- Author:
- Sun Microsystems, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Entry[]Returns a new array containing the elements of theaddAttrSetsparameter (that are not duplicates of any of the elements already in theattrSetsparameter) added to the elements ofattrSets.static Entry[]Returns a new array containing the elements of theaddAttrSetsparameter (that are not duplicates of any of the elements already in theattrSetsparameter) added to the elements ofattrSets.static voidThrows anIllegalArgumentExceptionif any element of the array is not an instance of a validEntryclass (the class is not public, or does not have a no-arg constructor, or has primitive public non-static non-final fields).static booleanTests that twoEntry[]arrays are the same.static booleanTest that two entries are the same type, with the same public fields.static booleanTest if the parametertmplis the same class as, or a superclass of, the parametere, and that every non-nullpublic field oftmplis the same as the corresponding field ofe.static Entry[]Returns a new array that contains copies of the attributes in theattrSetsparameter, modified according to the contents of both theattrSetTmplsparameter and themodAttrSetsparameter.static Entry[]Returns a new array that contains copies of the attributes in theattrSetsparameter, modified according to the contents of both theattrSetTmplsparameter and themodAttrSetsparameter.
-
Method Details
-
add
Returns a new array containing the elements of theaddAttrSetsparameter (that are not duplicates of any of the elements already in theattrSetsparameter) added to the elements ofattrSets. The parameter arrays are not modified.Note that attribute equality is defined in terms of
MarshalledObject.equalson field values. The parameter arrays are not modified.Throws an
IllegalArgumentExceptionif any element ofaddAttrSetsis not an instance of a validEntryclass (the class is not public, or does not have a no-arg constructor, or has primitive public non-static non-final fields). -
add
Returns a new array containing the elements of theaddAttrSetsparameter (that are not duplicates of any of the elements already in theattrSetsparameter) added to the elements ofattrSets. The parameter arrays are not modified.Note that attribute equality is defined in terms of
MarshalledObject.equalson field values. The parameter arrays are not modified.If the
checkSCparameter istrue, then aSecurityExceptionis thrown if any elements of theaddAttrSetsparameter are instanceofServiceControlled.Throws an
IllegalArgumentExceptionif any element ofaddAttrSetsis not an instance of a validEntryclass (the class is not public, or does not have a no-arg constructor, or has primitive public non-static non-final fields). -
modify
Returns a new array that contains copies of the attributes in theattrSetsparameter, modified according to the contents of both theattrSetTmplsparameter and themodAttrSetsparameter. The parameter arrays and theirEntryinstances are not modified.Throws an
IllegalArgumentExceptionif any element ofattrSetTmplsormodAttrSetsis not an instance of a validEntryclass (the class is not public, or does not have a no-arg constructor, or has primitive public non-static non-final fields). -
modify
public static Entry[] modify(Entry[] attrSets, Entry[] attrSetTmpls, Entry[] modAttrSets, boolean checkSC) Returns a new array that contains copies of the attributes in theattrSetsparameter, modified according to the contents of both theattrSetTmplsparameter and themodAttrSetsparameter. The parameter arrays and theirEntryinstances are not modified.If the
checkSCparameter istrue, then aSecurityExceptionis thrown if any elements of theattrSetsparameter that would be deleted or modified are instanceofServiceControlled.Throws an
IllegalArgumentExceptionif any element ofattrSetTmplsormodAttrSetsis not an instance of a validEntryclass (the class is not public, or does not have a no-arg constructor, or has primitive public non-static non-final fields). -
equal
Test that two entries are the same type, with the same public fields. Attribute equality is defined in terms ofMarshalledObject.equalson field values. -
equal
Tests that twoEntry[]arrays are the same. -
matches
Test if the parametertmplis the same class as, or a superclass of, the parametere, and that every non-nullpublic field oftmplis the same as the corresponding field ofe. Attribute equality is defined in terms ofMarshalledObject.equalson field values. -
check
Throws anIllegalArgumentExceptionif any element of the array is not an instance of a validEntryclass (the class is not public, or does not have a no-arg constructor, or has primitive public non-static non-final fields). IfnullOKisfalse, and any element of the array isnull, aNullPointerExceptionis thrown.
-