|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.configuration.protocol.utilities.CfgUtilities
public final class CfgUtilities
CfgUtilities
class is intended as a container for and a point of access
to a set of configuration data utility functionality.
Constructor Summary | |
---|---|
CfgUtilities(CfgMetadata metadata)
|
Method Summary | |
---|---|
void |
applyDelta(org.w3c.dom.Document xmlObject,
org.w3c.dom.Document xmlDelta)
Applies delta object to an object. |
void |
applyDelta(org.w3c.dom.Element xObject,
org.w3c.dom.Element xDelta)
Applies delta object to an object. |
org.w3c.dom.Document |
createDelta(org.w3c.dom.Document originalObject,
org.w3c.dom.Document changedObject)
Creates delta object for an object. |
org.w3c.dom.Element |
createDelta(org.w3c.dom.Element originalObject,
org.w3c.dom.Element changedObject)
Creates delta object for an object. |
static java.lang.String |
enumLiteralToName(java.lang.String name)
|
static org.w3c.dom.Element |
findChildElement(org.w3c.dom.Node container,
java.lang.String name)
|
static org.w3c.dom.Node |
findFirst(java.util.List<org.w3c.dom.Node> list,
java.lang.String name)
|
java.lang.Object |
getAttributeValue(org.w3c.dom.Element parentClass,
java.lang.String attributeName)
|
static java.util.List<org.w3c.dom.Element> |
getChildElements(org.w3c.dom.Node container)
|
static java.lang.String |
getDataNS()
Deprecated. |
static java.util.Calendar |
getDateTime(int utc)
|
static CfgErrorCode |
getErrorCode(int errorCode)
Unpacks configuration server error code. Usage sample: |
static CfgErrorType |
getErrorType(int errorCode)
|
static org.w3c.dom.Element |
getFirstChildElement(org.w3c.dom.Node container)
|
static org.w3c.dom.Element |
getNextSiblingElement(org.w3c.dom.Node element)
|
static java.lang.String |
nameToEnumLiteral(java.lang.String name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CfgUtilities(CfgMetadata metadata)
Method Detail |
---|
@Deprecated public static java.lang.String getDataNS()
public static CfgErrorCode getErrorCode(int errorCode)
void handleCfgSrvError(final EventError evError) { CfgErrorCode errorCode = CfgUtilities.getErrorCode(evError.getErrorCode()); if (errorCode.getErrorType() == CfgErrorType.CFGObjectNotFound) { ... } }
errorCode
- error code from configuration server error event
EventError.getErrorCode()
public static CfgErrorType getErrorType(int errorCode)
public static java.util.Calendar getDateTime(int utc)
public java.lang.Object getAttributeValue(org.w3c.dom.Element parentClass, java.lang.String attributeName)
public void applyDelta(org.w3c.dom.Document xmlObject, org.w3c.dom.Document xmlDelta)
xmlObject
- Is an original object in Document format.
The object is the subject to change by applying the delta.
The root element of the object should be the configuration data wrapper: 'ConfData'.xmlDelta
- Is a delta object in Document format.
The root element of the object should be the configuration data wrapper: 'ConfData'.public void applyDelta(org.w3c.dom.Element xObject, org.w3c.dom.Element xDelta)
xObject
- Is an original object
The object is the subject to change by applying the delta.xDelta
- Is a delta objectpublic org.w3c.dom.Document createDelta(org.w3c.dom.Document originalObject, org.w3c.dom.Document changedObject)
originalObject
- Is an original object.
The root element of the object should be the configuration data wrapper: 'ConfData'.changedObject
- Is the changed object.
The root element of the object should be the configuration data wrapper: 'ConfData'.
public org.w3c.dom.Element createDelta(org.w3c.dom.Element originalObject, org.w3c.dom.Element changedObject)
originalObject
- Is an original object.changedObject
- Is the changed object.
public static java.lang.String enumLiteralToName(java.lang.String name)
public static java.lang.String nameToEnumLiteral(java.lang.String name)
public static org.w3c.dom.Element getFirstChildElement(org.w3c.dom.Node container)
public static org.w3c.dom.Element getNextSiblingElement(org.w3c.dom.Node element)
public static java.util.List<org.w3c.dom.Element> getChildElements(org.w3c.dom.Node container)
public static org.w3c.dom.Element findChildElement(org.w3c.dom.Node container, java.lang.String name)
public static org.w3c.dom.Node findFirst(java.util.List<org.w3c.dom.Node> list, java.lang.String name)
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |