Class ObjectClassUtil
- java.lang.Object
-
- org.identityconnectors.framework.common.objects.ObjectClassUtil
-
public final class ObjectClassUtil extends java.lang.Object
Utility methods to forObjectClass
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
createSpecialName(java.lang.String name)
Create a special name from the specified name.static boolean
isSpecial(ObjectClass objectClass)
Determines whether the specified object class is a special object class.static boolean
isSpecialName(java.lang.String name)
Determines whether the specified object class name is special in the sense ofcreateSpecialName(java.lang.String)
.static boolean
namesEqual(java.lang.String name1, java.lang.String name2)
Compares two object class names for equality.
-
-
-
Method Detail
-
isSpecial
public static boolean isSpecial(ObjectClass objectClass)
Determines whether the specified object class is a special object class. Special object classes includeObjectClass.ACCOUNT
andObjectClass.GROUP
.- Parameters:
objectClass
-ObjectClass
to test for against.- Returns:
- true if the object class is a special one.
- Throws:
java.lang.NullPointerException
- if the object class parameter is null.
-
isSpecialName
public static boolean isSpecialName(java.lang.String name)
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
public static java.lang.String createSpecialName(java.lang.String name)
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
public static boolean namesEqual(java.lang.String name1, java.lang.String name2)
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.
-
-