public interface StructureNode<N> extends Printable, Serializable
| Modifier and Type | Method and Description |
|---|---|
AbstractStructureNode[] |
getChilds()
Returns childs of element if any exist
|
String |
getHeader()
Header of output
|
String |
getName()
if detailed output is not asked then it will call
getNodeName() else it will return full details |
String |
getNodeName()
Returns file.name or artifactId for maven project
|
String |
getParentName()
this is for modules to validate if they are not printed multiple time referring to their parent, files always return null
|
boolean |
hasMoreChilds(int index,
String[] ignores)
Utility method for below case:
While you are iterating you know that you know there is more files but you are not sure if those files needs to be ignored.
|
boolean |
isEmpty() |
boolean |
isValid(String[] ignores,
String... parentName)
Regex validation for single node
|
AbstractStructureNode[] getChilds() throws org.apache.maven.plugin.MojoFailureException
AbstractStructureNodeorg.apache.maven.plugin.MojoFailureExceptionboolean hasMoreChilds(int index,
String[] ignores)
throws org.apache.maven.plugin.MojoFailureException
index - current index of iteration so the rest will be handledignores - regex patternsBooleanorg.apache.maven.plugin.MojoFailureExceptionboolean isValid(String[] ignores, String... parentName)
ignores - regex patternsparentName - this is for modules to validate if they are not printed multiple time referring to their parentBooleanboolean isEmpty()
throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionString getName() throws org.apache.maven.plugin.MojoFailureException
getNodeName() else it will return full detailsorg.apache.maven.plugin.MojoFailureExceptionString getHeader() throws org.apache.maven.plugin.MojoFailureException
Stringorg.apache.maven.plugin.MojoFailureExceptionString getParentName()
Copyright © 2015. All rights reserved.