public abstract class AbstractRootNodeResolver extends java.lang.Object implements RootNodeResolver<ParentIdHolder<AssociationSource>>
Constructor and Description |
---|
AbstractRootNodeResolver() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getAssociationName(java.lang.String associationPredicateId) |
protected java.lang.String |
getCodingSchemeId(java.lang.String codingSchemeUri,
java.lang.String version) |
CodingSchemeIdSetter |
getCodingSchemeIdSetter() |
DatabaseServiceManager |
getDatabaseServiceManager() |
SupportedAttributeTemplate |
getSupportedAttributeTemplate() |
protected abstract boolean |
isHierarchicalRelation(java.lang.String relation)
Checks if is hierarchical relation.
|
boolean |
isRootNode(ParentIdHolder<AssociationSource> item)
Checks if is root node.
|
protected abstract boolean |
isSourceRootNode(java.lang.String code)
Construct sab root node.
|
protected boolean |
pointsToRoot(ParentIdHolder<AssociationSource> item)
Points to root.
|
protected boolean |
pointsToTail(ParentIdHolder<AssociationSource> item)
Points to tail.
|
ParentIdHolder<AssociationSource> |
process(ParentIdHolder<AssociationSource> item) |
protected void |
register(boolean resolveForward,
java.lang.String association,
java.lang.String rootCode) |
void |
setCodingSchemeIdSetter(CodingSchemeIdSetter codingSchemeIdSetter) |
void |
setDatabaseServiceManager(DatabaseServiceManager databaseServiceManager) |
void |
setSupportedAttributeTemplate(SupportedAttributeTemplate supportedAttributeTemplate) |
public boolean isRootNode(ParentIdHolder<AssociationSource> item)
RootNodeResolver
isRootNode
in interface RootNodeResolver<ParentIdHolder<AssociationSource>>
item
- the itemprotected java.lang.String getAssociationName(java.lang.String associationPredicateId)
protected java.lang.String getCodingSchemeId(java.lang.String codingSchemeUri, java.lang.String version)
public ParentIdHolder<AssociationSource> process(ParentIdHolder<AssociationSource> item) throws java.lang.Exception
process
in interface org.springframework.batch.item.ItemProcessor<ParentIdHolder<AssociationSource>,ParentIdHolder<AssociationSource>>
java.lang.Exception
protected void register(boolean resolveForward, java.lang.String association, java.lang.String rootCode)
protected boolean pointsToRoot(ParentIdHolder<AssociationSource> item)
item
- the itemprotected boolean pointsToTail(ParentIdHolder<AssociationSource> item)
item
- the itemprotected abstract boolean isHierarchicalRelation(java.lang.String relation)
relation
- the relationprotected abstract boolean isSourceRootNode(java.lang.String code)
public DatabaseServiceManager getDatabaseServiceManager()
public void setDatabaseServiceManager(DatabaseServiceManager databaseServiceManager)
public CodingSchemeIdSetter getCodingSchemeIdSetter()
public void setCodingSchemeIdSetter(CodingSchemeIdSetter codingSchemeIdSetter)
public void setSupportedAttributeTemplate(SupportedAttributeTemplate supportedAttributeTemplate)
public SupportedAttributeTemplate getSupportedAttributeTemplate()