public void toString(ToStringBuilder toStringBuilder) { { List<Annotation> theAnnotation; theAnnotation = this.getAnnotation(); toStringBuilder.append("annotation", theAnnotation); } }
/** * Create an instance of {@link Annotations } * */ public Annotations createAnnotations() { return new Annotations(); }
public boolean equals(Object object) { if (!(object instanceof Annotations)) { return false; } if (this == object) { return true; } final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder(); equals(object, equalsBuilder); return equalsBuilder.isEquals(); }
public int hashCode() { final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder(); hashCode(hashCodeBuilder); return hashCodeBuilder.toHashCode(); }
public String toString() { final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this); toString(toStringBuilder); return toStringBuilder.toString(); }
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));