Package org.pharmgkb.parser.vcf.model
Class FormatMetadata
java.lang.Object
org.pharmgkb.parser.vcf.model.BaseMetadata
org.pharmgkb.parser.vcf.model.IdMetadata
org.pharmgkb.parser.vcf.model.IdDescriptionMetadata
org.pharmgkb.parser.vcf.model.FormatMetadata
This class represents a single VCF FORMAT metadata line.
##FORMAT=<ID=ID,Number=number,Type=type,Description="description">
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFormatMetadata(String id, String description, String number, FormatType type) FormatMetadata(Map<String, String> properties) -
Method Summary
Methods inherited from class org.pharmgkb.parser.vcf.model.IdDescriptionMetadata
getDescriptionMethods inherited from class org.pharmgkb.parser.vcf.model.IdMetadata
getIdMethods inherited from class org.pharmgkb.parser.vcf.model.BaseMetadata
ensureNoExtras, getPropertiesRaw, getPropertiesUnquoted, getPropertyKeys, getPropertyRaw, getPropertyUnquoted, putAndQuoteProperty, putPropertyRaw
-
Field Details
-
ID
- See Also:
-
DESCRIPTION
- See Also:
-
NUMBER
- See Also:
-
TYPE
- See Also:
-
-
Constructor Details
-
FormatMetadata
public FormatMetadata(@Nonnull String id, @Nonnull String description, @Nonnull String number, @Nonnull FormatType type) -
FormatMetadata
-
-
Method Details
-
init
public void init() -
getNumber
Value is either an integer or ".".- Returns:
- Null only when incorrectly constructed without one
-
getReservedNumber
- Returns:
- A special (reserved) Number ("A", "G", "R", or "."), or null if the Number is not reserved (it is numerical).
-
getType
- Returns:
- Null only when incorrectly constructed without one
-