public void output(Appendable buf, Set<String> typesInProcess) throws AtlasException { try { buf.append("{name=").append(name); buf.append(", dataType="); dataType.output(buf, typesInProcess); buf.append(", multiplicity=").append(multiplicity.toString()); buf.append(", isComposite=").append(Boolean.toString(isComposite)); buf.append(", isUnique=").append(Boolean.toString(isUnique)); buf.append(", isIndexable=").append(Boolean.toString(isIndexable)); buf.append(", reverseAttributeName=").append(reverseAttributeName); buf.append('}'); } catch(IOException e) { throw new AtlasException(e); } }
public void output(Appendable buf, Set<String> typesInProcess) throws AtlasException { try { buf.append("{name=").append(name); buf.append(", dataType="); dataType.output(buf, typesInProcess); buf.append(", multiplicity=").append(multiplicity.toString()); buf.append(", isComposite=").append(Boolean.toString(isComposite)); buf.append(", isUnique=").append(Boolean.toString(isUnique)); buf.append(", isIndexable=").append(Boolean.toString(isIndexable)); buf.append(", reverseAttributeName=").append(reverseAttributeName); buf.append('}'); } catch(IOException e) { throw new AtlasException(e); } }
protected void outputFields(IStruct s, Appendable buf, String fieldPrefix, Set<? extends IStruct> inProcess) throws AtlasException { for (Map.Entry<String, AttributeInfo> e : fields.entrySet()) { String attrName = e.getKey(); AttributeInfo i = e.getValue(); Object aVal = s.get(attrName); TypeUtils.outputVal(attrName + " : ", buf, fieldPrefix); if (aVal != null && aVal instanceof Id) { TypeUtils.outputVal(aVal.toString(), buf, ""); } else { i.dataType().output(aVal, buf, fieldPrefix, inProcess); } TypeUtils.outputVal("\n", buf, ""); } }
protected void outputFields(IStruct s, Appendable buf, String fieldPrefix, Set<? extends IStruct> inProcess) throws AtlasException { for (Map.Entry<String, AttributeInfo> e : fields.entrySet()) { String attrName = e.getKey(); AttributeInfo i = e.getValue(); Object aVal = s.get(attrName); TypeUtils.outputVal(attrName + " : ", buf, fieldPrefix); if (aVal != null && aVal instanceof Id) { TypeUtils.outputVal(aVal.toString(), buf, ""); } else { i.dataType().output(aVal, buf, fieldPrefix, inProcess); } TypeUtils.outputVal("\n", buf, ""); } }