| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.harvard.hul.ois.jhove.PropertyPath
public class PropertyPath
A description of the location of a Property in a RepInfo object. Properties can be nested under other properties, in lists, maps, or subproperties. This class provides a general way to specify their location. For the moment, only paths by name are fully supported.
| Constructor Summary | |
|---|---|
| PropertyPath()No-argument constructor. | |
| PropertyPath(PropertyPath path)Cloning constructor. | |
| PropertyPath(java.lang.String[] pathArray)String array constructor. | |
| Method Summary | |
|---|---|
|  void | addPropertyIndex(int idx)Adds an index to the path, for an indexed property. | 
|  void | addPropertyKey(java.lang.Object obj)Adds a key to the path, for a property map. | 
|  void | addPropertyName(java.lang.String str)Adds a property name to the path. | 
|  Property | locateProperty(RepInfo info)Walk down the path and return the specified Property. | 
|  Property | locateProperty(RepInfo info,
               boolean trace)Walk down the path and return the specified Property. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public PropertyPath()
public PropertyPath(PropertyPath path)
public PropertyPath(java.lang.String[] pathArray)
| Method Detail | 
|---|
public void addPropertyName(java.lang.String str)
public void addPropertyKey(java.lang.Object obj)
public void addPropertyIndex(int idx)
public Property locateProperty(RepInfo info)
info - The RepInfo object to search
public Property locateProperty(RepInfo info,
                               boolean trace)
info - The RepInfo object to searchtrace - If true, write debugging information
                   to standard output.
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||