All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xmlet.xsdparser.xsdelements.enums.FinalEnum Maven / Gradle / Ivy

package org.xmlet.xsdparser.xsdelements.enums;

import java.util.Arrays;
import java.util.List;

/**
 * An {@link Enum} with all the possible values for the final attribute.
 */
public enum FinalEnum implements XsdEnum {

    EXTENSION ("extension"),
    RESTRICTION ("restriction"),
    ALL ("#all");

    private final String value;

    FinalEnum(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    @Override
    public String getVariableName() {
        return "final";
    }

    @Override
    public FinalEnum[] getValues() {
        return FinalEnum.values();
    }

    @Override
    public List getSupportedValues() {
        return Arrays.asList(EXTENSION.getValue(),
                             RESTRICTION.getValue(),
                             ALL.getValue());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy