public interface PropertyEditor<D extends BioPAXElement,R> extends PropertyAccessor<D,R>
Modifier and Type | Method and Description |
---|---|
void |
addMaxCardinalityRestriction(Class<? extends D> domain,
int max)
Sets a maximum cardinality for a domain.
|
Method |
getAddMethod() |
Method |
getGetMethod() |
Integer |
getMaxCardinality(Class<? extends D> restrictedDomain)
Return the maximum cardinality that is defined for the property to which editor is belong.
|
Method |
getPrimarySetMethod()
Returns the primary set method of the editor.
|
String |
getProperty() |
Method |
getRemoveMethod() |
Method |
getSetMethod() |
R |
getUnknown()
Gets the unknown value.
|
void |
removeValueFromBean(R value,
D bean)
Removes the value from the bean using the default removeMethod,
if such method is defined (i.e., it's a multiple cardinality property),
otherwise sets unknown value using
setValueToBean(Object, org.biopax.paxtools.model.BioPAXElement)
(but only if ) |
void |
removeValueFromBean(Set<R> values,
D bean)
Removes the values from the bean
using the
removeValueFromBean(Object, org.biopax.paxtools.model.BioPAXElement)
for each value in the set. |
void |
setValueToBean(R value,
D bean)
Sets the value to the bean using the default setMethod if
value is not null.
|
void |
setValueToBean(Set<R> values,
D bean) |
String |
toString() |
getDomain, getRange, getValueFromBean, getValueFromBeans, isMultipleCardinality, isUnknown
Method getAddMethod()
Method getGetMethod()
String getProperty()
Method getRemoveMethod()
Method getSetMethod()
void addMaxCardinalityRestriction(Class<? extends D> domain, int max)
domain
- domain on which restriction will be setmax
- cardinalityPropertyAccessor.isMultipleCardinality()
Integer getMaxCardinality(Class<? extends D> restrictedDomain)
restrictedDomain
- domain to be checked for the cardinalityR getUnknown()
BioPAXElement.UNKNOWN_FLOAT
)void removeValueFromBean(R value, D bean)
setValueToBean(Object, org.biopax.paxtools.model.BioPAXElement)
(but only if )value
- to be removed from the beanbean
- bean from which the value is going to be removedvoid removeValueFromBean(Set<R> values, D bean)
removeValueFromBean(Object, org.biopax.paxtools.model.BioPAXElement)
for each value in the set.values
- to be removed from the beanbean
- bean from which the value is going to be removedvoid setValueToBean(R value, D bean)
value
- to be set to the beanbean
- to which the value is to be setvoid setValueToBean(Set<R> values, D bean)
Method getPrimarySetMethod()
Copyright © 2015 BioPAX. All rights reserved.