public HadMember newHadMember(QualifiedName c, Collection<QualifiedName> e) { List<QualifiedName> ll=new LinkedList<QualifiedName>(); if (e!=null) { for (QualifiedName q: e) { ll.add(q); } } HadMember res = of.createHadMember(); res.setCollection(c); res.getEntity().addAll(ll); return res; }
public LangString newInternationalizedString(String s) { LangString res = of.createInternationalizedString(); res.setValue(s); return res; }
public Bundle newNamedBundle(QualifiedName id, Collection<Statement> lks) { Bundle res = of.createNamedBundle(); res.setId(id); if (lks != null) { res.getStatement().addAll(lks); } return res; } public Bundle newNamedBundle(QualifiedName id, Namespace namespace, Collection<Statement> statements) {
@SuppressWarnings("rawtypes") Collection statements = decodeBundle(attributeMap); Bundle namedBundle = pf.getObjectFactory().createNamedBundle(); namedBundle.setId(id); namedBundle.setNamespace(ns); Collection<QualifiedName> entities = optionalQualifiedNames("prov:entity", attributeMap); HadMember membership = pf.getObjectFactory().createHadMember(); membership.setCollection(collection); if (entities != null)
/** A factory method to create an instance of a delegation {@link ActedOnBehalfOf} * @param id identifier for the delegation association between delegate and responsible * @param delegate identifier for the agent associated with an activity, acting on behalf of the responsible agent * @param responsible identifier for the agent, on behalf of which the delegate agent acted * @param activity optional identifier of an activity for which the delegation association holds * @return an instance of {@link ActedOnBehalfOf} */ public ActedOnBehalfOf newActedOnBehalfOf(QualifiedName id, QualifiedName delegate, QualifiedName responsible, QualifiedName activity) { ActedOnBehalfOf res = of.createActedOnBehalfOf(); res.setId(id); res.setActivity(activity); res.setDelegate(delegate); res.setResponsible(responsible); return res; }
public Activity newActivity(QualifiedName a) { Activity res = of.createActivity(); res.setId(a); return res; }
public DictionaryMembership newDictionaryMembership(QualifiedName dict, List<Entry> entitySet) { DictionaryMembership res = of.createDictionaryMembership(); res.setDictionary(dict); if (entitySet != null) res.getKeyEntityPair().addAll(entitySet); return res; }
/** * Creates a new {@link Agent} with provided identifier * @param ag a {@link QualifiedName} for the agent * @return an object of type {@link Agent} */ public Agent newAgent(QualifiedName ag) { Agent res = of.createAgent(); res.setId(ag); return res; }
/** A factory method to create an instance of an alternate {@link AlternateOf} * @param entity1 an identifier for the first {@link Entity} * @param entity2 an identifier for the second {@link Entity} * @return an instance of {@link AlternateOf} */ public AlternateOf newAlternateOf(QualifiedName entity1, QualifiedName entity2) { AlternateOf res = of.createAlternateOf(); res.setAlternate1(entity1); res.setAlternate2(entity2); return res; }
public DerivedByInsertionFrom newDerivedByInsertionFrom(QualifiedName id, QualifiedName after, QualifiedName before, List<Entry> keyEntitySet, Collection<Attribute> attributes) { DerivedByInsertionFrom res = of.createDerivedByInsertionFrom(); res.setId(id); res.setNewDictionary(after); res.setOldDictionary(before); if (keyEntitySet != null) res.getKeyEntityPair().addAll(keyEntitySet); setAttributes(res, attributes); return res; }
public DerivedByRemovalFrom newDerivedByRemovalFrom(QualifiedName id, QualifiedName after, QualifiedName before, List<Key> keys, Collection<Attribute> attributes) { DerivedByRemovalFrom res = of.createDerivedByRemovalFrom(); res.setId(id); res.setNewDictionary(after); res.setOldDictionary(before); if (keys != null) res.getKey().addAll(keys); setAttributes(res, attributes); return res; }
@SuppressWarnings("rawtypes") Collection statements = decodeBundle(attributeMap); Bundle namedBundle = pf.getObjectFactory().createNamedBundle(); namedBundle.setId(id); namedBundle.setNamespace(ns); Collection<QualifiedName> entities = optionalQualifiedNames("prov:entity", attributeMap); HadMember membership = pf.getObjectFactory().createHadMember(); membership.setCollection(collection); if (entities != null)
/** A factory method to create an instance of a delegation {@link ActedOnBehalfOf} * @param id identifier for the delegation association between delegate and responsible * @param delegate identifier for the agent associated with an activity, acting on behalf of the responsible agent * @param responsible identifier for the agent, on behalf of which the delegate agent acted * @param activity optional identifier of an activity for which the delegation association holds * @return an instance of {@link ActedOnBehalfOf} */ public ActedOnBehalfOf newActedOnBehalfOf(QualifiedName id, QualifiedName delegate, QualifiedName responsible, QualifiedName activity) { ActedOnBehalfOf res = of.createActedOnBehalfOf(); res.setId(id); res.setActivity(activity); res.setDelegate(delegate); res.setResponsible(responsible); return res; }
public Activity newActivity(QualifiedName a) { Activity res = of.createActivity(); res.setId(a); return res; }
public DictionaryMembership newDictionaryMembership(QualifiedName dict, List<Entry> entitySet) { DictionaryMembership res = of.createDictionaryMembership(); res.setDictionary(dict); if (entitySet != null) res.getKeyEntityPair().addAll(entitySet); return res; }
/** * Creates a new {@link Agent} with provided identifier * @param ag a {@link QualifiedName} for the agent * @return an object of type {@link Agent} */ public Agent newAgent(QualifiedName ag) { Agent res = of.createAgent(); res.setId(ag); return res; }
/** A factory method to create an instance of an alternate {@link AlternateOf} * @param entity1 an identifier for the first {@link Entity} * @param entity2 an identifier for the second {@link Entity} * @return an instance of {@link AlternateOf} */ public AlternateOf newAlternateOf(QualifiedName entity1, QualifiedName entity2) { AlternateOf res = of.createAlternateOf(); res.setAlternate1(entity1); res.setAlternate2(entity2); return res; }
public DerivedByInsertionFrom newDerivedByInsertionFrom(QualifiedName id, QualifiedName after, QualifiedName before, List<Entry> keyEntitySet, Collection<Attribute> attributes) { DerivedByInsertionFrom res = of.createDerivedByInsertionFrom(); res.setId(id); res.setNewDictionary(after); res.setOldDictionary(before); if (keyEntitySet != null) res.getKeyEntityPair().addAll(keyEntitySet); setAttributes(res, attributes); return res; }
public DerivedByRemovalFrom newDerivedByRemovalFrom(QualifiedName id, QualifiedName after, QualifiedName before, List<Key> keys, Collection<Attribute> attributes) { DerivedByRemovalFrom res = of.createDerivedByRemovalFrom(); res.setId(id); res.setNewDictionary(after); res.setOldDictionary(before); if (keys != null) res.getKey().addAll(keys); setAttributes(res, attributes); return res; }
public LangString newInternationalizedString(String s) { LangString res = of.createInternationalizedString(); res.setValue(s); return res; }