Package org.apache.maven.index.reader
Enum Record.Type
- All Implemented Interfaces:
Serializable
,Comparable<Record.Type>
,java.lang.constant.Constable
- Enclosing class:
- Record
Types of returned records returned from index.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSpecial record, containing all the Maven "groupId"s that are enlisted on the index.Artifact ADD record.Artifact REMOVE record.Descriptor record.Special record, containing all the root groups of Maven "groupId"s that are enlisted on the index. -
Method Summary
Modifier and TypeMethodDescriptionstatic Record.Type
Returns the enum constant of this type with the specified name.static Record.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DESCRIPTOR
Descriptor record. Can be safely ignored. Contains following entries: -
ARTIFACT_ADD
Artifact ADD record. Records of this type should be added to your indexing system. Contains following entries:Record.REC_MODIFIED
(when record was added/modified on index)Record.GROUP_ID
Record.ARTIFACT_ID
Record.VERSION
Record.CLASSIFIER
(optional)Record.FILE_EXTENSION
Record.FILE_MODIFIED
Record.FILE_SIZE
Record.PACKAGING
Record.HAS_SOURCES
Record.HAS_JAVADOC
Record.HAS_SIGNATURE
Record.NAME
Record.DESCRIPTION
Record.SHA1
Record.CLASSNAMES
(optional)Record.PLUGIN_PREFIX
(optional, for maven-plugins only)Record.PLUGIN_GOALS
(optional, for maven-plugins only)
-
ARTIFACT_REMOVE
Artifact REMOVE record. In case of incremental updates, signals that this artifact was removed. Records of this type should be removed from your indexing system. Contains following entries:Record.REC_MODIFIED
(when record was deleted from index)Record.GROUP_ID
Record.ARTIFACT_ID
Record.VERSION
Record.CLASSIFIER
(optional)Record.FILE_EXTENSION
(ifRecord.CLASSIFIER
present)Record.PACKAGING
(optional)
-
ALL_GROUPS
Special record, containing all the Maven "groupId"s that are enlisted on the index. Can be safely ignored. Contains following entries: -
ROOT_GROUPS
Special record, containing all the root groups of Maven "groupId"s that are enlisted on the index. Can be safely ignored. Contains following entries:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-