com.cisco.provisioning.cpe.api
Class FileType

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

public final class FileType
extends Object
implements Serializable

All files added to the system are explicitly "typed". The FileType is used to specify the type of a file.

See Also:
Serialized Form

Field Summary
static FileType CABLELABS_CONFIGURATION_TEMPLATE
          CableLabs configuration template file type
static FileType CABLELABS_STATIC_CONFIGURATION
          CableLabs static configuration file type
static FileType FIRMWARE_IMAGE
          Device firmware file type
static FileType GENERIC
          Generic file type
static FileType JAR
          Java Archive file type
static FileType MIB
          MIB file type
static long serialVersionUID
          Description of the Field
 
Method Summary
 boolean equals(Object obj)
          Determines if this FileType object is equal to the specified object.
static FileType getInstance(String type)
          Get a FileType instance.
 String getName()
          Get the name of this file type.
 int hashCode()
          The hash code of this object.
 String toString()
          Get a String description of this file type.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Description of the Field

See Also:
Constant Field Values

FIRMWARE_IMAGE

public static final FileType FIRMWARE_IMAGE
Device firmware file type


GENERIC

public static final FileType GENERIC
Generic file type


JAR

public static final FileType JAR
Java Archive file type


MIB

public static final FileType MIB
MIB file type


CABLELABS_STATIC_CONFIGURATION

public static final FileType CABLELABS_STATIC_CONFIGURATION
CableLabs static configuration file type


CABLELABS_CONFIGURATION_TEMPLATE

public static final FileType CABLELABS_CONFIGURATION_TEMPLATE
CableLabs configuration template file type

Method Detail

getInstance

public static FileType getInstance(String type)
Get a FileType instance.

Parameters:
type - the name of a FileType.
Returns:
FileType constructed from the type argument.
Throws:
APIArgumentException - if null or unknown FileType name is specified.

getName

public String getName()
Get the name of this file type.

Returns:
the name of this file type.

hashCode

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

Overrides:
hashCode in class Object
Returns:
the hashcode of this object.

equals

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

Overrides:
equals in class Object
Parameters:
obj - object to be compared.
Returns:
true if the specified object is equal to this object. False if the objects are not equal.

toString

public String toString()
Get a String description of this file type.

Overrides:
toString in class Object
Returns:
String description of this file type