Package org.openprovenance.prov.model
Class ProvFactory
- java.lang.Object
-
- org.openprovenance.prov.model.ProvFactory
-
- All Implemented Interfaces:
LiteralConstructor,ModelConstructor,ModelConstructorExtension
- Direct Known Subclasses:
ProvFactory
public abstract class ProvFactory extends Object implements LiteralConstructor, ModelConstructor, ModelConstructorExtension
A stateless factory for PROV objects.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classProvFactory.Cloner
-
Field Summary
Fields Modifier and Type Field Description protected DatatypeFactorydataFactoryprotected ObjectFactoryofstatic StringpackageList
-
Constructor Summary
Constructors Constructor Description ProvFactory(ObjectFactory of)
-
Method Summary
-
-
-
Field Detail
-
packageList
public static final String packageList
- See Also:
- Constant Field Values
-
dataFactory
protected DatatypeFactory dataFactory
-
of
protected final ObjectFactory of
-
-
Constructor Detail
-
ProvFactory
public ProvFactory(ObjectFactory of)
-
-
Method Detail
-
addAttributes
public ActedOnBehalfOf addAttributes(ActedOnBehalfOf from, ActedOnBehalfOf to)
-
addAttributes
public WasAssociatedWith addAttributes(WasAssociatedWith from, WasAssociatedWith to)
-
addAttributes
public WasAttributedTo addAttributes(WasAttributedTo from, WasAttributedTo to)
-
addAttributes
public WasDerivedFrom addAttributes(WasDerivedFrom from, WasDerivedFrom to)
-
addAttributes
public WasEndedBy addAttributes(WasEndedBy from, WasEndedBy to)
-
addAttributes
public WasGeneratedBy addAttributes(WasGeneratedBy from, WasGeneratedBy to)
-
addAttributes
public WasInfluencedBy addAttributes(WasInfluencedBy from, WasInfluencedBy to)
-
addAttributes
public WasInformedBy addAttributes(WasInformedBy from, WasInformedBy to)
-
addAttributes
public WasInvalidatedBy addAttributes(WasInvalidatedBy from, WasInvalidatedBy to)
-
addAttributes
public WasStartedBy addAttributes(WasStartedBy from, WasStartedBy to)
-
addPrimarySourceType
public void addPrimarySourceType(HasType a)
-
addQuotationType
public void addQuotationType(HasType a)
-
addRevisionType
public void addRevisionType(HasType a)
-
addBundleType
public void addBundleType(HasType a)
-
addType
public void addType(HasType a, Object o, QualifiedName type)
-
addType
public void addType(HasType a, QualifiedName type)
-
base64Decoding
public byte[] base64Decoding(String s)
- Specified by:
base64Decodingin interfaceLiteralConstructor
-
base64Encoding
public String base64Encoding(byte[] b)
-
getName
public Name getName()
-
getObjectFactory
public ObjectFactory getObjectFactory()
-
getPackageList
public String getPackageList()
-
getSerializer
public abstract ProvSerialiser getSerializer()
-
getVersion
public String getVersion()
-
hexDecoding
public byte[] hexDecoding(String s)
- Specified by:
hexDecodingin interfaceLiteralConstructor
-
hexEncoding
public String hexEncoding(byte[] b)
-
init
protected void init()
-
newActedOnBehalfOf
public ActedOnBehalfOf newActedOnBehalfOf(ActedOnBehalfOf u)
-
newActedOnBehalfOf
public ActedOnBehalfOf newActedOnBehalfOf(QualifiedName id, QualifiedName delegate, QualifiedName responsible, QualifiedName activity)
A factory method to create an instance of a delegationActedOnBehalfOf- Parameters:
id- identifier for the delegation association between delegate and responsibledelegate- identifier for the agent associated with an activity, acting on behalf of the responsible agentresponsible- identifier for the agent, on behalf of which the delegate agent actedactivity- optional identifier of an activity for which the delegation association holds- Returns:
- an instance of
ActedOnBehalfOf
-
newActedOnBehalfOf
public ActedOnBehalfOf newActedOnBehalfOf(QualifiedName id, QualifiedName delegate, QualifiedName responsible, QualifiedName activity, Collection<Attribute> attributes)
Description copied from interface:ModelConstructorA factory method to create an instance of a delegationActedOnBehalfOf- Specified by:
newActedOnBehalfOfin interfaceModelConstructor- Parameters:
id- identifier for the delegation association between delegate and responsibledelegate- identifier for the agent associated with an activity, acting on behalf of the responsible agentresponsible- identifier for the agent, on behalf of which the delegate agent actedactivity- optional identifier of an activity for which the delegation association holdsattributes- optional set of attributes representing additional information about this delegation association- Returns:
- an instance of
ActedOnBehalfOf
-
newActedOnBehalfOf
public ActedOnBehalfOf newActedOnBehalfOf(QualifiedName id, QualifiedName delegate, QualifiedName responsible)
A factory method to create an instance of a delegationActedOnBehalfOf- Parameters:
id- identifier for the delegation association between delegate and responsibledelegate- identifier for the agent associated with an activity, acting on behalf of the responsible agentresponsible- identifier for the agent, on behalf of which the delegate agent acted- Returns:
- an instance of
ActedOnBehalfOf
-
newActivity
public Activity newActivity(QualifiedName a)
-
newActivity
public Activity newActivity(QualifiedName q, String label)
-
newActivity
public Activity newActivity(QualifiedName id, XMLGregorianCalendar startTime, XMLGregorianCalendar endTime, Collection<Attribute> attributes)
- Specified by:
newActivityin interfaceModelConstructor
-
newAgent
public Agent newAgent(Agent a)
Creates a copy of an agent. The copy is shallow in the sense that the new Agent shares the same attributes as the original Agent.
-
newAgent
public Agent newAgent(QualifiedName ag)
Creates a newAgentwith provided identifier- Parameters:
ag- aQualifiedNamefor the agent- Returns:
- an object of type
Agent
-
newAgent
public Agent newAgent(QualifiedName id, Collection<Attribute> attributes)
Creates a newAgentwith provided identifier and attributes- Specified by:
newAgentin interfaceModelConstructor- Parameters:
id- aQualifiedNamefor the agentattributes- a collection ofAttributefor the agent- Returns:
- an object of type
Agent
-
newAgent
public Agent newAgent(QualifiedName ag, String label)
Creates a newAgentwith provided identifier and label- Parameters:
ag- aQualifiedNamefor the agentlabel- a String for the label property (seeHasLabel.getLabel()- Returns:
- an object of type
Agent
-
newAlternateOf
public AlternateOf newAlternateOf(QualifiedName entity1, QualifiedName entity2)
A factory method to create an instance of an alternateAlternateOf- Specified by:
newAlternateOfin interfaceModelConstructor- Parameters:
entity1- an identifier for the firstEntityentity2- an identifier for the secondEntity- Returns:
- an instance of
AlternateOf
-
newAttribute
public abstract Attribute newAttribute(QualifiedName elementName, Object value, QualifiedName type)
-
newAttribute
public abstract Attribute newAttribute(Attribute.AttributeKind kind, Object value, QualifiedName type)
-
newAttribute
public Attribute newAttribute(String namespace, String localName, String prefix, Object value, QualifiedName type)
-
newDerivedByInsertionFrom
public DerivedByInsertionFrom newDerivedByInsertionFrom(QualifiedName id, QualifiedName after, QualifiedName before, List<Entry> keyEntitySet, Collection<Attribute> attributes)
- Specified by:
newDerivedByInsertionFromin interfaceModelConstructor
-
newDerivedByRemovalFrom
public DerivedByRemovalFrom newDerivedByRemovalFrom(QualifiedName id, QualifiedName after, QualifiedName before, List<Key> keys, Collection<Attribute> attributes)
- Specified by:
newDerivedByRemovalFromin interfaceModelConstructor
-
newDictionaryMembership
public DictionaryMembership newDictionaryMembership(QualifiedName dict, List<Entry> entitySet)
- Specified by:
newDictionaryMembershipin interfaceModelConstructor
-
newDocument
public Document newDocument()
Factory method to construct aDocument- Returns:
- a new instance of
Document
-
newDocument
public Document newDocument(Collection<Activity> ps, Collection<Entity> as, Collection<Agent> ags, Collection<Statement> lks)
-
newDocument
public Document newDocument(Namespace namespace, Collection<Statement> statements, Collection<Bundle> bundles)
Description copied from interface:ModelConstructorA factory method to create an instance of aDocument- Specified by:
newDocumentin interfaceModelConstructor- Parameters:
namespace- the prefix namespace mapping for the current documentstatements- a collection of statementsbundles- a collection of bundles- Returns:
- an instance of
Document, with this prefix-namespace mapping, statements, and bundles
-
newDuration
public Duration newDuration(int durationInMilliSeconds)
-
newDuration
public Duration newDuration(String lexicalRepresentation)
Description copied from interface:LiteralConstructorFactory method for a duration.- Specified by:
newDurationin interfaceLiteralConstructor- Parameters:
lexicalRepresentation-Stringrepresentation of aDuration.- Returns:
- an instance of
Duration
-
newEntity
public Entity newEntity(Entity e)
Creates a copy of an entity. The copy is shallow in the sense that the new Entity shares the same attributes as the original Entity.
-
newEntity
public Entity newEntity(QualifiedName id)
Creates a newEntitywith provided identifier- Parameters:
id- aQualifiedNamefor the entity- Returns:
- an object of type
Entity
-
newEntity
public Entity newEntity(QualifiedName id, Collection<Attribute> attributes)
Creates a newEntitywith provided identifier and attributes- Specified by:
newEntityin interfaceModelConstructor- Parameters:
id- aQualifiedNamefor the entityattributes- a collection ofAttributefor the entity- Returns:
- an object of type
Entity
-
newEntity
public Entity newEntity(QualifiedName id, String label)
Creates a newEntitywith provided identifier and label- Parameters:
id- aQualifiedNamefor the entitylabel- a String for the label property (seeHasLabel.getLabel()- Returns:
- an object of type
Entity
-
newEntry
public Entry newEntry(Key key, QualifiedName entity)
Factory method for Key-entity entries. Key-entity entries are used to identify the members of a dictionary.- Parameters:
key- indexing the entity in the dictionaryentity- aQualifiedNamedenoting an entity- Returns:
- an instance of
Entry
-
newGDay
public XMLGregorianCalendar newGDay(int day)
Description copied from interface:LiteralConstructorFactory method for a gDay. AgDayrepresents a gregorian day that recurs, specifically a day of the month such as the 5th of the month.- Specified by:
newGDayin interfaceLiteralConstructor- Parameters:
day- value- Returns:
- an instance of
XMLGregorianCalendar
-
newGMonth
public XMLGregorianCalendar newGMonth(int month)
Description copied from interface:LiteralConstructorFactory method for a gMonth. AgMonthrepresents a gregorian month that recurs every year.- Specified by:
newGMonthin interfaceLiteralConstructor- Parameters:
month- value- Returns:
- an instance of
XMLGregorianCalendar
-
newGMonthDay
public XMLGregorianCalendar newGMonthDay(int month, int day)
Description copied from interface:LiteralConstructorFactory method for a gMonthDay. AgMonthDayis a gregorian date that recurs, specifically a day of the year such as the third of May.- Specified by:
newGMonthDayin interfaceLiteralConstructor- Parameters:
month- valueday- value- Returns:
- an instance of
XMLGregorianCalendar
-
newGYear
public XMLGregorianCalendar newGYear(int year)
Description copied from interface:LiteralConstructorFactory method for a gYear. AgYearrepresents a gregorian calendar year.- Specified by:
newGYearin interfaceLiteralConstructor- Parameters:
year- value- Returns:
- an instance of
XMLGregorianCalendar
-
newHadMember
public HadMember newHadMember(QualifiedName collection, QualifiedName... entities)
-
newHadMember
public HadMember newHadMember(QualifiedName c, Collection<QualifiedName> e)
- Specified by:
newHadMemberin interfaceModelConstructor
-
newInternationalizedString
public LangString newInternationalizedString(String s)
-
newInternationalizedString
public LangString newInternationalizedString(String s, String lang)
-
newISOTime
public XMLGregorianCalendar newISOTime(String time)
Description copied from interface:LiteralConstructorFactory method for a dateTime.- Specified by:
newISOTimein interfaceLiteralConstructor- Parameters:
time- A string containing lexical representation of xsd:datetime.- Returns:
- an instance of
XMLGregorianCalendar
-
newKey
public abstract Key newKey(Object o, QualifiedName type)
-
newLocation
public Location newLocation(Object value, QualifiedName type)
-
newMentionOf
public MentionOf newMentionOf(QualifiedName infra, QualifiedName supra, QualifiedName bundle)
- Specified by:
newMentionOfin interfaceModelConstructor
-
newNamedBundle
public Bundle newNamedBundle(QualifiedName id, Collection<Activity> ps, Collection<Entity> as, Collection<Agent> ags, Collection<Statement> lks)
-
newNamedBundle
public Bundle newNamedBundle(QualifiedName id, Collection<Statement> lks)
-
newNamedBundle
public Bundle newNamedBundle(QualifiedName id, Namespace namespace, Collection<Statement> statements)
Description copied from interface:ModelConstructorA factory method to create an instance of a BundleBundle- Specified by:
newNamedBundlein interfaceModelConstructor- Parameters:
id- an identifier for the bundlenamespace- aNamespaceobject mapping prefix to namespace URIsstatements- a set of provenance descriptions- Returns:
Bundle
-
newOther
public Other newOther(QualifiedName elementName, Object value, QualifiedName type)
-
newOther
public Other newOther(String namespace, String local, String prefix, Object value, QualifiedName type)
-
newQualifiedName
public abstract QualifiedName newQualifiedName(String namespace, String local, String prefix)
Description copied from interface:ModelConstructorA factory method forQualifiedName. A qualified name consists of a namespace, denoted by an optional prefix, and a local name.- Specified by:
newQualifiedNamein interfaceModelConstructor- Parameters:
namespace- a URI for the namespacelocal- a local nameprefix- a string, which can be null.- Returns:
- an instance of
QualifiedName
-
newQualifiedName
public abstract QualifiedName newQualifiedName(String namespace, String local, String prefix, ProvUtilities.BuildFlag flag)
Description copied from interface:ModelConstructorA factory method forQualifiedName. A qualified name consists of a namespace, denoted by an optional prefix, and a local name.- Specified by:
newQualifiedNamein interfaceModelConstructor- Parameters:
namespace- a URI for the namespacelocal- a local nameprefix- a string, which can be nullflag- build flag.- Returns:
- an instance of
QualifiedName
-
newQualifiedName
public QualifiedName newQualifiedName(QName qname)
-
newRole
public Role newRole(Object value, QualifiedName type)
-
newSpecializationOf
public SpecializationOf newSpecializationOf(QualifiedName specific, QualifiedName general)
A factory method to create an instance of a specializationSpecializationOf- Specified by:
newSpecializationOfin interfaceModelConstructor- Parameters:
specific- an identifier (QualifiedName) for the specificEntitygeneral- an identifier (QualifiedName) for the generalEntity- Returns:
- an instance of
SpecializationOf
-
newQualifiedSpecializationOf
public QualifiedSpecializationOf newQualifiedSpecializationOf(QualifiedName id, QualifiedName specific, QualifiedName general, Collection<Attribute> attributes)
- Specified by:
newQualifiedSpecializationOfin interfaceModelConstructorExtension
-
newQualifiedAlternateOf
public QualifiedAlternateOf newQualifiedAlternateOf(QualifiedName id, QualifiedName alt1, QualifiedName alt2, Collection<Attribute> attributes)
- Specified by:
newQualifiedAlternateOfin interfaceModelConstructorExtension
-
newQualifiedHadMember
public QualifiedHadMember newQualifiedHadMember(QualifiedName id, QualifiedName c, Collection<QualifiedName> e, Collection<Attribute> attributes)
- Specified by:
newQualifiedHadMemberin interfaceModelConstructorExtension
-
newTime
public XMLGregorianCalendar newTime(Date date)
-
newTimeNow
public XMLGregorianCalendar newTimeNow()
Description copied from interface:LiteralConstructorFactory method for this moment's time expressed as dateTime.- Specified by:
newTimeNowin interfaceLiteralConstructor- Returns:
- an instance of
XMLGregorianCalendar
-
newType
public Type newType(Object value, QualifiedName type)
-
newUsed
public Used newUsed(QualifiedName id)
A factory method to create an instance of a usageUsed- Parameters:
id- an optional identifier for a usage- Returns:
- an instance of
Used
-
newUsed
public Used newUsed(QualifiedName id, QualifiedName aid, String role, QualifiedName eid)
-
newUsed
public Used newUsed(QualifiedName id, QualifiedName activity, QualifiedName entity)
A factory method to create an instance of a usageUsed
-
newUsed
public Used newUsed(QualifiedName activity, QualifiedName entity)
A factory method to create an instance of a usageUsed
-
newUsed
public Used newUsed(QualifiedName id, QualifiedName activity, QualifiedName entity, XMLGregorianCalendar time, Collection<Attribute> attributes)
Description copied from interface:ModelConstructorA factory method to create an instance of a UsageUsed- Specified by:
newUsedin interfaceModelConstructor- Parameters:
id- an optional identifier for a usageactivity- the identifier of the activity that used an entityentity- an optional identifier for the entity being usedtime- an optional "usage time", the time at which the entity started to be usedattributes- an optional set of attribute-value pairs representing additional information about this usage- Returns:
- an instance of
Used
-
newUsed
public Used newUsed(QualifiedName id, QualifiedName activity, QualifiedName entity, XMLGregorianCalendar time)
-
newUsed
public Used newUsed(Used u)
A factory method to create an instance of a usageUsedfrom another- Parameters:
u- an instance of a usage- Returns:
- an instance of
Usedequal (in the sense of @see Object.equals()) to the input
-
newValue
public Value newValue(String value)
Factory method to create an instance of of the PROV-DM prov:value attribute (seeValue).- Parameters:
value- a String- Returns:
- a new
Valuewith type xsd:string (seeName.XSD_STRING)
-
newValue
public Value newValue(int value)
Factory method to create an instance of the PROV-DM prov:value attribute (seeValue).- Parameters:
value- an integer- Returns:
- a new
Valuewith type xsd:int (seeName.XSD_INT)
-
newValue
public Value newValue(Object value, QualifiedName type)
Factory method to create an instance of the PROV-DM prov:value attribute (seeValue). Use classNamefor predefinedQualifiedNames for the common types.- Parameters:
value- anObjecttype- aQualifiedNameto denote the type of value- Returns:
- a new
Value
-
newWasAssociatedWith
public WasAssociatedWith newWasAssociatedWith(QualifiedName id)
A factory method to create an instance of an AssociationWasAssociatedWith- Parameters:
id- an identifier for the association- Returns:
- an instance of
WasAssociatedWith
-
newWasAssociatedWith
public WasAssociatedWith newWasAssociatedWith(QualifiedName id, QualifiedName activity, QualifiedName agent)
A factory method to create an instance of an AssociationWasAssociatedWith- Parameters:
id- an optional identifier for the association between an activity and an agentactivity- an identifier for the activityagent- an optional identifier for the agent associated with the activity- Returns:
- an instance of
WasAssociatedWith
-
newWasAssociatedWith
public WasAssociatedWith newWasAssociatedWith(QualifiedName id, QualifiedName a, QualifiedName ag, QualifiedName plan, Collection<Attribute> attributes)
Description copied from interface:ModelConstructorA factory method to create an instance of an AssociationWasAssociatedWith- Specified by:
newWasAssociatedWithin interfaceModelConstructor- Parameters:
id- an optional identifier for the association between an activity and an agenta- an identifier for the activityag- an optional identifier for the agent associated with the activityplan- an optional identifier for the plan the agent relied on in the context of this activityattributes- an optional set of attribute-value pairs representing additional information about this association of this activity with this agent.- Returns:
- an instance of
WasAssociatedWith
-
newWasAssociatedWith
public WasAssociatedWith newWasAssociatedWith(QualifiedName id, QualifiedName a, QualifiedName ag, QualifiedName plan)
-
newWasAssociatedWith
public WasAssociatedWith newWasAssociatedWith(WasAssociatedWith u)
-
newWasAttributedTo
public WasAttributedTo newWasAttributedTo(QualifiedName id, QualifiedName entity, QualifiedName agent)
A factory method to create an instance of an attributionWasAttributedTo- Parameters:
id- an optional identifier for the relationentity- an entity identifieragent- the identifier of the agent whom the entity is ascribed to, and therefore bears some responsibility for its existence- Returns:
- an instance of
WasAttributedTo
-
newWasAttributedTo
public WasAttributedTo newWasAttributedTo(QualifiedName id, QualifiedName entity, QualifiedName agent, Collection<Attribute> attributes)
Description copied from interface:ModelConstructorA factory method to create an instance of an attributionWasAttributedTo- Specified by:
newWasAttributedToin interfaceModelConstructor- Parameters:
id- an optional identifier for the relationentity- an entity identifieragent- the identifier of the agent whom the entity is ascribed to, and therefore bears some responsibility for its existenceattributes- an optional set of attribute-value pairs representing additional information about this attribution.- Returns:
- an instance of
WasAttributedTo
-
newWasAttributedTo
public WasAttributedTo newWasAttributedTo(WasAttributedTo u)
-
newWasDerivedFrom
public WasDerivedFrom newWasDerivedFrom(QualifiedName id, QualifiedName e2, QualifiedName e1)
A factory method to create an instance of a derivationWasDerivedFrom- Parameters:
id- an optional identifier for a derivatione2- the identifier of the entity generated by the derivatione1- the identifier of the entity used by the derivation- Returns:
- an instance of
WasDerivedFrom
-
newWasDerivedFrom
public WasDerivedFrom newWasDerivedFrom(QualifiedName e2, QualifiedName e1)
A factory method to create an instance of a derivationWasDerivedFrom- Parameters:
e2- the identifier of the entity generated by the derivatione1- the identifier of the entity used by the derivation- Returns:
- an instance of
WasDerivedFrom
-
newWasDerivedFrom
public WasDerivedFrom newWasDerivedFrom(QualifiedName id, QualifiedName aid1, QualifiedName aid2, QualifiedName aid, QualifiedName did1, QualifiedName did2, Collection<Attribute> attributes)
Description copied from interface:ModelConstructorA factory method to create an instance of a derivationWasDerivedFrom- Specified by:
newWasDerivedFromin interfaceModelConstructor- Parameters:
id- an optional identifier for a derivationaid1- the identifier of the entity generated by the derivationaid2- the identifier of the entity used by the derivation- Returns:
- an instance of
WasDerivedFrom
-
newWasDerivedFrom
public WasDerivedFrom newWasDerivedFrom(WasDerivedFrom d)
-
newWasEndedBy
public WasEndedBy newWasEndedBy(QualifiedName id)
A factory method to create an instance of an endWasEndedBy- Parameters:
id-- Returns:
- an instance of
WasEndedBy
-
newWasEndedBy
public WasEndedBy newWasEndedBy(QualifiedName id, QualifiedName activity, QualifiedName trigger)
A factory method to create an instance of an endWasEndedBy- Parameters:
id-activity- an identifier for the ended activitytrigger- an optional identifier for the entity triggering the activity ending- Returns:
- an instance of
WasEndedBy
-
newWasEndedBy
public WasEndedBy newWasEndedBy(QualifiedName id, QualifiedName activity, QualifiedName trigger, QualifiedName ender)
A factory method to create an instance of an endWasEndedBy- Parameters:
id-activity- an identifier for the ended activitytrigger- an optional identifier for the entity triggering the activity endingender- an optional identifier for the activity that generated the (possibly unspecified) entity- Returns:
- an instance of
WasEndedBy
-
newWasEndedBy
public WasEndedBy newWasEndedBy(QualifiedName id, QualifiedName activity, QualifiedName trigger, QualifiedName ender, XMLGregorianCalendar time, Collection<Attribute> attributes)
Description copied from interface:ModelConstructorA factory method to create an instance of an endWasEndedBy- Specified by:
newWasEndedByin interfaceModelConstructoractivity- an identifier for the ended activitytrigger- an optional identifier for the entity triggering the activity endingender- an optional identifier for the activity that generated the (possibly unspecified) entitytime- the optional time at which the activity was endedattributes- an optional set of attribute-value pairs representing additional information about this activity end- Returns:
- an instance of
WasStartedBy
-
newWasEndedBy
public WasEndedBy newWasEndedBy(WasEndedBy u)
-
newWasGeneratedBy
public WasGeneratedBy newWasGeneratedBy(Entity a, String role, Activity p)
-
newWasGeneratedBy
public WasGeneratedBy newWasGeneratedBy(QualifiedName id)
-
newWasGeneratedBy
public WasGeneratedBy newWasGeneratedBy(QualifiedName id, Entity a, String role, Activity p)
-
newWasGeneratedBy
public WasGeneratedBy newWasGeneratedBy(QualifiedName id, QualifiedName aid, String role, QualifiedName pid)
-
newWasGeneratedBy
public WasGeneratedBy newWasGeneratedBy(QualifiedName id, QualifiedName entity, QualifiedName activity)
A factory method to create an instance of a generationWasGeneratedBy- Parameters:
id- an optional identifier for a usageentity- an identifier for the created entityactivity- an optional identifier for the activity that creates the entity- Returns:
- an instance of
WasGeneratedBy
-
newWasGeneratedBy
public WasGeneratedBy newWasGeneratedBy(QualifiedName id, QualifiedName entity, QualifiedName activity, XMLGregorianCalendar time, Collection<Attribute> attributes)
Description copied from interface:ModelConstructorA factory method to create an instance of a generationWasGeneratedBy- Specified by:
newWasGeneratedByin interfaceModelConstructor- Parameters:
id- an optional identifier for a usageentity- an identifier for the created entityactivity- an optional identifier for the activity that creates the entitytime- an optional "generation time", the time at which the entity was completely createdattributes- an optional set of attribute-value pairs representing additional information about this generation- Returns:
- an instance of
WasGeneratedBy
-
newWasGeneratedBy
public WasGeneratedBy newWasGeneratedBy(WasGeneratedBy g)
-
newWasInfluencedBy
public WasInfluencedBy newWasInfluencedBy(QualifiedName id, QualifiedName influencee, QualifiedName influencer)
A factory method to create an instance of an influenceWasInfluencedBy- Parameters:
id- optional identifier identifying the associationinfluencee- an identifier for an entity, activity, or agentinfluencer- an identifier for an ancestor entity, activity, or agent that the former depends on- Returns:
- an instance of
WasInfluencedBy
-
newWasInfluencedBy
public WasInfluencedBy newWasInfluencedBy(QualifiedName id, QualifiedName influencee, QualifiedName influencer, Collection<Attribute> attributes)
Description copied from interface:ModelConstructorA factory method to create an instance of an influenceWasInfluencedBy- Specified by:
newWasInfluencedByin interfaceModelConstructor- Parameters:
id- optional identifier identifying the associationinfluencee- an identifier for an entity, activity, or agentinfluencer- an identifier for an ancestor entity, activity, or agent that the former depends onattributes- an optional set of attribute-value pairs representing additional information about this association- Returns:
- an instance of
WasInfluencedBy
-
newWasInfluencedBy
public WasInfluencedBy newWasInfluencedBy(WasInfluencedBy in)
-
newWasInformedBy
public WasInformedBy newWasInformedBy(QualifiedName id, QualifiedName informed, QualifiedName informant)
A factory method to create an instance of an communicationWasInformedBy- Parameters:
id- an optional identifier identifying the association;informed- the identifier of the informed activity;informant- the identifier of the informant activity;- Returns:
- an instance of
WasInformedBy
-
newWasInformedBy
public WasInformedBy newWasInformedBy(QualifiedName id, QualifiedName a2, QualifiedName a1, Collection<Attribute> attributes)
Description copied from interface:ModelConstructorA factory method to create an instance of an communicationWasInformedBy- Specified by:
newWasInformedByin interfaceModelConstructor- Parameters:
id- an optional identifier identifying the association;a2- the identifier of the informed activity;a1- the identifier of the informant activity;attributes- an optional set of attribute-value pairs representing additional information about this communication.- Returns:
- an instance of
WasInformedBy
-
newWasInformedBy
public WasInformedBy newWasInformedBy(WasInformedBy d)
-
newWasInvalidatedBy
public WasInvalidatedBy newWasInvalidatedBy(QualifiedName eid, QualifiedName aid)
-
newWasInvalidatedBy
public WasInvalidatedBy newWasInvalidatedBy(QualifiedName id, QualifiedName entity, QualifiedName activity)
A factory method to create an instance of an invalidationWasInvalidatedBy- Parameters:
id- an optional identifier for a usageentity- an identifier for the created entityactivity- an optional identifier for the activity that creates the entity- Returns:
- an instance of
WasInvalidatedBy
-
newWasInvalidatedBy
public WasInvalidatedBy newWasInvalidatedBy(QualifiedName id, QualifiedName entity, QualifiedName activity, XMLGregorianCalendar time, Collection<Attribute> attributes)
Description copied from interface:ModelConstructorA factory method to create an instance of an invalidationWasInvalidatedBy- Specified by:
newWasInvalidatedByin interfaceModelConstructor- Parameters:
id- an optional identifier for a usageentity- an identifier for the created entityactivity- an optional identifier for the activity that creates the entitytime- an optional "invalidation time", the time at which the entity was completely createdattributes- an optional set of attribute-value pairs representing additional information about this invalidation- Returns:
- an instance of
WasInvalidatedBy
-
newWasInvalidatedBy
public WasInvalidatedBy newWasInvalidatedBy(WasInvalidatedBy u)
-
newWasStartedBy
public WasStartedBy newWasStartedBy(QualifiedName id)
A factory method to create an instance of a startWasStartedBy- Parameters:
id-- Returns:
- an instance of
WasStartedBy
-
newWasStartedBy
public WasStartedBy newWasStartedBy(QualifiedName id, QualifiedName aid, QualifiedName eid)
-
newWasStartedBy
public WasStartedBy newWasStartedBy(QualifiedName id, QualifiedName activity, QualifiedName trigger, QualifiedName starter)
A factory method to create an instance of a startWasStartedBy- Parameters:
id-activity- an identifier for the started activitytrigger- an optional identifier for the entity triggering the activitystarter- an optional identifier for the activity that generated the (possibly unspecified) entity- Returns:
- an instance of
WasStartedBy
-
newWasStartedBy
public WasStartedBy newWasStartedBy(QualifiedName id, QualifiedName activity, QualifiedName trigger, QualifiedName starter, XMLGregorianCalendar time, Collection<Attribute> attributes)
Description copied from interface:ModelConstructorA factory method to create an instance of a startWasStartedBy- Specified by:
newWasStartedByin interfaceModelConstructoractivity- an identifier for the started activitytrigger- an optional identifier for the entity triggering the activitystarter- an optional identifier for the activity that generated the (possibly unspecified) entitytime- the optional time at which the activity was startedattributes- an optional set of attribute-value pairs representing additional information about this activity start- Returns:
- an instance of
WasStartedBy
-
newWasStartedBy
public WasStartedBy newWasStartedBy(WasStartedBy u)
-
newXMLGregorianCalendar
public XMLGregorianCalendar newXMLGregorianCalendar(GregorianCalendar gc)
-
newYear
public XMLGregorianCalendar newYear(int year)
-
getAttributes
public Collection<Attribute> getAttributes(Statement statement)
-
setAttributes
public void setAttributes(HasOther res, Collection<Attribute> attributes)
-
startBundle
public void startBundle(QualifiedName bundleId, Namespace namespaces)
- Specified by:
startBundlein interfaceModelConstructor
-
startDocument
public void startDocument(Namespace namespace)
- Specified by:
startDocumentin interfaceModelConstructor
-
newNamespace
public Namespace newNamespace()
-
newAlternateOf
public AlternateOf newAlternateOf(AlternateOf s)
-
newSpecializationOf
public SpecializationOf newSpecializationOf(SpecializationOf s)
-
newStatement
public <T extends Statement> T newStatement(T s)
-
-