public interface HasType
Interface for PROV objects that have a type.
PROV-DM Definition for prov:type: The attribute prov:type provides further typing information for any construct with an optional set of attribute-value pairs.
Relevant class
Modifier and Type | Method and Description |
---|---|
List<Type> |
getType()
Gets the value of the
prov:type property. |
List<Type> getType()
prov:type
property.
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set
method for the type property.
For example, to add a new item, do as follows:
getType().add(newItem);
Objects of the following type(s) are allowed in the list
Type
Copyright © 2016. All rights reserved.