@Override public String toString() { return "[" + this.getClass().getSimpleName() + ":" + getStringValue() + "]"; }
protected String getPropertyValueAsString(String fieldName) { AbstractSimpleProperty absProp = (AbstractSimpleProperty) getProperty(fieldName); if (absProp == null) { return null; } else { return absProp.getStringValue(); } }
public List<String> getElementsAsString() { List<String> retval; retval = new ArrayList<>(); Iterator<AbstractField> it = getContainer().getAllProperties().iterator(); AbstractSimpleProperty tmp; while (it.hasNext()) { tmp = (AbstractSimpleProperty) it.next(); retval.add(tmp.getStringValue()); } retval = Collections.unmodifiableList(retval); return retval; }
/** * Generic array property removing * * @param fieldValue * the field value */ private void removeUnqualifiedArrayValue(String arrayName, String fieldValue) { ArrayProperty array = (ArrayProperty) getAbstractProperty(arrayName); if (array != null) { List<AbstractField> toDelete = new ArrayList<>(); for (AbstractField abstractField : array.getContainer().getAllProperties()) { AbstractSimpleProperty tmp = (AbstractSimpleProperty) abstractField; if (tmp.getStringValue().equals(fieldValue)) { toDelete.add(tmp); } } for (AbstractField aToDelete : toDelete) { array.getContainer().removeProperty(aToDelete); } } }
esimple.setTextContent(simple.getStringValue()); List<Attribute> attributes = simple.getAllAttributes(); for (Attribute attribute : attributes)
@Override public String toString() { return "[" + this.getClass().getSimpleName() + ":" + getStringValue() + "]"; }
@Override public String toString() { return "[" + this.getClass().getSimpleName() + ":" + getStringValue() + "]"; }
protected String getPropertyValueAsString(String fieldName) { AbstractSimpleProperty absProp = (AbstractSimpleProperty) getProperty(fieldName); if (absProp == null) { return null; } else { return absProp.getStringValue(); } }
protected String getPropertyValueAsString(String fieldName) { AbstractSimpleProperty absProp = (AbstractSimpleProperty) getProperty(fieldName); if (absProp == null) { return null; } else { return absProp.getStringValue(); } }
public List<String> getElementsAsString() { List<String> retval; retval = new ArrayList<String>(); Iterator<AbstractField> it = getContainer().getAllProperties().iterator(); AbstractSimpleProperty tmp; while (it.hasNext()) { tmp = (AbstractSimpleProperty) it.next(); retval.add(tmp.getStringValue()); } retval = Collections.unmodifiableList(retval); return retval; }
public List<String> getElementsAsString() { List<String> retval; retval = new ArrayList<>(); Iterator<AbstractField> it = getContainer().getAllProperties().iterator(); AbstractSimpleProperty tmp; while (it.hasNext()) { tmp = (AbstractSimpleProperty) it.next(); retval.add(tmp.getStringValue()); } retval = Collections.unmodifiableList(retval); return retval; }
/** * Generic array property removing * * @param fieldValue * the field value */ private void removeUnqualifiedArrayValue(String arrayName, String fieldValue) { ArrayProperty array = (ArrayProperty) getAbstractProperty(arrayName); if (array != null) { List<AbstractField> toDelete = new ArrayList<AbstractField>(); for (AbstractField abstractField : array.getContainer().getAllProperties()) { AbstractSimpleProperty tmp = (AbstractSimpleProperty) abstractField; if (tmp.getStringValue().equals(fieldValue)) { toDelete.add(tmp); } } for (AbstractField aToDelete : toDelete) { array.getContainer().removeProperty(aToDelete); } } }
/** * Generic array property removing * * @param fieldValue * the field value */ private void removeUnqualifiedArrayValue(String arrayName, String fieldValue) { ArrayProperty array = (ArrayProperty) getAbstractProperty(arrayName); if (array != null) { List<AbstractField> toDelete = new ArrayList<>(); for (AbstractField abstractField : array.getContainer().getAllProperties()) { AbstractSimpleProperty tmp = (AbstractSimpleProperty) abstractField; if (tmp.getStringValue().equals(fieldValue)) { toDelete.add(tmp); } } for (AbstractField aToDelete : toDelete) { array.getContainer().removeProperty(aToDelete); } } }
esimple.setTextContent(simple.getStringValue()); List<Attribute> attributes = simple.getAllAttributes(); for (Attribute attribute : attributes)
esimple.setTextContent(simple.getStringValue()); List<Attribute> attributes = simple.getAllAttributes(); for (Attribute attribute : attributes)