public void doActionValue(HasValue e) { Value val=e.getValue(); if (val!=null) doAction(val); }
public void addValue(HasValue hl) { hl.setValue(pFactory.newValue(pFactory.newQualifiedName(EX_NS, "avalue", EX_PREFIX), name.PROV_QUALIFIED_NAME)); }
public void addValue(HasValue hl) { hl.setValue(pFactory.newValue(pFactory.newQualifiedName(EX_NS, "avalue", EX_PREFIX), name.PROV_QUALIFIED_NAME)); }
public Collection<Attribute> getAttributes(Statement statement) { Collection<Attribute> result=new LinkedList<Attribute>(); if (statement instanceof HasType) result.addAll(((HasType)statement).getType()); if (statement instanceof HasLocation) result.addAll(((HasLocation)statement).getLocation()); if (statement instanceof HasRole) result.addAll(((HasRole)statement).getRole()); if (statement instanceof HasValue) { Value val=((HasValue)statement).getValue(); if (val!=null) { result.add(val); } } if (statement instanceof HasOther) { for (Other o: ((HasOther)statement).getOther()) { result.add((Attribute)o); } } return result; }
case PROV_VALUE: if (aval!=null) { aval.setValue(newValue(aValue,attr.getType()));
public Object convertValueAttributes(HasValue e, List<Attribute> acc) { Value value = e.getValue(); if (value==null) return acc; acc.add(pFactory.newAttribute(Attribute.AttributeKind.PROV_VALUE, value.getValue(), value.getType())); return acc; }
case PROV_VALUE: if (aval!=null) { aval.setValue(newValue(aValue,attr.getType()));
public Collection<Attribute> getAttributes(Statement statement) { Collection<Attribute> result=new LinkedList<Attribute>(); if (statement instanceof HasType) result.addAll(((HasType)statement).getType()); if (statement instanceof HasLocation) result.addAll(((HasLocation)statement).getLocation()); if (statement instanceof HasRole) result.addAll(((HasRole)statement).getRole()); if (statement instanceof HasValue) { Value val=((HasValue)statement).getValue(); if (val!=null) { result.add(val); } } if (statement instanceof HasOther) { for (Other o: ((HasOther)statement).getOther()) { result.add((Attribute)o); } } return result; }
((HasValue) statement).setValue((org.openprovenance.prov.model.Value) decodeAttributeValue(values.get(0), name.PROV_VALUE)); } else {
public Object convertValueAttributes(HasValue e, List<Attribute> acc) { Value value = e.getValue(); if (value==null) return acc; acc.add(pFactory.newAttribute(Attribute.AttributeKind.PROV_VALUE, value.getValue(), value.getType())); return acc; }
((HasValue) statement).setValue((org.openprovenance.prov.model.Value) decodeAttributeValue(values.get(0), name.PROV_VALUE)); } else {
public void emitAnnotations(String id, HasOther statement, PrintStream out) { if (((statement.getOther()==null) || (statement.getOther().isEmpty()) || (countOthers(statement)==0)) && (((HasType)statement).getType().isEmpty()) && (! (statement instanceof HasValue) || ((HasValue)statement).getValue()==null) && (! (statement instanceof HasRole) || ((HasRole)statement).getRole().isEmpty()) && (((HasLabel)statement).getLabel().isEmpty()) ) return; HashMap<String,String> properties=new HashMap<String, String>(); QualifiedName newId=annotationId(((Identifiable)statement).getId(),id); emitElement(newId, addAnnotationShape(statement,addAnnotationColor(statement,addAnnotationLabel(statement,properties))), out); HashMap<String,String> linkProperties=new HashMap<String, String>(); emitRelation(qualifiedNameToString(newId), qualifiedNameToString(((Identifiable)statement).getId()), addAnnotationLinkProperties(statement,linkProperties),out,true); }
public void emitAnnotations(String id, HasOther statement, PrintStream out) { if (((statement.getOther()==null) || (statement.getOther().isEmpty()) || (countOthers(statement)==0)) && (((HasType)statement).getType().isEmpty()) && (! (statement instanceof HasValue) || ((HasValue)statement).getValue()==null) && (! (statement instanceof HasRole) || ((HasRole)statement).getRole().isEmpty()) && (((HasLabel)statement).getLabel().isEmpty()) ) return; HashMap<String,String> properties=new HashMap<String, String>(); QualifiedName newId=annotationId(((Identifiable)statement).getId(),id); emitElement(newId, addAnnotationShape(statement,addAnnotationColor(statement,addAnnotationLabel(statement,properties))), out); HashMap<String,String> linkProperties=new HashMap<String, String>(); emitRelation(qualifiedNameToString(newId), qualifiedNameToString(((Identifiable)statement).getId()), addAnnotationLinkProperties(statement,linkProperties),out,true); }
Value val=((HasValue)ann).getValue(); if (val!=null) { label=label+" <TR>\n";
Value val=((HasValue)ann).getValue(); if (val!=null) { label=label+" <TR>\n";