public static Property getProperty(PropertyBag me, String name) { for (Property prop : me.getProperty()) { if (prop.getName().equals(name)) { return prop; } } return null; }
@Override public Property getProperty(String name) { if (name == null) return null; for(Property property : properties) { if (name.equals(property.getName())) { return property; } } return null; }
private String getValue(List<Property> list, String property) { final Iterator<Property> iterator = list.iterator(); while (iterator.hasNext()) { Property prop = iterator.next(); if (property.equals(prop.getName())) { iterator.remove(); return prop.getValue(); } } return null; }
private String getValue(List<Property> list, String property) { final Iterator<Property> iterator = list.iterator(); while (iterator.hasNext()) { Property prop = iterator.next(); if (property.equals(prop.getName())) { iterator.remove(); return prop.getValue(); } } return null; } }
public static Property getProperty(PropertyBag me, String name) { for (Property prop : me.getProperty()) { if (prop.getName().equals(name)) { return prop; } } return null; }
private Properties transformProps(List<Property> domainProps) { Properties props = new Properties(); for (Property domainProp : domainProps) { props.setProperty(domainProp.getName(), domainProp.getValue()); } return props; } }
public static Property getProperty(PropertyBag me, String name) { for (Property prop : me.getProperty()) { if (prop.getName().equals(name)) { return prop; } } return null; }
public static Property getProperty(PropertyBag me, String name) { for (Property prop : me.getProperty()) { if (prop.getName().equals(name)) { return prop; } } return null; }
@Override public boolean remove(Object o) { Property prop = Property.class.cast(o); return delegate.getProperties().remove(prop.getName()) != null; }
private void checkForOrbPropertyValues(Properties props) { if (orbBean != null) { List<Property> orbBeanProps = orbBean.getProperty(); if (orbBeanProps != null) { for (int i = 0; i < orbBeanProps.size(); i++) { props.setProperty(orbBeanProps.get(i).getName(), orbBeanProps.get(i).getValue()); } } } }
public boolean isValid(final AuthRealm realm, final ConstraintValidatorContext constraintValidatorContext) { if (realm.getClassname().equals(FILE_REALM)) { Property jaas_context = realm.getProperty("jaas-context"); Property file = realm.getProperty("file"); if (jaas_context == null || jaas_context.getName().equals("")) return false; if (file == null || file.getName().equals("")) return false; } return true; } }
@Override public boolean contains(Object o) { if (!(o instanceof Property)) { return false; } Property prop = Property.class.cast(o); String value = delegate.getProperties().getProperty(prop.getName()); return value != null && value.equals(prop.getValue()); }
public boolean isValid(final AuthRealm realm, final ConstraintValidatorContext constraintValidatorContext) { if (realm.getClassname().equals(FILE_REALM)) { Property jaas_context = realm.getProperty("jaas-context"); Property file = realm.getProperty("file"); if (jaas_context == null || jaas_context.getName().equals("")) return false; if (file == null || file.getName().equals("")) return false; } return true; } }
private static File fileForProp(final Application instance, final String propName) { for (Property p : instance.getProperty()) { if (p.getName().equals(propName)) { return new File(URI.create(p.getValue())); } } return null; }
public boolean isValid(final AuthRealm realm, final ConstraintValidatorContext constraintValidatorContext) { if (realm.getClassname().equals(SOLARIS_REALM)) { Property jaas_context = realm.getProperty("jaas-context"); if (jaas_context == null || jaas_context.getName().equals("")) return false; } return true; } }
@Override public boolean add(Property e) { Property prop = Property.class.cast(e); Object old = delegate.getProperties().setProperty(prop.getName(), prop.getValue()); return old != null; }
public boolean isValid(final AuthRealm realm, final ConstraintValidatorContext constraintValidatorContext) { if (realm.getClassname().equals(SOLARIS_REALM)) { Property jaas_context = realm.getProperty("jaas-context"); if (jaas_context == null || jaas_context.getName().equals("")) return false; } return true; } }
private static File fileForProp(final Application instance, final String propName) { for (Property p : instance.getProperty()) { if (p.getName().equals(propName)) { return new File(URI.create(p.getValue())); } } return null; } }
public static String archiveType(final Application instance) { for (Property p : instance.getProperty()) { if (p.getName().equals(ARCHIVE_TYPE_PROP_NAME)) { return p.getValue(); } } return null; }
/** * Sets the alternate docroots of this web module from the given * "alternatedocroot_" properties. */ void setAlternateDocBases(List <Property> props) { if (props == null) { return; } for (Property prop : props) { parseAlternateDocBase(prop.getName(), prop.getValue()); } }