public void toString(ToStringBuilder toStringBuilder) { { List<Annotation> theAnnotation; theAnnotation = this.getAnnotation(); toStringBuilder.append("annotation", theAnnotation); } }
public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getAnnotation()); }
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof Annotations)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final Annotations that = ((Annotations) object); equalsBuilder.append(this.getAnnotation(), that.getAnnotation()); }
for (Annotation ann: gr.getAnnotations().getAnnotation()) { Annotation ann2=newAnnotation(ann); anns.add(ann2);
l.getAnnotation().addAll(anns); res.setAnnotations(l);
public void embedExternalAnnotations(OPMGraph graph) { IndexedOPMGraph igraph=new IndexedOPMGraph(oFactory,graph); // embed external annotations if (graph.getAnnotations()!=null) { List<Annotation> anns=graph.getAnnotations().getAnnotation(); for (Annotation ann: anns) { String id=(((Identifiable)ann.getLocalSubject()).getId()); EmbeddedAnnotation embedded=oFactory.newEmbeddedAnnotation(ann.getId(), ann.getProperty(), ann.getAccount(), null); Process p=igraph.getProcess(id); if (p!=null) { p.getAnnotation().add(oFactory.compactAnnotation(embedded)); } else { Artifact a=igraph.getArtifact(id); if (a!=null) { a.getAnnotation().add(oFactory.compactAnnotation(embedded)); } else { Agent ag=igraph.getAgent(id); if (ag!=null) { ag.getAnnotation().add(oFactory.compactAnnotation(embedded)); } } } } graph.setAnnotations(null); } }
List<Annotation> annotations=graph.getAnnotations().getAnnotation(); for (Annotation ann: annotations) { mc.addTriples(triplifyAnnotation(ann));