public abstract class AbstractWalker extends Object implements ChainWalker
| Modifier and Type | Field and Description |
|---|---|
static String |
NAMESPACE_SEPARATOR |
static String |
ORIGINAL_FILE_KEY |
| Constructor and Description |
|---|
AbstractWalker() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNumAdditions, getNumDeletions, getNumModifications, reportChanges, setReportChangesgetParser, setParserpublic static final String NAMESPACE_SEPARATOR
public static final String ORIGINAL_FILE_KEY
public void setVisitors(List<Object> visitor)
setVisitors in interface ChainWalkerprotected void visit(Object element, List<Object> visitors, List<TransformationConfig> transformations, VisitorContext context) throws Exception
Exceptionprotected void visit(Object element, VisitorContext vc) throws Exception
Exceptionprotected void writeAll(Collection<Object> elements) throws Exception
Exceptionprotected void write(Object element, VisitorContext vc) throws Exception
Exceptionpublic List<Object> getVisitors()
getVisitors in interface ChainWalkerpublic void setResource(Resource<?> resource)
setResource in interface ChainWalkerpublic Resource<?> getResource()
public void setRootNamespace(String namespace)
setRootNamespace in interface ChainWalkerpublic String getRootNamespace()
getRootNamespace in interface ChainWalkerpublic void execute()
throws Exception
execute in interface ChainWalkerExceptionpublic void setWriter(Object writer)
setWriter in interface ChainWalkerpublic Object getWriter()
getWriter in interface ChainWalkerpublic ChainConfig getChainConfig()
public void setChainConfig(ChainConfig chainConfig)
setChainConfig in interface ChainWalkerpublic Collection<VisitorMessage> getVisitorMessages()
getVisitorMessages in interface ChainWalkerprotected void addVisitorMessages(VisitorContext ctx)
protected abstract String getLocation(VisitorContext ctx)
protected Object merge(Object object, org.walkmod.merger.MergeEngine mergeEngine, VisitorContext vc)
public boolean hasChanges()
hasChanges in interface ChainWalkerCopyright © 2015. All rights reserved.