/** * Get the string representation. * @return The string representation. */ public String toString() { return "["+tupleindex+"]"+"."+(attr==null? "object": attr.getName())+(key==null? "": "["+key+"]"); }
/** * Get the string representation. * @return The string representation. */ public String toString() { return "[java]"+(attr==null? "object": attr.getName()); } }
/** * Get the string representation. * @return The string representation. */ public String toString() { return "["+tupleindex+"]"+"."+(attr==null? "object": attr.getName())+(key==null? "": "["+key+"]"); }
/** * Create a string representation. */ public String toString() { return "Usage("+object+" "+attr.getName()+" <used value>)"; } }
/** * Get the string representation. * @return The string representation. */ public String toString() { return (attr!=null ? "." + attr.getName() : "prefix")+(key==null? "": "["+key+"]"); }
/** * Get the string representation. * @return The string representation. */ public String toString() { return "[java]"+"["+tupleindex+"]"+"."+(attr==null? "object": attr.getName()); } }
/** * Get the string representation. * @return The string representation. */ public String toString() { return ""+(attr==null? "object": attr.getName())+(key==null? "": "["+key+"]"); }
/** * Get the string representation. * @return The string representation. */ public String toString() { return (tupleindex!=-1? "["+tupleindex+"].": "")+ (attr==null? "object": attr.getName())+ (subindex==-1? "": ".["+subindex+"]"); }
/** * Get the string representation. * @return The string representation. */ public String toString() { return "[java]"+"["+tupleindex+"]"+"."+(attr==null? "object": attr.getName()); } }
/** * Get the string representation. * @return The string representation. */ public String toString() { return ".[java]" + attr.getName(); } }
/** * Get the string representation. * @return The string representation. */ public String toString() { return "[java]"+(attr==null? "object": attr.getName()); } }
/** * Get the string representation. * @return The string representation. */ public String toString() { return ""+(attr==null? "object": attr.getName())+(key==null? "": "["+key+"]"); }
/** * Create a string representation. */ public String toString() { return "Usage("+object+" "+attr.getName()+" <used value>)"; } }
/** * Get the string representation. * @return The string representation. */ public String toString() { return (tupleindex!=-1? "["+tupleindex+"].": "")+ (attr==null? "object": attr.getName())+ (subindex==-1? "": ".["+subindex+"]"); }
/** * Get the string representation. * @return The string representation. */ public String toString() { return (attr!=null ? "." + attr.getName() : "prefix")+(key==null? "": "["+key+"]"); }
/** * Create a string representation of the attribute node. * @return A string representation of the attribute node. */ public String toString() { String name = attribute.getName(); int idx = name.indexOf("has_"); if(idx!=-1) name = name.substring(idx+4); return name; //+" (attribute)"; }
/** * Get the name of a property. * Cuts off all before "_has_" (hack?!). */ protected String getPropertyName(Object property) { String ret = ((OAVAttributeType)property).getName(); int idx = ret.indexOf("_has_"); if(idx!=-1) ret = ret.substring(idx+5); return ret; }
/** * Add an attribute type description. * @param attribute The OAV attribute type. */ protected void addAttributeType(OAVAttributeType attribute) { if(attributes==null) attributes = new HashMap(); if(attributes.containsKey(attribute.getName())) throw new RuntimeException("Attribute already defined: "+attribute); attributes.put(attribute.getName(), attribute); }
/** * Get the name of a property. * Cuts off all before "_has_" (hack?!). */ protected String getPropertyName(Object property) { String ret = ((OAVAttributeType)property).getName(); int idx = ret.indexOf("_has_"); if(idx!=-1) ret = ret.substring(idx+5); return ret; }
/** * Add an attribute type description. * @param attribute The OAV attribute type. */ protected void addAttributeType(OAVAttributeType attribute) { if(attributes==null) attributes = new HashMap(); if(attributes.containsKey(attribute.getName())) throw new RuntimeException("Attribute already defined: "+attribute); attributes.put(attribute.getName(), attribute); }