public abstract class DefaultSectionParentsCommand extends AbstractCommand implements DefaultSectionParents
Constructor and Description |
---|
DefaultSectionParentsCommand() |
Modifier and Type | Method and Description |
---|---|
protected void |
calculateDefaultParents(String sectName)
High level method used by the command computation chain to calculate the default parents of a given section name.
|
Set<String> |
defaultParents(String sectName)
Returns the default set of parents for a given section name for this dialect.
|
protected abstract boolean |
doCalculateDefaultAnonymousParents(Set<String> result)
Delegates calculation of parents for Section.ANONYMOUS sections, collecting the results in the parameter.
|
protected abstract boolean |
doCalculateDefaultParents(String sectName,
Set<String> result)
Delegates calculation of parents for named sections, collecting the results in the parameter.
|
protected boolean |
doCompute(String name,
SectionManager manager)
Computes the calculation for default section parents for the given section name and stores in the section manager.
|
protected Set<String> |
knownToolkits()
Each dialect has a set of known toolkits.
|
protected Set<String> |
knownToolkits(String dialect) |
compute, processProperties, traceInfo, traceLog
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDialect
protected abstract boolean doCalculateDefaultAnonymousParents(Set<String> result)
result
- set of parents for anonymous sectionprotected abstract boolean doCalculateDefaultParents(String sectName, Set<String> result)
result
- set of parents for named section.protected Set<String> knownToolkits()
protected void calculateDefaultParents(String sectName)
sectName
- protected boolean doCompute(String name, SectionManager manager) throws CommandException
doCompute
in class AbstractCommand
CommandException
- whenever the command dialect does not agree with the section manager's.public final Set<String> defaultParents(String sectName)
defaultParents
in interface DefaultSectionParents
Copyright © 2003–2016 Community Z Tools Project. All rights reserved.