com.starteam
Class File.CharacterSet

java.lang.Object
  extended by com.starteam.EnumeratedValue
      extended by com.starteam.File.CharacterSet
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
File

public static final class File.CharacterSet
extends EnumeratedValue

The character set of a working file on disk.

See Also:
File.Type.CharacterSetProperty, File.Type.PropertyCollection.CHARACTER_SET, Serialized Form

Field Summary
static File.CharacterSet[] ALL
          All legal Character Set values.
static File.CharacterSet ASCII
          The working file on disk has ASCII content.
static File.CharacterSet BINARY
          The working file on disk has Binary content.
static File.CharacterSet UNICODE
          The working file on disk has Unicode content.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares this CharacterSet with the Object o for equality
static File.CharacterSet fromID(int id)
          Gets the CharacterSet value corresponding to the given ID.
static File.CharacterSet fromValue(EnumeratedValue value)
          Gets the CharacterSet value corresponding to the given EnumeratedValue.
 int getCode()
          Return the enum code for this object.
 int getID()
          The ID of the corresponding EnumeratedValue, as defined in CharacterSetProperty.
 int hashCode()
          Returns a hashCode for this CharacterSet
 
Methods inherited from class com.starteam.EnumeratedValue
addChild, assignParent, copy, disable, enable, findChild, getChildValues, getDebugString, getDepthInHierarchy, getDisplayName, getDisplayNameTranslations, getInternalName, getParentValue, getSortOrder, hasChildValues, isClosedState, isDisabled, isEnabled, isEqualTo, isLeafValue, isRootValue, isSelectable, setAfter, setChildValues, setClosedState, setDisplayName, setDisplayNameTranslations, setEnabled, setInternalName, setSelectable, setSortOrder, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ASCII

public static final File.CharacterSet ASCII
The working file on disk has ASCII content.


BINARY

public static final File.CharacterSet BINARY
The working file on disk has Binary content.


UNICODE

public static final File.CharacterSet UNICODE
The working file on disk has Unicode content.


ALL

public static final File.CharacterSet[] ALL
All legal Character Set values.

Method Detail

getID

public int getID()
The ID of the corresponding EnumeratedValue, as defined in CharacterSetProperty.

Returns:
The ID of this CharacterSet value.
See Also:
File.Type.CharacterSetProperty

getCode

public int getCode()
Return the enum code for this object.

Overrides:
getCode in class EnumeratedValue
Returns:
the enum code for this object.

fromValue

public static File.CharacterSet fromValue(EnumeratedValue value)
Gets the CharacterSet value corresponding to the given EnumeratedValue.

Parameters:
value - One of the EnumeratedValues of a CharacterSetProperty.
Returns:
The corresponding CharacterSet value, or null.

fromID

public static File.CharacterSet fromID(int id)
Gets the CharacterSet value corresponding to the given ID.

Parameters:
id - A CharacterSet ID.
Returns:
The corresponding CharacterSet value, or null.

equals

public boolean equals(java.lang.Object o)
Compares this CharacterSet with the Object o for equality

Overrides:
equals in class EnumeratedValue
Parameters:
o - the Object to compare to
Returns:
true if o is a CharacterSet and is the same as this one

hashCode

public int hashCode()
Returns a hashCode for this CharacterSet

Overrides:
hashCode in class EnumeratedValue
Returns:
a hashCode for this CharacterSet


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.