org.compass.core.engine.naming
Class StaticPropertyPath

java.lang.Object
  extended by org.compass.core.engine.naming.StaticPropertyPath
All Implemented Interfaces:
PropertyPath

public class StaticPropertyPath
extends Object
implements PropertyPath

A static path construction, which holds a string representation of the actual path.

Benefits of using this implementation is its fast usage during marshalling/ unmarshalling operations. Downside is its memory footprint.

Author:
kimchy
See Also:
StaticPropertyNamingStrategy

Constructor Summary
StaticPropertyPath(PropertyPath root, String name)
           
StaticPropertyPath(String path)
           
 
Method Summary
 boolean equals(Object object)
           
 String getPath()
          Returns the path.
 int hashCode()
           
 PropertyPath hintStatic()
          Compass path construction process will hint on heavily used path elements that might be better off made static.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticPropertyPath

public StaticPropertyPath(String path)

StaticPropertyPath

public StaticPropertyPath(PropertyPath root,
                          String name)
Method Detail

getPath

public String getPath()
Description copied from interface: PropertyPath
Returns the path. Note, the dynamic path construction might occur.

Specified by:
getPath in interface PropertyPath

hintStatic

public PropertyPath hintStatic()
Description copied from interface: PropertyPath
Compass path construction process will hint on heavily used path elements that might be better off made static. The implementation might decide to create a PropertyPath implementation that is more static in nature.

Specified by:
hintStatic in interface PropertyPath

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object object)
Overrides:
equals in class Object


Copyright (c) 2004-2009 The Compass Project.