org.chromattic.api
Interface Path<O>


public interface Path<O>

A path representation allowing type safe navigation.

Version:
$Revision$
Author:
Julien Viet

Method Summary
<P> Path<P>
child(PropertyLiteral<O,P> property)
           
<P> Path<P>
child(PropertyLiteral<O,P> property, java.lang.String childName)
           
 O object()
          Returns the object referenced by this path or null if it does not exist.
 Path<?> parent()
          Returns the parent.
<P> Path<P>
parent(PropertyLiteral<O,P> property)
          Returns the parent assuming is has the specified type.
 java.lang.String toString()
          Returns a string representation of the path.
 

Method Detail

parent

Path<?> parent()
Returns the parent.

Returns:
the parent path

parent

<P> Path<P> parent(PropertyLiteral<O,P> property)
Returns the parent assuming is has the specified type.

Type Parameters:
P - the property type
Parameters:
property - the property
Returns:
the parent path

child

<P> Path<P> child(PropertyLiteral<O,P> property,
                  java.lang.String childName)

child

<P> Path<P> child(PropertyLiteral<O,P> property)

object

O object()
Returns the object referenced by this path or null if it does not exist.

Returns:
the referenced object

toString

java.lang.String toString()
Returns a string representation of the path.

Overrides:
toString in class java.lang.Object
Returns:
the string representation


Copyright © 2011 eXo Platform SAS. All Rights Reserved.