public void addType(HasType a, Type type) { a.getType().add(type); }
public void addType(HasType a, Type type) { a.getType().add(type); }
public void addType(HasType a, Object o, QualifiedName type) { a.getType().add(newType(o,type)); }
public void addType(HasType a, Object o, QualifiedName type) { a.getType().add(newType(o,type)); }
public List<Type> getType(HasOther e) { if (e instanceof HasType) return ((HasType) e).getType(); List<Type> res = new LinkedList<Type>(); res.add(newType("pFact: type TODO",getName().XSD_STRING)); return res; }
public List<Type> getType(HasOther e) { if (e instanceof HasType) return ((HasType) e).getType(); List<Type> res = new LinkedList<Type>(); res.add(newType("pFact: type TODO",getName().XSD_STRING)); return res; }
public void addType(HasType a, URI type) { a.getType().add(newType(type,getName().XSD_ANY_URI)); }
public void addType(HasType a, URI type) { a.getType().add(newType(type,getName().XSD_ANY_URI)); }
public Collection<Attribute> getAttributes(Statement statement) { Collection<Attribute> result=new LinkedList<Attribute>(); if (statement instanceof HasType) result.addAll(((HasType)statement).getType()); if (statement instanceof HasLocation) result.addAll(((HasLocation)statement).getLocation()); if (statement instanceof HasRole) result.addAll(((HasRole)statement).getRole()); if (statement instanceof HasValue) { Value val=((HasValue)statement).getValue(); if (val!=null) { result.add(val); } } if (statement instanceof HasOther) { for (Other o: ((HasOther)statement).getOther()) { result.add((Attribute)o); } } return result; }
public List<Attribute> convertTypeAttributes(HasType e, List<Attribute> acc) { List<Type> types=e.getType(); for (Type type : types) { acc.add(pFactory.newAttribute(Attribute.AttributeKind.PROV_TYPE, type.getValue(), //type.getValueAsObject(vconv), type.getType())); } return acc; }
public void addRevisionType(HasType a) { a.getType().add(newType(getName().PROV_REVISION,getName().PROV_QUALIFIED_NAME)); }
public Collection<Attribute> getAttributes(Statement statement) { Collection<Attribute> result=new LinkedList<Attribute>(); if (statement instanceof HasType) result.addAll(((HasType)statement).getType()); if (statement instanceof HasLocation) result.addAll(((HasLocation)statement).getLocation()); if (statement instanceof HasRole) result.addAll(((HasRole)statement).getRole()); if (statement instanceof HasValue) { Value val=((HasValue)statement).getValue(); if (val!=null) { result.add(val); } } if (statement instanceof HasOther) { for (Other o: ((HasOther)statement).getOther()) { result.add((Attribute)o); } } return result; }
public List<Attribute> convertTypeAttributes(HasType e, List<Attribute> acc) { List<Type> types=e.getType(); for (Type type : types) { acc.add(pFactory.newAttribute(Attribute.AttributeKind.PROV_TYPE, type.getValue(), //type.getValueAsObject(vconv), type.getType())); } return acc; }
public void addPrimarySourceType(HasType a) { a.getType().add(newType(getName().PROV_PRIMARY_SOURCE, getName().PROV_QUALIFIED_NAME)); }
public void addPrimarySourceType(HasType a) { a.getType().add(newType(getName().PROV_PRIMARY_SOURCE, getName().PROV_QUALIFIED_NAME)); }
public void addQuotationType(HasType a) { a.getType().add(newType(getName().PROV_QUOTATION,getName().PROV_QUALIFIED_NAME)); }
public void addBundleType(HasType a) { a.getType().add(newType(getName().PROV_BUNDLE,getName().PROV_QUALIFIED_NAME)); }
public void addRevisionType(HasType a) { a.getType().add(newType(getName().PROV_REVISION,getName().PROV_QUALIFIED_NAME)); }
public void addBundleType(HasType a) { a.getType().add(newType(getName().PROV_BUNDLE,getName().PROV_QUALIFIED_NAME)); }
public void addQuotationType(HasType a) { a.getType().add(newType(getName().PROV_QUOTATION,getName().PROV_QUALIFIED_NAME)); }