public void register(Other other) { register(other.getType()); register(other.getElementName()); Object val = other.getValue(); registerPotentialQualifiedName(val); }
public void doAction(Other other) { other.setElementName(uniquify(other.getElementName())); other.setType(uniquify(other.getType())); doActionAttributeValue(other); }
public String displaySize(HasOther p) { for (Other o: p.getOther()) { if (SUM_SIZE.equals(o.getElementName())) { return " (" + o.getConvertedValue() + ")"; } } return ""; }
public Other newOther(QualifiedName elementName, Object value, QualifiedName type) { if (value==null) return null; Other res = of.createOther(); res.setType(type); res.setValueFromObject(value); res.setElementName(elementName); return res; }
Hashtable<Integer, Hashtable<Integer,TypedValue>> map2=new Hashtable<Integer, Hashtable<Integer,TypedValue>>(); for (Other attr: entity.getOther()) { String uri = attr.getElementName().getUri(); if (uri.startsWith(APP_VALUE)) { Integer i=Integer.valueOf(uri.substring(APP_VALUE.length())); if (attr.getValue() instanceof QualifiedName) { map.put(i, (QualifiedName) attr.getValue());
public int countOthers(HasOther ann) { int count=0; for (Other obj: ann.getOther()) { if (!(obj.getElementName().getNamespaceURI().startsWith(NamespacePrefixMapper.SHARED_PROV_TOOLBOX_PREFIX))) { count++; } } return count; }
properties.put("fillcolor", o.get(0).getValue().toString()); properties.put("style", "filled"); properties.put("color", o.get(0).getValue().toString()); properties.put("URL", o.get(0).getValue().toString()); String val=o.get(0).getValue().toString(); properties.put("penwidth", val); } else { if (object instanceof Element) { properties.put("width", "" + Double.valueOf(o.get(0).getValue().toString()) * 0.75); String val=o.get(0).getValue().toString(); if (val.length()>MAX_TOOLTIP_LENGTH) { val=val.substring(0,Math.min(val.length(), MAX_TOOLTIP_LENGTH))+" ...";
Hashtable<Integer, Hashtable<Integer,TypedValue>> map2=new Hashtable<Integer, Hashtable<Integer,TypedValue>>(); for (Other attr: entity.getOther()) { String uri = attr.getElementName().getUri(); if (uri.startsWith(APP_VALUE)) { Integer i=Integer.valueOf(uri.substring(APP_VALUE.length())); if (attr.getValue() instanceof QualifiedName) { map.put(i, (QualifiedName) attr.getValue());
public int countOthers(HasOther ann) { int count=0; for (Other obj: ann.getOther()) { if (!(obj.getElementName().getNamespaceURI().startsWith(NamespacePrefixMapper.SHARED_PROV_TOOLBOX_PREFIX))) { count++; } } return count; }
public Other newOther(QualifiedName elementName, Object value, QualifiedName type) { if (value==null) return null; Other res = of.createOther(); res.setType(type); res.setValueFromObject(value); res.setElementName(elementName); return res; }
properties.put("fillcolor", o.get(0).getValue().toString()); properties.put("style", "filled"); properties.put("color", o.get(0).getValue().toString()); properties.put("URL", o.get(0).getValue().toString()); String val=o.get(0).getValue().toString(); properties.put("penwidth", val); } else { if (object instanceof Element) { properties.put("width", "" + Double.valueOf(o.get(0).getValue().toString()) * 0.75); String val=o.get(0).getValue().toString(); if (val.length()>MAX_TOOLTIP_LENGTH) { val=val.substring(0,Math.min(val.length(), MAX_TOOLTIP_LENGTH))+" ...";
public void register(Other other) { register(other.getType()); register(other.getElementName()); Object val = other.getValue(); registerPotentialQualifiedName(val); }
HasOther stmt2=(HasOther)statement; for (Other other: stmt2.getOther()) { if (LINKED_URI.equals(other.getElementName().getUri())) { QualifiedName id=((Identifiable)statement).getId(); QualifiedName otherId=(QualifiedName) other.getValue(); addEntry(linked, otherId, id); addEntry(linked, id, otherId);
public Hashtable<String,List<Other>> attributesWithNamespace(String namespace) { Hashtable<String,List<Other>> result=namespaceIndex.get(namespace); if (result==null) { result=new Hashtable<String,List<Other>>(); namespaceIndex.put(namespace,result); } for (Other attribute: attributes) { QualifiedName name=attribute.getElementName(); if (namespace.equals(name.getNamespaceURI())) { List<Other> ll=result.get(name.getLocalPart()); if (ll==null) { List<Other> tmp=new LinkedList<Other>(); tmp.add(attribute); result.put(name.getLocalPart(),tmp); } else { ll.add(attribute); } } } return result; } }
public String displaySize(HasOther p) { for (Other o: p.getOther()) { if (SUM_SIZE.equals(o.getElementName())) { return " (" + o.getConvertedValue() + ")"; } } return ""; }
String uri = attr.getElementName().getUri(); if (uri.startsWith(APP_VALUE_v2)) { String index=uri.substring(APP_VALUE_v2.length()); if (tv instanceof Other) { Other o=(Other)tv; String uri = o.getElementName().getUri(); if (uri.startsWith(APP_VALUE_v2)) { Integer i=Integer.valueOf(uri.substring(APP_VALUE_v2.length())); values.add(pf.newAttribute(TMPL_NS, VALUE2+i+"_"+count, TMPL_PREFIX, o.getValue(), o.getType()));
HasOther stmt2=(HasOther)statement; for (Other other: stmt2.getOther()) { if (LINKED_URI.equals(other.getElementName().getUri())) { QualifiedName id=((Identifiable)statement).getId(); QualifiedName otherId=(QualifiedName) other.getValue(); addEntry(linked, otherId, id); addEntry(linked, id, otherId);
public Hashtable<String,List<Other>> attributesWithNamespace(String namespace) { Hashtable<String,List<Other>> result=namespaceIndex.get(namespace); if (result==null) { result=new Hashtable<String,List<Other>>(); namespaceIndex.put(namespace,result); } for (Other attribute: attributes) { QualifiedName name=attribute.getElementName(); if (namespace.equals(name.getNamespaceURI())) { List<Other> ll=result.get(name.getLocalPart()); if (ll==null) { List<Other> tmp=new LinkedList<Other>(); tmp.add(attribute); result.put(name.getLocalPart(),tmp); } else { ll.add(attribute); } } } return result; } }
String uri = attr.getElementName().getUri(); if (uri.startsWith(APP_VALUE_v2)) { String index=uri.substring(APP_VALUE_v2.length()); if (tv instanceof Other) { Other o=(Other)tv; String uri = o.getElementName().getUri(); if (uri.startsWith(APP_VALUE_v2)) { Integer i=Integer.valueOf(uri.substring(APP_VALUE_v2.length())); values.add(pf.newAttribute(TMPL_NS, VALUE2+i+"_"+count, TMPL_PREFIX, o.getValue(), o.getType()));
if (prop.getElementName().getNamespaceURI().startsWith(NamespacePrefixMapper.SHARED_PROV_TOOLBOX_PREFIX)) {