|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.EnumeratedValue
com.starteam.File.EOLFormat
public static final class File.EOLFormat
The EOL format of a text file on disk.
File.getEOLFormat(),
Serialized Form| Field Summary | |
|---|---|
static File.EOLFormat[] |
ALL
All legal EOL format values. |
static File.EOLFormat |
CLIENT_DEFINED
The EOL format of the working file on disk is determined by the client. |
static File.EOLFormat |
FIXED_CR
The working file on disk always uses a carriage return to denote end-of-line. |
static File.EOLFormat |
FIXED_CRLF
The working file on disk always uses a carriage return / line feed sequence to denote end-of-line. |
static File.EOLFormat |
FIXED_LF
The working file on disk always uses a line feed to denote end-of-line. |
static File.EOLFormat |
PLATFORM
The native EOLFormat for this platform; one of FIXED_CRLF, FIXED_LF or FIXED_CR. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Compares this EOLFormat with the Object o |
static File.EOLFormat |
fromEOL(java.lang.String eol)
Determines the EOLFormat whose end-of-line character sequence matches the given one. |
static File.EOLFormat |
fromEOLFormatID(int id)
Determines the EOLFormat whose end-of-line character sequence matches the given LineReader EOL ID. |
static File.EOLFormat |
fromID(int id)
Gets the EOLFormat value corresponding to the given ID. |
static File.EOLFormat |
fromValue(EnumeratedValue value)
Gets the EOLFormat value corresponding to the given EnumeratedValue. |
int |
getCode()
Return the enum code for this object. |
java.lang.String |
getDisplayName()
Returns the display name of the EOLFormat. |
java.lang.String |
getEOL()
Gets the actual end-of-line character sequence for this EOLFormat. |
int |
getID()
The ID of the corresponding EnumeratedValue, as defined in EOLFormatProperty. |
Platform.EOL |
getPlatformEOL()
An end of line sequence associated with this EOL format, as used in LineReader. |
int |
hashCode()
Returns a hashCode for this EOLFormat instance |
boolean |
isFixed()
Returns true if this is one of the fixed EOL formats; false for CLIENT_DEFINED. |
File.EOLFormat |
toPropertyValue()
Gets the EOLFormat used as the default value of the FILE_EOL_CHARACTER property for files whose actual EOLFormat is this one. |
java.lang.String |
toString()
Returns the name of this EOL instance |
| Methods inherited from class com.starteam.EnumeratedValue |
|---|
addChild, assignParent, copy, disable, enable, findChild, getChildValues, getDebugString, getDepthInHierarchy, getDisplayNameTranslations, getInternalName, getParentValue, getSortOrder, hasChildValues, isClosedState, isDisabled, isEnabled, isEqualTo, isLeafValue, isRootValue, isSelectable, setAfter, setChildValues, setClosedState, setDisplayName, setDisplayNameTranslations, setEnabled, setInternalName, setSelectable, setSortOrder |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final File.EOLFormat CLIENT_DEFINED
public static final File.EOLFormat FIXED_CR
public static final File.EOLFormat FIXED_CRLF
public static final File.EOLFormat FIXED_LF
public static final File.EOLFormat PLATFORM
public static final File.EOLFormat[] ALL
| Method Detail |
|---|
public int getCode()
getCode in class EnumeratedValuepublic int getID()
File.Type.EOLFormatPropertypublic java.lang.String getEOL()
public java.lang.String getDisplayName()
getDisplayName in class EnumeratedValuepublic Platform.EOL getPlatformEOL()
Platform.EOL.CR,
Platform.EOL.CRLF,
Platform.EOL.LFpublic boolean isFixed()
public static File.EOLFormat fromValue(EnumeratedValue value)
value - One of the EnumeratedValues of an EOLFormatProperty.
public static File.EOLFormat fromID(int id)
id - The ID of an EOLFormat.
public static File.EOLFormat fromEOL(java.lang.String eol)
eol - String
File.EOLFormat.getEOL()public static File.EOLFormat fromEOLFormatID(int id)
id - int
File.getEOLFormat()public File.EOLFormat toPropertyValue()
Returns CLIENT_DEFINED if this EOLFormat matches the PLATFORM EOLFormat; otherwise, returns this EOLFormat itself.
public boolean equals(java.lang.Object o)
equals in class EnumeratedValueo - the Object to be compared for equality
public int hashCode()
hashCode in class EnumeratedValuepublic java.lang.String toString()
toString in class EnumeratedValue
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||