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

org.xmlet.xsdparser.xsdelements.enums.WhiteSpaceEnum 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 whiteSpace attribute.
 */
public enum WhiteSpaceEnum implements XsdEnum {

    PRESERVE ("preserve"),
    COLLAPSE ("collapse"),
    REPLACE ("replace");

    private final String value;

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

    public String getValue() {
        return value;
    }

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

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

    @Override
    public List getSupportedValues() {
        return Arrays.asList(PRESERVE.getValue(),
                            COLLAPSE.getValue(),
                            REPLACE.getValue());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy