public final AbstractField getProperty(String fieldName) { List<AbstractField> list = container.getPropertiesByLocalName(fieldName); // return null if no property if (list == null) { return null; } // return the first element of the list return list.get(0); }
public final ArrayProperty getArrayProperty(String fieldName) { List<AbstractField> list = container.getPropertiesByLocalName(fieldName); // return null if no property if (list == null) { return null; } // return the first element of the list return (ArrayProperty) list.get(0); }
/** * Remove all properties with a specified LocalName. * * @param localName The name for which to remove all. */ public void removePropertiesByName(String localName) { if (properties.isEmpty()) { return; } List<AbstractField> propList = getPropertiesByLocalName(localName); if (propList == null) { return; } for (AbstractField field : propList) { properties.remove(field); } } }
/** * Give the first property found in this container with type and localname expected * * @param localName * the localname of property wanted * @param type * the property type of property wanted * @return the property wanted */ protected AbstractField getFirstEquivalentProperty(String localName, Class<? extends AbstractField> type) { List<AbstractField> list = getPropertiesByLocalName(localName); if (list != null) { for (AbstractField abstractField : list) { if (abstractField.getClass().equals(type)) { return abstractField; } } } return null; }
public final AbstractField getProperty(String fieldName) { List<AbstractField> list = container.getPropertiesByLocalName(fieldName); // return null if no property if (list == null) { return null; } // return the first element of the list return list.get(0); }
public final ArrayProperty getArrayProperty(String fieldName) { List<AbstractField> list = container.getPropertiesByLocalName(fieldName); // return null if no property if (list == null) { return null; } // return the first element of the list return (ArrayProperty) list.get(0); }
public final AbstractField getProperty(String fieldName) { List<AbstractField> list = container.getPropertiesByLocalName(fieldName); // return null if no property if (list == null) { return null; } // return the first element of the list return list.get(0); }
public final ArrayProperty getArrayProperty(String fieldName) { List<AbstractField> list = container.getPropertiesByLocalName(fieldName); // return null if no property if (list == null) { return null; } // return the first element of the list return (ArrayProperty) list.get(0); }
/** * Remove all properties with a specified LocalName. * * @param localName The name for which to remove all. */ public void removePropertiesByName(String localName) { if (properties.isEmpty()) { return; } List<AbstractField> propList = getPropertiesByLocalName(localName); if (propList == null) { return; } for (AbstractField field : propList) { properties.remove(field); } } }
/** * Remove all properties with a specified LocalName. * * @param localName The name for which to remove all. */ public void removePropertiesByName(String localName) { if (properties.isEmpty()) { return; } List<AbstractField> propList = getPropertiesByLocalName(localName); if (propList == null) { return; } for (AbstractField field : propList) { properties.remove(field); } } }
/** * Give the first property found in this container with type and localname expected * * @param localName * the localname of property wanted * @param type * the property type of property wanted * @return the property wanted */ protected AbstractField getFirstEquivalentProperty(String localName, Class<? extends AbstractField> type) { List<AbstractField> list = getPropertiesByLocalName(localName); if (list != null) { for (AbstractField abstractField : list) { if (abstractField.getClass().equals(type)) { return abstractField; } } } return null; }
/** * Give the first property found in this container with type and localname expected * * @param localName * the localname of property wanted * @param type * the property type of property wanted * @return the property wanted */ protected AbstractField getFirstEquivalentProperty(String localName, Class<? extends AbstractField> type) { List<AbstractField> list = getPropertiesByLocalName(localName); if (list != null) { for (AbstractField abstractField : list) { if (abstractField.getClass().equals(type)) { return abstractField; } } } return null; }