public class PathAccessor extends PropertyAccessorAdapter<BioPAXElement,Object>
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
log |
multipleCardinality, range| Constructor and Description |
|---|
PathAccessor(List<PropertyAccessor<? extends BioPAXElement,?>> objectAccessors,
BioPAXLevel level)
Constructor for defining the access path with a list of accessors.
|
PathAccessor(String path)
This constructor defaults to BioPAX Level 3.
|
PathAccessor(String path,
BioPAXLevel level)
Constructor for defining the access path via a XPath like string.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
applies(BioPAXElement bpe) |
Set |
getValueFromBean(BioPAXElement bean)
Returns the value of the bean using the default getMethod.
|
Set |
getValueFromBeans(Collection<? extends BioPAXElement> beans)
Returns the values for a collection of beans using the default getMethod.
|
Set |
getValueFromModel(Model model)
This method runs the path query on all the elements within the model.
|
boolean |
isUnknown(Object value)
Checks if the value is unkown.
|
getDomain, getRange, isMultipleCardinalitypublic PathAccessor(List<PropertyAccessor<? extends BioPAXElement,?>> objectAccessors, BioPAXLevel level)
objectAccessors - A list of object accessors.level - biopax levelpublic PathAccessor(String path, BioPAXLevel level)
path - The string defining the path. The following operators can be used:
level - BioPAX level that this path is defined in.public PathAccessor(String path)
path - The string defining the path. The following operators can be used:
public Set getValueFromBean(BioPAXElement bean) throws IllegalBioPAXArgumentException
PropertyAccessorbean - the object whose property is requestedIllegalBioPAXArgumentExceptionpublic Set getValueFromBeans(Collection<? extends BioPAXElement> beans) throws IllegalBioPAXArgumentException
PropertyAccessorgetValueFromBeans in interface PropertyAccessor<BioPAXElement,Object>getValueFromBeans in class PropertyAccessorAdapter<BioPAXElement,Object>beans - collection of BioPAX objectsIllegalBioPAXArgumentExceptionpublic Set getValueFromModel(Model model)
model - to be queriedpublic boolean isUnknown(Object value)
PropertyAccessorvalue - the value to be checkedpublic boolean applies(BioPAXElement bpe)
bpe - BioPAXElement to be checked.Copyright © 2018 BioPAX. All rights reserved.