public class ValidationTarget extends Object implements Comparable<ValidationTarget>
Constructor and Description |
---|
ValidationTarget(String location,
TargetType type)
Creates an instance with a given location.
|
ValidationTarget(URL target)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ValidationTarget other) |
boolean |
equals(Object obj) |
Identifier |
getIdentifier()
Gets the identification string for this target.
|
String |
getLocation()
Gets the target location.
|
String |
getName()
Gets the name of the target.
|
TargetType |
getType()
Gets the target type.
|
int |
hashCode() |
boolean |
isLabel()
Tests whether the target is a label.
|
void |
setIdentifier(Identifier identifier)
Sets the identification string for this target.
|
void |
setLabel(boolean flag)
Sets whether the target is a label.
|
void |
setLocation(String location)
Sets the target location.
|
void |
setName(String newName)
Sets the target name.
|
void |
setType(TargetType type)
Sets the target type.
|
String |
toString() |
public ValidationTarget(URL target)
target
- the target file or directorypublic ValidationTarget(String location, TargetType type)
location
- the locationpublic TargetType getType()
public void setType(TargetType type)
type
- the new target typepublic String getLocation()
public void setLocation(String location)
location
- the new locationpublic String getName()
public void setName(String newName)
newName
- the new target namepublic boolean isLabel()
public void setLabel(boolean flag)
flag
- true, if the target is a labelpublic Identifier getIdentifier()
public void setIdentifier(Identifier identifier)
identifier
- the identifierpublic int compareTo(ValidationTarget other)
compareTo
in interface Comparable<ValidationTarget>
Copyright © 2010–2017 Planetary Data System. All rights reserved.