com.jaxfront.core.type
Class TypeHelper

java.lang.Object
  extended by com.jaxfront.core.type.TypeHelper

public class TypeHelper
extends java.lang.Object


Constructor Summary
TypeHelper()
           
 
Method Summary
static ComplexGroup getComplexGroupParent(Type type)
          Returns the complex group parent of the passing type if any.
static ComplexGroupList getDirectComplexGroupParent(Type type)
          Returns the direcect complex group parent of the passing type if any.
static SimpleGroup getSimpleGroupParent(Type type)
          Returns the simple group parent of the passing type if any.
static java.util.List getTypeChildren(Type aType, java.lang.String name)
          Returns all ChildTypes (recursive) for a given name!
static void getTypeChildren(Type aType, java.lang.String name, java.util.List result)
          Returns all ChildTypes for a given name!
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeHelper

public TypeHelper()
Method Detail

getComplexGroupParent

public static ComplexGroup getComplexGroupParent(Type type)
Returns the complex group parent of the passing type if any.

Parameters:
type - to lookup for a complex parent

getDirectComplexGroupParent

public static ComplexGroupList getDirectComplexGroupParent(Type type)
Returns the direcect complex group parent of the passing type if any.

Parameters:
type - to lookup for a complex parent

getTypeChildren

public static void getTypeChildren(Type aType,
                                   java.lang.String name,
                                   java.util.List result)
Returns all ChildTypes for a given name!

See Also:
Type.getChild(java.lang.String)

getTypeChildren

public static java.util.List getTypeChildren(Type aType,
                                             java.lang.String name)
Returns all ChildTypes (recursive) for a given name!

See Also:
Type.getChild(java.lang.String)

getSimpleGroupParent

public static SimpleGroup getSimpleGroupParent(Type type)
Returns the simple group parent of the passing type if any.

Parameters:
type - to lookup for a simple group parent