/** * Get named property. * * @param name match this name * @return String value of Property or null if not exist. */ public String findProperty(String name) { InvProperty result = null; for (InvProperty p : properties) { if (p.getName().equals(name)) result = p; } return (result == null) ? null : result.getValue(); }
public static InvProperty copyProperty( InvProperty property) { return new InvProperty( property.getName(), property.getValue()); } }
/** * InvProperty elements with same name are equal. */ public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof InvProperty)) return false; return o.hashCode() == this.hashCode(); }
protected InvProperty readProperty(Element s) { String name = s.getAttributeValue("name"); String value = s.getAttributeValue("value"); return new InvProperty(name, value); }
/** * Override Object.hashCode() to be consistent with equals. */ public int hashCode() { return getName().hashCode(); }
protected InvProperty readProperty( Element s) { String name = s.getAttributeValue("name"); String value = s.getAttributeValue("value"); return new InvProperty( name, value); }
/** * Override Object.hashCode() to be consistent with equals. */ public int hashCode() { return getName().hashCode(); }
/** * Get named property. * * @param name match this name * @return String value of Property or null if not exist. */ public String findProperty(String name) { InvProperty result = null; for (InvProperty p : properties) { if (p.getName().equals(name)) result = p; } return (result == null) ? null : result.getValue(); }
public static InvProperty copyProperty( InvProperty property) { return new InvProperty( property.getName(), property.getValue()); } }
protected InvProperty readProperty(Element s) { String name = s.getAttributeValue("name"); String value = s.getAttributeValue("value"); return new InvProperty(name, value); }
/** * Override Object.hashCode() to be consistent with equals. */ public int hashCode() { return getName().hashCode(); }
/** * InvProperty elements with same name are equal. */ public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof InvProperty)) return false; return o.hashCode() == this.hashCode(); }
/** * Get named property. * * @param name match this name * @return String value of Property or null if not exist. */ public String findProperty(String name) { InvProperty result = null; for (InvProperty p : properties) { if (p.getName().equals(name)) result = p; } return (result == null) ? null : result.getValue(); }
public static InvProperty copyProperty( InvProperty property) { return new InvProperty( property.getName(), property.getValue()); } }
public void addProperties(List<Attribute> atts) { for (Attribute att : atts) if (att.isString()) properties.add(new InvProperty(att.getShortName(), att.getStringValue())); }
/** * InvProperty elements with same name are equal. */ public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof InvProperty)) return false; return o.hashCode() == this.hashCode(); }
/** * Find named property. * * @param name match 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(); }
public ResultService( InvService service, String accessPointHeader) { super( service.getName(), service.getServiceType().toString(), service.getBase(), service.getSuffix(), service.getDescription()); for ( Iterator it = service.getProperties().iterator(); it.hasNext(); ) { InvProperty prop = (InvProperty) it.next(); addProperty( new InvProperty( prop.getName(), prop.getValue())); // LOOK JC changed } if ( service.getServiceType() == ServiceType.COMPOUND) { for ( Iterator it = service.getServices().iterator(); it.hasNext(); ) { addService( (InvService) it.next() ); // LOOK JC changed } } this.accessPointHeader = accessPointHeader; }
if (debug) System.out.println(errMessage); proxy.addProperty(new InvProperty("HREF ERROR", errMessage)); datasets.add(proxy); init = true; if (debug) System.out.println("HREF ERROR =\n " + href + " err= " + e.getMessage()); proxy.addProperty(new InvProperty("HREF ERROR", href)); datasets.add(proxy); init = true;
/** * Find named property. * * @param name match 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(); }