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, language
isValid, validateNonEmpty, validateNonEmpty, validateNonEmpty, validateNonEmpty, validateNonNull, validatePatternMatch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept
public void reset()
reset
in interface Builder
reset
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 Builder
validate
in class AbstractLanguageSpecificBuilder<E extends AbstractFileSystemItemBuilder<E>>
ValidationException
Copyright © 2020 National Institute of Standards and Technology. All rights reserved.