/** * Find named property. This may have been specified * in the dataset or an enclosing parent element. * * @param name match on this name * @return string value of property or null if not exist. */ public String findProperty(String name) { InvProperty result = null; for (InvProperty p : getProperties()) { if (p.getName().equals(name)) result = p; } return (result == null) ? null : result.getValue(); }
/** * Find named property. This may have been specified * in the dataset or an enclosing parent element. * * @param name match on this name * @return string value of property or null if not exist. */ public String findProperty(String name) { InvProperty result = null; for (InvProperty p : getProperties()) { if (p.getName().equals(name)) result = p; } return (result == null) ? null : result.getValue(); }
/** * Finds the <b>first</b> property declared in the dataset with the given name. If a property other than the first * is desired, it can be obtained via {@link #getProperties}. * <p> * The property may have been specified in the dataset or in an enclosing parent element. * * @param name the name of the property. * @return the string value of the <b>first</b> property with the given name or * {@code null} if no such property exists. */ // TODO: Change the name of this method to something like "findFirstProperty". // This is an API change, so will have to be done in a major release. public String findProperty(String name) { InvProperty result = null; for (InvProperty p : getProperties()) { if (p.getName().equals(name)) result = p; } return (result == null) ? null : result.getValue(); }
List<InvProperty> properties = datasetNode.getProperties(); for (InvProperty property : properties) { System.out.println(" property.getName() = " + property.getName());
for (InvProperty p : ds.getProperties()) { String name = p.getName(); if (null == ncDataset.findGlobalAttribute(name)) {
for (InvProperty p : ds.getProperties()) { String name = p.getName(); if (null == ncDataset.findGlobalAttribute(name)) {
for (InvProperty p : ds.getProperties()) { String name = p.getName(); if (null == ncDataset.findGlobalAttribute(name)) {