org.openmuc.j62056.internal.cli.CliParameter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of j62056 Show documentation
Show all versions of j62056 Show documentation
j62056, a library for reading meters using IEC 62056-21 in modes A, B, C or D.
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);
}