|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.configuration.ConfigurationUtil
public class ConfigurationUtil
A utility class that provides common functionality while validating configuration.
Method Summary | |
---|---|
static java.util.List |
getClonedAttributesList(java.util.List list)
Returns the deep clone of the specified Attributes list. |
static java.util.List |
getClonedList(java.util.List list)
Returns the clone of the specified list. |
static java.util.Set |
getClonedSet(java.util.Set set)
Returns the clone of the specified set. |
static void |
getTypeSafeCollection(java.util.Collection collection,
java.lang.Class type,
java.util.Collection newCollection)
|
static java.util.List |
getTypeSafeList(java.util.List list,
java.lang.Class type)
Checks all elements of the specified list is of the specified type, and returns cloned list. |
static java.util.Set |
getTypeSafeSet(java.util.Set set,
java.lang.Class type)
Checks all elements of the specified set is of the specified type, and returns cloned set. |
static void |
validatePortNumber(int port)
Throws a ConfigurationException if the specified port number
is out of range. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.Set getTypeSafeSet(java.util.Set set, java.lang.Class type)
ConfigurationException
- if the specified set has an element of wrong typepublic static java.util.List getTypeSafeList(java.util.List list, java.lang.Class type)
ConfigurationException
- if the specified set has an element of wrong typepublic static void getTypeSafeCollection(java.util.Collection collection, java.lang.Class type, java.util.Collection newCollection)
public static java.util.Set getClonedSet(java.util.Set set)
public static java.util.List getClonedList(java.util.List list)
public static java.util.List getClonedAttributesList(java.util.List list) throws java.lang.CloneNotSupportedException
Attributes
list.
java.lang.CloneNotSupportedException
public static void validatePortNumber(int port)
ConfigurationException
if the specified port number
is out of range.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |