public enum PathType extends Enum<PathType>
Modifier and Type | Method and Description |
---|---|
abstract URL |
resolvePath(String parentLocation,
String location)
Resolve a path for a granuleDescriptor given the parent location and location itself.
|
static PathType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PathType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PathType RELATIVE
public static final PathType ABSOLUTE
public static final PathType URL
public static PathType[] values()
for (PathType c : PathType.values()) System.out.println(c);
public static PathType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract URL resolvePath(String parentLocation, String location)
the location can never be null, while the parent location could be null, as an instance when the path is relative.
File
instance that points to a location which could be relative or absolute
depending on the flavor of the enum where this method is applied. This method might
return null
in case something bad happens.Copyright © 1996–2022 Geotools. All rights reserved.