public class ValidationUtils extends Object implements StringConstants
AMPERSAND, AT, BR, CLASS, CLOSE_ANGLE_BRACKET, CLOSE_BRACE, CLOSE_BRACKET, CLOSE_PRE_CMT, CLOSE_PRE_TAG, CLOSE_SQUARE_BRACKET, COLON, COMMA, CONNECTION_SUFFIX, CURRENT_FOLDER_SYMBOL, DDL, DEFAULT_LOCAL_WORKSPACE_NAME, DIVIDE, DOLLAR_SIGN, DOT, DOT_CHAR, DOT_DOT, DOT_KOMODO, DOUBLE_BACK_SLASH, DRIVE_SEPARATOR, EMPTY_ARRAY, EMPTY_STRING, ENUM, EQUALS, FILE_EXTENSION_SEPARATOR, FILE_NAME_WILDCARD, FINAL, FORWARD_SLASH, HASH, HYPHEN, INTERFACE, JAR, JAVA, JAVA_IO_TMPDIR, JBOSS_SERVER_TMP_DIR, KOMODO, LINE_SEPARATOR, LINE_SEPARATOR_PROPERTY_NAME, LOG, MINUS, MULTIPLY, NBSP, NEW_LINE, OPEN_ANGLE_BRACKET, OPEN_BRACE, OPEN_BRACKET, OPEN_PRE_CMT, OPEN_PRE_TAG, OPEN_SQUARE_BRACKET, PARENT_FOLDER_SYMBOL, PERCENT, PIPE, PLUS, PREFIX_PATTERN, PRIVATE, PUBLIC, QUESTION_MARK, QUOTE_MARK, SEMI_COLON, SERVICE_VDB_SUFFIX, SERVICE_VDB_VIEW_MODEL, SERVICE_VDB_VIEW_SUFFIX, SOURCES, SPACE, SPEECH_MARK, SRC, STAR, STATIC, TAB, TARGET, UNDERSCORE, UNDERSCORE_CHAR, VDB_DEPLOYMENT_SUFFIX, VDB_PREFIX, XML, XML_SUFFIX, ZIP, ZIP_SUFFIX
Modifier and Type | Method and Description |
---|---|
static KomodoObject[] |
getChildrenMatchingTypeAndPropRestrictions(Repository.UnitOfWork transaction,
KomodoObject kObj,
String nodeType,
Map<String,String> propRestrictions)
Get the children of the supplied KomodoObject which match the specified type and property restrictions.
|
static boolean |
objectPassesTypeAndPropertyRestrictions(Repository.UnitOfWork transaction,
KomodoObject kObj,
String ruleNodeType,
Map<String,String> propRestrictions)
Tests KomodoObect to determine if its type and properties pass the type and property restrictions.
|
static boolean |
objectPropsPassRestrictions(Repository.UnitOfWork transaction,
KomodoObject kObj,
Map<String,String> propRestrictions)
Tests KomodoObect to determine if its properties pass the supplied restrictions.
|
static boolean |
objectTypeMatches(Repository.UnitOfWork transaction,
KomodoObject kObj,
String nodeType)
Tests KomodoObect to determine if its type matches the supplied type
|
public static boolean objectPassesTypeAndPropertyRestrictions(Repository.UnitOfWork transaction, KomodoObject kObj, String ruleNodeType, Map<String,String> propRestrictions) throws KException
transaction
- the transactionkObj
- the KomodoObjectruleNodeType
- the node type to verifypropRestrictions
- the property name-values that must be present on the supplied KomodoObjecttrue
if the supplied KomodoObject type matchesKException
- if an error is encountered.public static boolean objectTypeMatches(Repository.UnitOfWork transaction, KomodoObject kObj, String nodeType) throws KException
transaction
- the transactionkObj
- the KomodoObjectnodeType
- the node type to verifytrue
if the supplied KomodoObject type matchesKException
- if an error is encountered.public static boolean objectPropsPassRestrictions(Repository.UnitOfWork transaction, KomodoObject kObj, Map<String,String> propRestrictions) throws KException
transaction
- the transactionkObj
- the KomodoObjectpropRestrictions
- the property name-values that must be present on the supplied KomodoObjecttrue
if the supplied KomodoObject type matchesKException
- if an error is encountered.public static KomodoObject[] getChildrenMatchingTypeAndPropRestrictions(Repository.UnitOfWork transaction, KomodoObject kObj, String nodeType, Map<String,String> propRestrictions) throws KException
transaction
- the transactionkObj
- the KomodoObjectnodeType
- the node type to verifypropRestrictions
- the property name-values that must be present on the childrenKException
- if an error is encountered.Copyright © 2013–2019. All rights reserved.