Package oracle.rules.sdk2.datamodel
Class DMUtil
java.lang.Object
oracle.rules.sdk2.datamodel.DMUtil
Utility class
-
Method Summary
Modifier and TypeMethodDescriptionstatic URIstatic URLstatic oracle.jbo.server.ViewDefImplfindDefObj(String viewDefName) find ViewDefImpl given the viewDefName for older labels, this will be findDefObject(viewDefName) for newer labels where man 320 customization api is available, this will be ViewDefImpl.findDefObjectWithCustomizer since we don't have the newer labels, we will be using reflect apistatic ElementgetChildElement(Element parentElem, String childTag) getChildElementsByTag(Element element, String name) static StringgetViewDefFullName(oracle.jbo.server.ViewDefImpl vdi) get the full name of view def.static StringgetViewDefName(oracle.jbo.server.ViewDefImpl vdi) get the name of view def.static booleanstatic booleanisValidClassPath(String path) static booleanisValidDirectory(String dirpath) static booleanisValidPath(String filepath) static booleanstatic booleanisWriteablePath(String filepath) static booleanisZipOrJar(String path) static oracle.xml.parser.v2.XMLDocumentparseXMLDocument(String docpath) static booleansameFilePath(String path1, String path2) static booleansameFileURI(URI url1, URI url2)
-
Method Details
-
isValidString
-
isValidPath
-
isValidDirectory
-
isWriteablePath
-
isZipOrJar
-
isValidClassPath
-
getChildElementsByTag
-
getChildElement
-
createURL
-
createURI
-
parseXMLDocument
- Throws:
Exception
-
sameFileURI
-
sameFilePath
-
findDefObj
find ViewDefImpl given the viewDefName for older labels, this will be findDefObject(viewDefName) for newer labels where man 320 customization api is available, this will be ViewDefImpl.findDefObjectWithCustomizer since we don't have the newer labels, we will be using reflect api- Parameters:
vdi-- Returns:
-
getViewDefFullName
get the full name of view def. for older labels, this will be vdi.getFullName() for newer labels where man 320 customization api is available, this will be vdi.getStaticDef().getFullName(); since we don't have the newer labels, we will start by using reflect to get getStaticDef().getFullName() if the getStaticDef() method is not found, we are in older label and we will return vdi.getFullName()- Parameters:
vdi-- Returns:
-
getViewDefName
get the name of view def. for older labels, this will be vdi.getName() for newer labels where man 320 customization api is available, this will be vdi.getStaticDef().getName(); since we don't have the newer labels, we will start by using reflect to get getStaticDef().getName() if the getStaticDef() method is not found, we are in older label and we will return vdi.getName()- Parameters:
vdi-- Returns:
-
isFile
-