/** * Evaluates the registered validators against the given XMLObject and it's children. * * @param xmlObject the XMLObject to validate * * @throws ValidationException thrown if the element is not valid */ public void validate(XMLObject xmlObject) throws ValidationException { if (xmlObject == null) { return; } log.debug("Beginning to verify XMLObject {} and its children", xmlObject.getElementQName()); performValidation(xmlObject); List<XMLObject> children = xmlObject.getOrderedChildren(); if (children != null) { for (XMLObject child : children) { validate(child); } } }
/** * Evaluates the registered validators against the given XMLObject and it's children. * * @param xmlObject the XMLObject to validate * * @throws ValidationException thrown if the element is not valid */ public void validate(XMLObject xmlObject) throws ValidationException { if (xmlObject == null) { return; } log.debug("Beginning to verify XMLObject {} and its children", xmlObject.getElementQName()); performValidation(xmlObject); List<XMLObject> children = xmlObject.getOrderedChildren(); if (children != null) { for (XMLObject child : children) { validate(child); } } }
List<XMLObject> children = xmlObject.getOrderedChildren(); if (children != null) { for (XMLObject child : xmlObject.getOrderedChildren()) { if (child != null) { earliestExpiration = getEarliestExpiration(child, earliestExpiration, now);
/** * Recursive method used to validate all the children of the given XMLObject that implement * {@link ValidatingXMLObject}. Note, this can be a very expensive operation. * * @param xmlObject xmlObject whose descendants should be validated * * @throws ValidationException thrown if one of the child objects do not validate */ protected void validateChildren(XMLObject xmlObject) throws ValidationException { for (XMLObject childObject : xmlObject.getOrderedChildren()) { if (childObject == null) { continue; } if (childObject instanceof ValidatingXMLObject) { ((ValidatingXMLObject) childObject).validate(false); } else { log.debug("{} does not implement ValidatingXMLObject, ignoring it.", childObject.getElementQName()); } if (childObject.hasChildren()) { validateChildren(childObject); } } } }
/** * Recursive method used to validate all the children of the given XMLObject that implement * {@link ValidatingXMLObject}. Note, this can be a very expensive operation. * * @param xmlObject xmlObject whose descendants should be validated * * @throws ValidationException thrown if one of the child objects do not validate */ protected void validateChildren(XMLObject xmlObject) throws ValidationException { for (XMLObject childObject : xmlObject.getOrderedChildren()) { if (childObject == null) { continue; } if (childObject instanceof ValidatingXMLObject) { ((ValidatingXMLObject) childObject).validate(false); } else { log.debug("{} does not implement ValidatingXMLObject, ignoring it.", childObject.getElementQName()); } if (childObject.hasChildren()) { validateChildren(childObject); } } } }
/** * Recursive method used to validate all the children of the given XMLObject that implement * {@link ValidatingXMLObject}. Note, this can be a very expensive operation. * * @param xmlObject xmlObject whose descendants should be validated * * @throws ValidationException thrown if any child objects are not valid */ protected void validateChildren(XMLObject xmlObject) throws ValidationException { for (XMLObject childObject : xmlObject.getOrderedChildren()) { if(childObject == null){ continue; } if (childObject instanceof ValidatingXMLObject) { ((ValidatingXMLObject) childObject).validate(false); } else { log.debug("{} does not implement ValidatingXMLObject, ignoring it.", childObject.getElementQName()); } if (childObject.hasChildren()) { validateChildren(childObject); } } } }
/** * Recursive method used to validate all the children of the given XMLObject that implement * {@link ValidatingXMLObject}. Note, this can be a very expensive operation. * * @param xmlObject xmlObject whose descendants should be validated * * @throws ValidationException thrown if any child objects are not valid */ protected void validateChildren(XMLObject xmlObject) throws ValidationException { for (XMLObject childObject : xmlObject.getOrderedChildren()) { if(childObject == null){ continue; } if (childObject instanceof ValidatingXMLObject) { ((ValidatingXMLObject) childObject).validate(false); } else { log.debug("{} does not implement ValidatingXMLObject, ignoring it.", childObject.getElementQName()); } if (childObject.hasChildren()) { validateChildren(childObject); } } } }
log.trace("Marshalling child elements for XMLObject {}", xmlObject.getElementQName()); List<XMLObject> childXMLObjects = xmlObject.getOrderedChildren(); if (childXMLObjects != null && childXMLObjects.size() > 0) { for (XMLObject childXMLObject : childXMLObjects) {
List<XMLObject> children = getOwner().getOrderedChildren(); if (children != null) { for(XMLObject child : getOwner().getOrderedChildren()) { if (child != null) { Set<Namespace> childNamespaces = child.getNamespaceManager().getAllNamespacesInSubtreeScope();
List<XMLObject> children = getOwner().getOrderedChildren(); if (children != null) { for(XMLObject child : getOwner().getOrderedChildren()) { if (child != null) { Set<Namespace> childNamespaces = child.getNamespaceManager().getAllNamespacesInSubtreeScope();
log.trace("Marshalling child elements for XMLObject {}", xmlObject.getElementQName()); List<XMLObject> childXMLObjects = xmlObject.getOrderedChildren(); if (childXMLObjects != null && childXMLObjects.size() > 0) { for (XMLObject childXMLObject : childXMLObjects) {
List<XMLObject> children = getOwner().getOrderedChildren(); if (children != null) { for(XMLObject child : getOwner().getOrderedChildren()) { if (child != null) { Set<Namespace> childNonVisibleNamespaces = child.getNamespaceManager().getNonVisibleNamespaces();
List<XMLObject> children = getOwner().getOrderedChildren(); if (children != null) { for(XMLObject child : getOwner().getOrderedChildren()) { if (child != null) { Set<Namespace> childNonVisibleNamespaces = child.getNamespaceManager().getNonVisibleNamespaces();