org.compass.core.engine.naming
Class StaticPropertyPath
java.lang.Object
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
StaticPropertyPath
public StaticPropertyPath(String path)
StaticPropertyPath
public StaticPropertyPath(PropertyPath root,
String name)
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-2008 The Compass Project.