Package org.jahia.content

Examples of org.jahia.content.JahiaObject


        typeComparators.put(typeName, typeComparator);
    }

    public int compare(Object o1, Object o2) {
        if ( (o1 instanceof JahiaObject) && (o2 instanceof JahiaObject)) {
            JahiaObject leftJahiaObject = (JahiaObject) o1;
            JahiaObject rightJahiaObject = (JahiaObject) o2;
            if (!leftJahiaObject.getObjectKey().getType().equals(rightJahiaObject.getObjectKey().getType())) {
                return leftJahiaObject.getObjectKey().compareTo(rightJahiaObject.getObjectKey());
            }
            // object key types are equals if we got this far, we must now
            // dispatch to a type-specific comparator.
            Comparator typeComparator = (Comparator) typeComparators.get(leftJahiaObject.getObjectKey().getType());
            if (typeComparator == null) {
View Full Code Here

TOP

Related Classes of org.jahia.content.JahiaObject

Copyright © 2018 www.massapicom. 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.