static public boolean hasType(org.openprovenance.prov.model.QualifiedName type, Collection<org.openprovenance.prov.model.Attribute> attributes) { for (org.openprovenance.prov.model.Attribute attribute: attributes) { switch (attribute.getKind()) { case PROV_TYPE : if (attribute.getValue().equals(type)) { return true; } break; default : break; } } return false; }
static public boolean hasType(org.openprovenance.prov.model.QualifiedName type, Collection<org.openprovenance.prov.model.Attribute> attributes) { for (org.openprovenance.prov.model.Attribute attribute: attributes) { switch (attribute.getKind()) { case PROV_TYPE : if (attribute.getValue().equals(type)) { return true; } break; default : break; } } return false; }
switch (attr.getKind()) { case PROV_LABEL: if (lab!=null) {
switch (attr.getKind()) { case PROV_LABEL: if (lab!=null) {