public class ValidationTarget extends java.lang.Object implements java.lang.Comparable<ValidationTarget>
Constructor and Description |
---|
ValidationTarget(java.lang.String location,
TargetType type)
Creates an instance with a given location.
|
ValidationTarget(java.net.URL target)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ValidationTarget other) |
boolean |
equals(java.lang.Object obj) |
Identifier |
getIdentifier()
Gets the identification string for this target.
|
java.lang.String |
getLocation()
Gets the target location.
|
java.lang.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(java.lang.String location)
Sets the target location.
|
void |
setName(java.lang.String newName)
Sets the target name.
|
void |
setType(TargetType type)
Sets the target type.
|
java.lang.String |
toString() |
public ValidationTarget(java.net.URL target)
target
- the target file or directorypublic ValidationTarget(java.lang.String location, TargetType type)
location
- the locationpublic TargetType getType()
public void setType(TargetType type)
type
- the new target typepublic java.lang.String getLocation()
public void setLocation(java.lang.String location)
location
- the new locationpublic java.lang.String getName()
public void setName(java.lang.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 java.lang.Comparable<ValidationTarget>
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2010-2018 Planetary Data System. All Rights Reserved.