com.evolveum.midpoint.common
Class Utils
java.lang.Object
com.evolveum.midpoint.common.Utils
public class Utils
- extends java.lang.Object
- Author:
- Igor Farinic
Constructor Summary |
Utils()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utils
public Utils()
getPropertyName
public static java.lang.String getPropertyName(java.lang.String name)
getPropertySilent
public static java.lang.String getPropertySilent(java.lang.Object object,
java.lang.String property)
copyPropertiesSilent
public static void copyPropertiesSilent(java.lang.Object target,
java.lang.Object source)
haveToResolve
public static boolean haveToResolve(java.lang.String propertyName,
PropertyReferenceListType resolve)
unresolveResource
public static void unresolveResource(ResourceObjectShadowType shadow)
unresolveResourceForAccounts
public static void unresolveResourceForAccounts(java.util.List<? extends ResourceObjectShadowType> shadows)
fillPropertyReference
public static PropertyReferenceType fillPropertyReference(java.lang.String resolve)
getResolveResourceList
public static PropertyReferenceListType getResolveResourceList()
getNodeOid
public static java.lang.String getNodeOid(org.w3c.dom.Node node)
cleanupUtf
public static java.lang.String cleanupUtf(java.lang.String bad)
- Removing non-printable UTF characters from the string.
This is not really used now. It was done as a kind of prototype for
filters. But may come handy and it in fact tests that the pattern is
doing what expected, so it may be useful.
- Parameters:
bad
- string with bad chars
- Returns:
- string without bad chars
isValidXmlCodepoint
public static boolean isValidXmlCodepoint(int cp)
- According to XML specification, section 2.2:
http://www.w3.org/TR/REC-xml/
- Parameters:
c
-
- Returns:
Copyright © 2011 evolveum. All Rights Reserved.