|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openprovenance.model.OPMFactory
public class OPMFactory
A stateless factory of OPM objects.
| Field Summary | |
|---|---|
static DocumentBuilder |
builder
|
boolean |
compactId
|
protected DatatypeFactory |
dataFactory
|
protected ObjectFactory |
of
|
static String |
opmGraphIdPrefix
|
static String |
packageList
|
static String |
roleIdPrefix
|
static String |
usedIdPrefix
|
static String |
wasControlledByIdPrefix
|
static String |
wasDerivedFromIdPrefix
|
static String |
wasGenerateByIdPrefix
|
static String |
wasTriggeredByIdPrefix
|
| Fields inherited from interface org.openprovenance.model.CommonURIs |
|---|
ENCODING_PROPERTY, LABEL_PROPERTY, NEW_ENCODING_PROPERTY, NEW_LABEL_PROPERTY, NEW_PNAME_PROPERTY, NEW_PROFILE_PROPERTY, NEW_TYPE_PROPERTY, NEW_VALUE_PROPERTY, PNAME_PROPERTY, PROFILE_PROPERTY, TYPE_PROPERTY, VALUE_PROPERTY |
| Constructor Summary | |
|---|---|
OPMFactory()
|
|
OPMFactory(ObjectFactory of)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String roleIdPrefix
public static String usedIdPrefix
public static String wasGenerateByIdPrefix
public static String wasDerivedFromIdPrefix
public static String wasTriggeredByIdPrefix
public static String wasControlledByIdPrefix
public static String opmGraphIdPrefix
public static final String packageList
protected ObjectFactory of
protected DatatypeFactory dataFactory
public boolean compactId
public static DocumentBuilder builder
| Constructor Detail |
|---|
public OPMFactory()
public OPMFactory(ObjectFactory of)
| Method Detail |
|---|
public String getPackageList()
public static OPMFactory getFactory()
public ObjectFactory getObjectFactory()
public ProcessRef newProcessRef(Process p)
public RoleRef newRoleRef(Role p)
public AnnotationRef newAnnotationRef(Annotation a)
public ArtifactRef newArtifactRef(Artifact a)
public AgentRef newAgentRef(Agent a)
public AccountRef newAccountRef(Account acc)
public CausalDependencyRef newCausalDependencyRef(WasGeneratedBy edge)
public CausalDependencyRef newCausalDependencyRef(Used edge)
public CausalDependencyRef newCausalDependencyRef(WasDerivedFrom edge)
public CausalDependencyRef newCausalDependencyRef(WasControlledBy edge)
public CausalDependencyRef newCausalDependencyRef(WasTriggeredBy edge)
public Process newProcess(String pr,
Collection<Account> accounts)
public Process newProcess(String pr,
Collection<Account> accounts,
String label)
public Agent newAgent(String ag,
Collection<Account> accounts)
public Agent newAgent(String ag,
Collection<Account> accounts,
String label)
public Account newAccount(String id)
public Account newAccount(String id,
String label)
public Label newLabel(String label)
public Value newValue(Object value,
String encoding)
public Profile newProfile(String profile)
public PName newPName(String profile)
public Role getRole(Edge e)
public String getLabel(EmbeddedAnnotation annotation)
public String getType(EmbeddedAnnotation annotation)
public Object getValue(EmbeddedAnnotation annotation)
public String getEncoding(EmbeddedAnnotation annotation)
public String getProfile(EmbeddedAnnotation annotation)
public String getPname(EmbeddedAnnotation annotation)
public Object getValue(List<javax.xml.bind.JAXBElement<? extends EmbeddedAnnotation>> annotations)
public String getLabel(List<javax.xml.bind.JAXBElement<? extends EmbeddedAnnotation>> annotations)
public String getType(List<javax.xml.bind.JAXBElement<? extends EmbeddedAnnotation>> annotations)
public String getProfile(List<javax.xml.bind.JAXBElement<? extends EmbeddedAnnotation>> annotations)
public String getPname(List<javax.xml.bind.JAXBElement<? extends EmbeddedAnnotation>> annotations)
public List<Object> getValues(List<javax.xml.bind.JAXBElement<? extends EmbeddedAnnotation>> annotations)
public List<String> getLabels(List<javax.xml.bind.JAXBElement<? extends EmbeddedAnnotation>> annotations)
public List<String> getTypes(List<javax.xml.bind.JAXBElement<? extends EmbeddedAnnotation>> annotations)
public List<String> getProfiles(List<javax.xml.bind.JAXBElement<? extends EmbeddedAnnotation>> annotations)
public List<String> getPnames(List<javax.xml.bind.JAXBElement<? extends EmbeddedAnnotation>> annotations)
public String getLabel(Annotable annotable)
public String getType(Annotable annotable)
public String getProfile(Annotable annotable)
public String getPname(Annotable annotable)
public Type newType(String type)
public void addValue(Artifact annotable,
Object value,
String encoding)
public void addAnnotation(Annotable annotable,
Label ann)
public void addAnnotation(Annotable annotable,
Value ann)
public void addAnnotation(Annotable annotable,
Profile ann)
public void addAnnotation(Annotable annotable,
PName ann)
public void addAnnotation(Annotable annotable,
EmbeddedAnnotation ann)
public void addAnnotation(Annotable annotable,
javax.xml.bind.JAXBElement<? extends EmbeddedAnnotation> ann)
public void addAnnotations(Annotable annotable,
List<javax.xml.bind.JAXBElement<? extends EmbeddedAnnotation>> anns)
public void expandAnnotation(EmbeddedAnnotation ann)
public javax.xml.bind.JAXBElement<? extends EmbeddedAnnotation> compactAnnotation(EmbeddedAnnotation ann)
public XMLGregorianCalendar newXMLGregorianCalendar(GregorianCalendar gc)
public OTime newOTime(OTime time)
public OTime newOTime(XMLGregorianCalendar point1,
XMLGregorianCalendar point2,
XMLGregorianCalendar point3)
public OTime newOTime(XMLGregorianCalendar point1,
XMLGregorianCalendar point2)
public OTime newOTime(XMLGregorianCalendar point)
public OTime newOTime(String value1,
String value2)
public OTime newOTime(Date date1,
Date date2)
public OTime newOTime(Date date)
public OTime newInstantaneousTime(XMLGregorianCalendar point)
public OTime newInstantaneousTime(String value)
public OTime newInstantaneousTime(Date date)
public OTime newInstantaneousTimeNow()
public void setIdForCompactAnnotation(EmbeddedAnnotation ann,
String id)
public void addAnnotation(Annotable annotable,
List<EmbeddedAnnotation> anns)
public void addCompactAnnotation(Annotable annotable,
List<EmbeddedAnnotation> anns)
public Overlaps newOverlaps(Collection<Account> accounts)
public Overlaps newOverlaps(AccountRef aid1,
AccountRef aid2)
public String autoGenerateId(String prefix)
public String autoGenerateId(String prefix,
String id)
public Role newRole(String value)
public Role newRole(Role role)
public Role newRole(String id,
String value)
public Artifact newArtifact(Artifact a)
public Process newProcess(Process a)
public Agent newAgent(Agent a)
public Account newAccount(Account acc)
public void addNewAnnotations(Annotable res,
List<javax.xml.bind.JAXBElement<? extends EmbeddedAnnotation>> anns)
public Artifact newArtifact(String id,
Collection<Account> accounts)
public Artifact newArtifact(String id,
Collection<Account> accounts,
String label)
public void addAccounts(HasAccounts element,
Collection<Account> accounts,
Object ignoreForErasure)
public void addAccounts(HasAccounts element,
Collection<AccountRef> accounts)
public Used newUsed(String id,
ProcessRef pid,
Role role,
ArtifactRef aid,
Collection<AccountRef> accounts)
public UsedStar newUsedStar(ProcessRef pid,
ArtifactRef aid,
Collection<AccountRef> accounts)
public Used newUsed(Process p,
Role role,
Artifact a,
Collection<Account> accounts)
public Used newUsed(String id,
Process p,
Role role,
Artifact a,
Collection<Account> accounts)
public UsedStar newUsedStar(Process p,
Artifact a,
Collection<Account> accounts)
public Used newUsed(String id,
Process p,
Role role,
Artifact a,
String type,
Collection<Account> accounts)
public Used newUsed(Used u)
public WasControlledBy newWasControlledBy(WasControlledBy c)
public WasGeneratedBy newWasGeneratedBy(WasGeneratedBy g)
public WasDerivedFrom newWasDerivedFrom(WasDerivedFrom d)
public WasTriggeredBy newWasTriggeredBy(WasTriggeredBy d)
public WasGeneratedBy newWasGeneratedBy(String id,
ArtifactRef aid,
Role role,
ProcessRef pid,
Collection<AccountRef> accounts)
public WasGeneratedByStar newWasGeneratedByStar(ArtifactRef aid,
ProcessRef pid,
Collection<AccountRef> accounts)
public WasGeneratedBy newWasGeneratedBy(Artifact a,
Role role,
Process p,
Collection<Account> accounts)
public WasGeneratedBy newWasGeneratedBy(String id,
Artifact a,
Role role,
Process p,
Collection<Account> accounts)
public WasGeneratedByStar newWasGeneratedByStar(Artifact a,
Process p,
Collection<Account> accounts)
public WasGeneratedBy newWasGeneratedBy(String id,
Artifact a,
Role role,
Process p,
String type,
Collection<Account> accounts)
public WasControlledBy newWasControlledBy(ProcessRef pid,
Role role,
AgentRef agid,
Collection<AccountRef> accounts)
public WasControlledBy newWasControlledBy(String id,
ProcessRef pid,
Role role,
AgentRef agid,
Collection<AccountRef> accounts)
public WasControlledBy newWasControlledBy(Process p,
Role role,
Agent ag,
Collection<Account> accounts)
public WasControlledBy newWasControlledBy(String id,
Process p,
Role role,
Agent ag,
Collection<Account> accounts)
public WasControlledBy newWasControlledBy(String id,
Process p,
Role role,
Agent ag,
String type,
Collection<Account> accounts)
public WasDerivedFrom newWasDerivedFrom(String id,
ArtifactRef aid1,
ArtifactRef aid2,
Collection<AccountRef> accounts)
public WasDerivedFromStar newWasDerivedFromStar(ArtifactRef aid1,
ArtifactRef aid2,
Collection<AccountRef> accounts)
public WasDerivedFrom newWasDerivedFrom(Artifact a1,
Artifact a2,
Collection<Account> accounts)
public WasDerivedFrom newWasDerivedFrom(String id,
Artifact a1,
Artifact a2,
Collection<Account> accounts)
public WasDerivedFromStar newWasDerivedFromStar(Artifact a1,
Artifact a2,
Collection<Account> accounts)
public WasDerivedFrom newWasDerivedFrom(String id,
Artifact a1,
Artifact a2,
String type,
Collection<Account> accounts)
public WasTriggeredBy newWasTriggeredBy(String id,
ProcessRef pid1,
ProcessRef pid2,
Collection<AccountRef> accounts)
public WasTriggeredByStar newWasTriggeredByStar(ProcessRef pid1,
ProcessRef pid2,
Collection<AccountRef> accounts)
public WasTriggeredBy newWasTriggeredBy(Process p1,
Process p2,
Collection<Account> accounts)
public WasTriggeredBy newWasTriggeredBy(String id,
Process p1,
Process p2,
Collection<Account> accounts)
public WasTriggeredByStar newWasTriggeredByStar(Process p1,
Process p2,
Collection<Account> accounts)
public WasTriggeredBy newWasTriggeredBy(String id,
Process p1,
Process p2,
String type,
Collection<Account> accounts)
public EmbeddedAnnotation newEmbeddedAnnotation(String id,
String property,
Object value,
Collection<Account> accs)
public Annotation newAnnotation(String id,
Artifact a,
String property,
Object value,
Collection<Account> accs)
public Annotation newAnnotation(String id,
Process p,
String property,
Object value,
Collection<Account> accs)
public Annotation newAnnotation(String id,
Annotation a,
String property,
Object value,
Collection<Account> accs)
public Annotation newAnnotation(String id,
WasDerivedFrom edge,
String property,
Object value,
Collection<Account> accs)
public Annotation newAnnotation(String id,
Used edge,
String property,
Object value,
Collection<Account> accs)
public Annotation newAnnotation(String id,
WasGeneratedBy edge,
String property,
Object value,
Collection<Account> accs)
public Annotation newAnnotation(String id,
WasControlledBy edge,
String property,
Object value,
Collection<Account> accs)
public Annotation newAnnotation(String id,
WasTriggeredBy edge,
String property,
Object value,
Collection<Account> accs)
public Annotation newAnnotation(String id,
Role role,
String property,
Object value,
Collection<Account> accs)
public Property newProperty(String property,
Object value)
public Property newProperty(Property property)
public void addProperty(Annotation ann,
Property p)
public void addProperty(Annotation ann,
List<Property> p)
public void addProperty(EmbeddedAnnotation ann,
Property p)
public void addProperty(EmbeddedAnnotation ann,
List<Property> p)
public Annotation newAnnotation(String id,
Ref ref,
String property,
Object value,
Collection<AccountRef> accs)
public Annotation newAnnotation(String id,
Object o,
List<Property> properties,
Collection<AccountRef> accs)
public Annotation newAnnotation(Annotation ann)
public EmbeddedAnnotation newEmbeddedAnnotation(String id,
String property,
Object value,
Collection<AccountRef> accs,
Object dummyParameterForAvoidingSameErasure)
public EmbeddedAnnotation newEmbeddedAnnotation(String id,
List<Property> properties,
Collection<AccountRef> accs,
Object dummyParameterForAvoidingSameErasure)
public OPMGraph newOPMGraph(Collection<Account> accs,
Collection<Overlaps> ops,
Collection<Process> ps,
Collection<Artifact> as,
Collection<Agent> ags,
Collection<Object> lks)
public OPMGraph newOPMGraph(Collection<Account> accs,
Collection<Overlaps> ops,
Collection<Process> ps,
Collection<Artifact> as,
Collection<Agent> ags,
Collection<Object> lks,
Collection<Annotation> anns)
public OPMGraph newOPMGraph(String id,
Collection<Account> accs,
Collection<Overlaps> ops,
Collection<Process> ps,
Collection<Artifact> as,
Collection<Agent> ags,
Collection<Object> lks,
Collection<Annotation> anns)
public OPMGraph newOPMGraph(Collection<Account> accs,
Overlaps[] ovs,
Process[] ps,
Artifact[] as,
Agent[] ags,
Object[] lks)
public OPMGraph newOPMGraph(Collection<Account> accs,
Overlaps[] ovs,
Process[] ps,
Artifact[] as,
Agent[] ags,
Object[] lks,
Annotation[] anns)
public OPMGraph newOPMGraph(String id,
Collection<Account> accs,
Overlaps[] ovs,
Process[] ps,
Artifact[] as,
Agent[] ags,
Object[] lks,
Annotation[] anns)
public OPMGraph newOPMGraph(Accounts accs,
Processes ps,
Artifacts as,
Agents ags,
CausalDependencies lks)
public OPMGraph newOPMGraph(Accounts accs,
Processes ps,
Artifacts as,
Agents ags,
CausalDependencies lks,
Annotations anns)
public OPMGraph newOPMGraph(OPMGraph graph)
public Accounts newAccounts(Collection<Account> accs,
Collection<Overlaps> ovlps)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||