private boolean hasXMLizableChild(PropertyXmlInfo[] ia, MetaDataObject_impl mdo) { for (PropertyXmlInfo pi : ia) { Object val = mdo.getAttributeValue(pi.propertyName); if (val != null && val instanceof XMLizable) { return true; } } return false; }
/** * Dump this metadata object's attributes and values to a String. This is useful for debugging. */ public String toString() { StringBuffer buf = new StringBuffer(); buf.append(getClass().getName()).append(": \n"); MetaDataAttr[] attrList = getAttributes(); for (MetaDataAttr attr : attrList) { buf.append(attr.name + " = "); Object val = getAttributeValue(attr); if (val == null) buf.append("NULL"); else if (val instanceof Object[]) { Object[] array = (Object[]) val; buf.append("Array{"); for (int j = 0; j < array.length; j++) { buf.append(j).append(": ").append(array[j].toString()).append('\n'); } buf.append("}\n"); } else buf.append(val.toString()); buf.append('\n'); } return buf.toString(); }
for (MetaDataAttr attr : attrs) { Object val = getAttributeValue(attr); if (val != null) { if (val instanceof Object[]) {
Object val1 = this.getAttributeValue(attr); Object val2 = mdo.getAttributeValue(attr); if (!valuesEqual(val1, val2)) { return false;
for (MetaDataAttr attr : attrs) { Object val = getAttributeValue(attr); if (val instanceof MetaDataObject) { Object clonedVal = ((MetaDataObject) val).clone();
XMLParser.ParsingOptions aOptions, boolean aValueIsArray) throws InvalidXMLException { Map<String, Object> theMap = (Map<String, Object>) getAttributeValue(aPropName);
Object val = getAttributeValue(attr); if (val instanceof MetaDataObject_impl) { ((MetaDataObject_impl) val).setSourceUrl(aUrl);
&& propClass.getComponentType().isAssignableFrom(valueObj.getClass())) { Object curVal = getAttributeValue(propName); int curLen = curVal == null ? 0 : Array.getLength(curVal); Object newVal = Array.newInstance(propClass.getComponentType(), curLen + 1);
Map<String, Object> theMap = (Map<String, Object>) getAttributeValue(aPropName); Node matchingNode = getMatchingNode(sc, aXmlElementName);
final Serializer serializer = sc.serializer; Object val = getAttributeValue(aPropInfo.propertyName);