Skip navigation links


org.identityconnectors.framework.common.objects
Class ObjectClassUtil

java.lang.Object
  extended by org.identityconnectors.framework.common.objects.ObjectClassUtil


public class ObjectClassUtil
extends java.lang.Object

Utility methods to for ObjectClass.


Method Summary
static java.lang.String createSpecialName(java.lang.String name)
          Create a special name from the specified name.
static boolean isSpecial(ObjectClass oclass)
          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 of createSpecialName(java.lang.String).
static boolean namesEqual(java.lang.String name1, java.lang.String name2)
          Compares two object class names for equality.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

isSpecial

public static boolean isSpecial(ObjectClass oclass)
Determines whether the specified object class is a special object class. Special object classes include ObjectClass.ACCOUNT and ObjectClass.GROUP.
Parameters:
oclass - ObjectClass to test for against.
Returns:
true iff the object class is a special one.
Throws:
java.lang.NullPointerException - iff 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 of createSpecialName(java.lang.String).
Parameters:
name - the object class name to test against.
Returns:
true iff 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.

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 iff the two object class names are equal.

Skip navigation links


Copyright © 2012, Oracle and/or its affiliates. All rights reserved.