com.tensegrity.palowebviewer.modules.paloclient.client.misc
Class XHelper

java.lang.Object
  extended by com.tensegrity.palowebviewer.modules.paloclient.client.misc.XHelper

public class XHelper
extends java.lang.Object


Constructor Summary
XHelper()
           
 
Method Summary
static boolean equalsById(XObject obj1, XObject obj2)
           
static XObject findBackByType(XObject object, int type)
           
static XObject findInHierarchyById(XObject[] objects, java.lang.String id)
           
static XObject findParentByType(XObject object, int type)
           
static XObject getDenotedObject(XRoot root, XPath path)
           
static XRelativePath getPathTo(XPath basePath, XObject object)
           
static boolean hierarchyContains(XObject root, XObject checked)
           
static boolean isInPath(XObject[] path, XObject object)
           
static void setParent(XObject[] children, XObject parent)
           
static int typeNameToId(java.lang.String typeName)
           
static java.lang.String typeToString(int type)
           
static void visitHierarchy(XObject obj, IXVisitor visitor)
           
static void visitHierarchy(XObject obj, IXVisitor visitor, int depth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XHelper

public XHelper()
Method Detail

visitHierarchy

public static void visitHierarchy(XObject obj,
                                  IXVisitor visitor)

visitHierarchy

public static void visitHierarchy(XObject obj,
                                  IXVisitor visitor,
                                  int depth)

setParent

public static void setParent(XObject[] children,
                             XObject parent)

hierarchyContains

public static boolean hierarchyContains(XObject root,
                                        XObject checked)

typeToString

public static java.lang.String typeToString(int type)

typeNameToId

public static int typeNameToId(java.lang.String typeName)

isInPath

public static boolean isInPath(XObject[] path,
                               XObject object)

equalsById

public static boolean equalsById(XObject obj1,
                                 XObject obj2)

findInHierarchyById

public static XObject findInHierarchyById(XObject[] objects,
                                          java.lang.String id)

findParentByType

public static XObject findParentByType(XObject object,
                                       int type)

findBackByType

public static XObject findBackByType(XObject object,
                                     int type)

getDenotedObject

public static XObject getDenotedObject(XRoot root,
                                       XPath path)

getPathTo

public static XRelativePath getPathTo(XPath basePath,
                                      XObject object)