Enum Class LineIdentifier
- All Implemented Interfaces:
Serializable
,Comparable<LineIdentifier>
,Constable
Enumeration declaring possible event types when parsing LDIF files.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSignifies the event when a new attribute is encountered.Record being parsed is a 'changetype' record.The current line is a comment and should be ignored.Indicates the current line parsed is a continuation of the previous line.An LDAP changetype control was encountered.Signals the end of record has been reached.Signifies the start of a new record in the file has been encountered: a DN declaration.Every LDIF file may optionally start with a version identifier of the form 'version: 1'.Parsed line should be ignored - used to skip remaining lines in a 'changetype' record. -
Method Summary
Modifier and TypeMethodDescriptionstatic LineIdentifier
Returns the enum constant of this class with the specified name.static LineIdentifier[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VersionIdentifier
Every LDIF file may optionally start with a version identifier of the form 'version: 1'. -
NewRecord
Signifies the start of a new record in the file has been encountered: a DN declaration. -
EndOfRecord
Signals the end of record has been reached. -
Attribute
Signifies the event when a new attribute is encountered. -
Continuation
Indicates the current line parsed is a continuation of the previous line. -
Comment
The current line is a comment and should be ignored. -
Control
An LDAP changetype control was encountered. -
ChangeType
Record being parsed is a 'changetype' record. -
Void
Parsed line should be ignored - used to skip remaining lines in a 'changetype' record.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-