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

org.openmuc.j62056.internal.cli.CliParameter Maven / Gradle / Ivy

Go to download

j62056, a library for reading meters using IEC 62056-21 in modes A, B, C or D.

There is a newer version: 2.2.0
Show newest version
package org.openmuc.j62056.internal.cli;

public abstract class CliParameter {

    final String name;
    final String description;
    final boolean optional;
    boolean selected;

    CliParameter(CliParameterBuilder builder) {
        name = builder.name;
        description = builder.description;
        optional = builder.optional;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @return the optional
     */
    public boolean isOptional() {
        return optional;
    }

    public boolean isSelected() {
        return selected;
    }

    abstract int parse(String[] args, int i) throws CliParseException;

    abstract int appendSynopsis(StringBuilder sb);

    abstract void appendDescription(StringBuilder sb);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy