Examples of canHandleType()


Examples of com.liferay.util.xml.descriptor.XMLDescriptor.canHandleType()

  public static XMLDescriptor determineType(String doctype, Document root) {
    for (int i = 0; i < REGISTERED_DESCRIPTORS.length; i++) {
      XMLDescriptor descriptor = REGISTERED_DESCRIPTORS[i];

      if (descriptor.canHandleType(doctype, root)) {
        return descriptor;
      }
    }

    return new StrictXMLDescriptor();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.