private void constraintIncludeDirectory(String dir) { List files = fileResolver.getFiles(dir); for (Object file : files) { String src = (String) file; constraintIncludeFile(src); } }
private void constraintIncludeDirectory(String dir) { List files = fileResolver.getFiles(dir); for (Object file : files) { String src = (String) file; constraintIncludeFile(src); } }
private void securityConstraintInclude(Node constraintInclude) { // Validation allowedAttributesOrElements(constraintInclude, CONSTRAINT_INCLUDE_CHILDREN); String src = getAttributeOrChildElement(constraintInclude, SRC_ATTR); String dir = getAttributeOrChildElement(constraintInclude, DIRECTORY_ATTR); if (src.length() > 0) { constraintIncludeFile(src); } else if (dir.length() > 0) { constraintIncludeDirectory(dir); } else { // The include element ''{0}'' must specify either the ''{1}'' or ''{2}'' attribute. ConfigurationException ex = new ConfigurationException(); ex.setMessage(MISSING_INCLUDE_ATTRIBUTES, new Object[]{constraintInclude.getNodeName(), SRC_ATTR, DIRECTORY_ATTR}); throw ex; } }
private void securityConstraintInclude(Node constraintInclude) { // Validation allowedAttributesOrElements(constraintInclude, CONSTRAINT_INCLUDE_CHILDREN); String src = getAttributeOrChildElement(constraintInclude, SRC_ATTR); String dir = getAttributeOrChildElement(constraintInclude, DIRECTORY_ATTR); if (src.length() > 0) { constraintIncludeFile(src); } else if (dir.length() > 0) { constraintIncludeDirectory(dir); } else { // The include element ''{0}'' must specify either the ''{1}'' or ''{2}'' attribute. ConfigurationException ex = new ConfigurationException(); ex.setMessage(MISSING_INCLUDE_ATTRIBUTES, new Object[]{constraintInclude.getNodeName(), SRC_ATTR, DIRECTORY_ATTR}); throw ex; } }