public class AltStructuralVariant
extends java.lang.Object
##ALT=<ID=type,Description=description>
Where ID is a colon-delimited list of identifiers. Some of these identifiers are reserved, as coded in the
ReservedStructuralVariantCode class. The first identifier (at level 0) is required to be reserved.
As explicitly stated in the spec, these codes are case-sensitive.
Example:
AltStructuralVariant alt = new AltStructuralVariant("INS:ME:LINE");
alt.getReservedComponent(0); // ReservedStructuralVariantCode.Insertion
alt.getReservedComponent(1); // ReservedStructuralVariantCode.MobileElement
alt.getReservedComponent(2); // null, because it's not a reserved code
alt.getComponent(); // "LINE"
| Constructor and Description |
|---|
AltStructuralVariant(java.lang.String string) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getComponent(int level) |
java.util.List<java.lang.String> |
getComponents() |
ReservedStructuralVariantCode |
getReservedComponent(int level) |
java.lang.String |
toString() |
public AltStructuralVariant(@Nonnull
java.lang.String string)
string - The full code (e.g. INS:ME:LINE:type-a1)@Nonnull public java.util.List<java.lang.String> getComponents()
@Nonnull public java.lang.String getComponent(int level)
java.lang.ArrayIndexOutOfBoundsException@Nullable public ReservedStructuralVariantCode getReservedComponent(int level)
java.lang.ArrayIndexOutOfBoundsException@Nonnull public java.lang.String toString()
toString in class java.lang.Object