org.beanfabrics.meta
Class PathInfo

java.lang.Object
  extended by org.beanfabrics.meta.PathInfo

public class PathInfo
extends java.lang.Object

Author:
Michael Karneim

Method Summary
 boolean equals(java.lang.Object obj)
           
 PathInfo getChild(java.lang.String name)
           
 java.util.Collection<PathInfo> getChildren()
           
 PresentationModelInfo getModelInfo()
           
 java.lang.String getName()
           
 PathInfo getParent()
           
 Path getPath()
           
 PathInfo getPathInfo(Path pathToChild)
           
 PathInfo getRoot()
           
 java.lang.reflect.Type[] getTypeArguments(java.lang.Class genericClass)
          Returns the type arguments that are used to parameterize the given generic class which must be a supertype of this children modelInfo.
 boolean hasChildren()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getParent

public PathInfo getParent()

getModelInfo

public PresentationModelInfo getModelInfo()

getName

public java.lang.String getName()

hasChildren

public boolean hasChildren()

getChildren

public java.util.Collection<PathInfo> getChildren()

getChild

public PathInfo getChild(java.lang.String name)

getPathInfo

public PathInfo getPathInfo(Path pathToChild)

getPath

public Path getPath()

getRoot

public PathInfo getRoot()

getTypeArguments

public java.lang.reflect.Type[] getTypeArguments(java.lang.Class genericClass)
Returns the type arguments that are used to parameterize the given generic class which must be a supertype of this children modelInfo. To find the type arguments this methods tries first the node's indirect reference (via parent and name) to it's property info and returns the type arguments found there. If this can't be resolved it returns the type arguments of this objects model info.

Parameters:
genericClass - the Class of the generic type
Returns:
the type arguments that are used to parameterize the given generic class

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


© 2010 by Michael Karneim, http://www.beanfabrics.org