public abstract class AbstractFileSystemItemBuilder<E extends AbstractFileSystemItemBuilder<E>> extends AbstractResourceBuilder<E>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFileSystemItemBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getKey() |
List<String> |
getLocation() |
String |
getName() |
String |
getRoot() |
E |
location(List<String> location)
Sets the path representing the location of a filesystem resource to the provided value, with the
name omitted.
|
E |
name(String name)
Sets the name of a filesystem resource to the provided value.
|
E |
nameAndLocation(List<String> pathSegments)
Sets the path representing the location and name of a filesystem resource to the provided value.
|
void |
reset() |
E |
root(String root)
Sets the filesystem root of a filesystem resource to the provided value.
|
void |
validate() |
getLanguage, languageisValid, validateNonEmpty, validateNonEmpty, validateNonEmpty, validateNonEmpty, validateNonNull, validatePatternMatchclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptpublic void reset()
reset in interface Builderreset in class AbstractLanguageSpecificBuilder<E extends AbstractFileSystemItemBuilder<E>>public Boolean getKey()
public String getRoot()
public String getName()
public E nameAndLocation(List<String> pathSegments)
name(String) and location(List)pathSegments - one or more path segmentsname(String),
location(List)public E root(String root)
root - the filesystem root valuepublic E location(List<String> location)
location - a sequence of pathspublic E name(String name)
name - the name valuepublic void validate()
throws ValidationException
validate in interface Buildervalidate in class AbstractLanguageSpecificBuilder<E extends AbstractFileSystemItemBuilder<E>>ValidationExceptionCopyright © 2020 National Institute of Standards and Technology. All rights reserved.