com.cisco.provisioning.cpe.api
Class FileName

java.lang.Object
  extended by com.cisco.provisioning.cpe.api.Key
      extended by com.cisco.provisioning.cpe.api.FileName
All Implemented Interfaces:
Serializable

public final class FileName
extends Key
implements Serializable

The FileName class is used to represent file names.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Method Summary
 boolean equals(Object obj)
          Determines if this Node object is equal to the specified object.
 String getFileName()
          Returns the name of this file.
static FileName getFileName(String fileName)
          Gets a file object for the file name specified.
 KeyType getKeyType()
          Get the Key Type of this object.
 int hashCode()
          The hash code of this object.
 String toString()
          Returns a String description of this Node.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Method Detail

getFileName

public static FileName getFileName(String fileName)
Gets a file object for the file name specified.

Parameters:
fileName - The name of the file.
Returns:
FileName object representing the specified file name or null

getFileName

public String getFileName()
Returns the name of this file.

Returns:
The name of this file

hashCode

public int hashCode()
The hash code of this object. See Object.hashCode() for more information

Overrides:
hashCode in class Object
Returns:
The hascode of this object

equals

public boolean equals(Object obj)
Determines if this Node object is equal to the specified object.

Overrides:
equals in class Object
Returns:
True if the specified object is equal to this object. False if the objects are not equal.

toString

public String toString()
Returns a String description of this Node.

Overrides:
toString in class Object
Returns:
A String description of this Node.

getKeyType

public KeyType getKeyType()
Get the Key Type of this object.

Specified by:
getKeyType in class Key
Returns:
the key type of this object.