Lines Matching defs:hdf
34 private final HDF hdf;
36 public DelegatedHdf(HDF hdf) {
37 if (hdf == null) {
40 this.hdf = hdf;
46 * @param hdf the possibly DelegatedHdf to unwrap
49 public static HDF getFullyUnwrappedHdf(HDF hdf) {
50 while (hdf instanceof DelegatedHdf) {
51 hdf = ((DelegatedHdf)hdf).getHdf();
53 return hdf;
57 return hdf;
64 * @param hdf an HDF object that should be wrapped in a new DelegatedHdf
69 protected abstract DelegatedHdf newDelegatedHdf(HDF hdf);
133 HDF hdf = getHdf().getObj(hdfpath);
134 return hdf != null ? newDelegatedHdf(hdf) : null;
138 HDF hdf = getHdf().getChild(hdfpath);
139 return hdf != null ? newDelegatedHdf(hdf) : null;
143 HDF hdf = getHdf().getRootObj();
144 return hdf != null ? newDelegatedHdf(hdf) : null;
147 public boolean belongsToSameRoot(HDF hdf) {
148 return getFullyUnwrappedHdf(this).belongsToSameRoot(getFullyUnwrappedHdf(hdf));
152 HDF hdf = getHdf().getOrCreateObj(hdfpath);
153 return hdf != null ? newDelegatedHdf(hdf) : null;
165 HDF hdf = getHdf().objChild();
166 return hdf != null ? newDelegatedHdf(hdf) : null;
170 HDF hdf = getHdf().objNext();
171 return hdf != null ? newDelegatedHdf(hdf) : null;