public abstract class ChildContainerBuilder extends AbstractBuilder
Modifier and Type | Field and Description |
---|---|
protected List<IHeaderMatcher.Builder> |
children
The list of builders that will build the enclosed matchers.
|
protected String |
resource
The resource the builders came from if it was read from a resource
|
Modifier | Constructor and Description |
---|---|
protected |
ChildContainerBuilder()
Empty default constructor.
|
Modifier and Type | Method and Description |
---|---|
AbstractBuilder |
addEnclosed(Collection<IHeaderMatcher.Builder> children)
Adds a collection of builders to the list of child builders.
|
AbstractBuilder |
addEnclosed(IHeaderMatcher.Builder child)
Adds a builder to the list of builders.
|
List<IHeaderMatcher> |
getEnclosed() |
List<IHeaderMatcher.Builder> |
getEnclosedBuilders() |
AbstractBuilder |
setResource(String resourceName)
Reads a text file.
|
String |
toString() |
getId, hasId, setId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
all, any, build, builtClass, copyright, getDescription, matcherRef, not, regex, spdx, text
protected final List<IHeaderMatcher.Builder> children
protected String resource
protected ChildContainerBuilder()
public AbstractBuilder setResource(String resourceName)
resourceName
- the name of the resource to read.public AbstractBuilder addEnclosed(IHeaderMatcher.Builder child)
child
- the child builder to add.public AbstractBuilder addEnclosed(Collection<IHeaderMatcher.Builder> children)
children
- the children to add.public List<IHeaderMatcher.Builder> getEnclosedBuilders()
public List<IHeaderMatcher> getEnclosed()
public String toString()
toString
in class AbstractBuilder
Copyright © 2006–2024 Apache Software Foundation. All rights reserved.