Class ObjectClassUtil
java.lang.Object
org.identityconnectors.framework.common.objects.ObjectClassUtil
Utility methods to for
ObjectClass.-
Method Summary
Modifier and TypeMethodDescriptionstatic StringcreateSpecialName(String name) Create a special name from the specified name.static booleanisSpecial(ObjectClass objectClass) Determines whether the specified object class is a special object class.static booleanisSpecialName(String name) Determines whether the specified object class name is special in the sense ofcreateSpecialName(java.lang.String).static booleannamesEqual(String name1, String name2) Compares two object class names for equality.
-
Method Details
-
isSpecial
Determines whether the specified object class is a special object class. Special object classes includeObjectClass.ACCOUNTandObjectClass.GROUP.- Parameters:
objectClass-ObjectClassto test for against.- Returns:
- true if the object class is a special one.
- Throws:
NullPointerException- if the object class parameter is null.
-
isSpecialName
Determines whether the specified object class name is special in the sense ofcreateSpecialName(java.lang.String).- Parameters:
name- the object class name to test against.- Returns:
- true if the object class name is special.
-
createSpecialName
Create a special name from the specified name. Add the__string as both prefix and suffix. This indicates that a name identifies a special object class such as a predefined one.- Parameters:
name- the name- Returns:
- the special name
-
namesEqual
Compares two object class names for equality.- Parameters:
name1- the first object class name.name2- the second object class name.- Returns:
- true if the two object class names are equal.
-