Package net.sourceforge.uiq3.fx603p
Class Interface
- java.lang.Object
-
- net.sourceforge.uiq3.fx603p.Interface
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
Enable
When true the interface is enabled.private static Logger
logger
class logger instanceprivate static String[]
Special_Character
Characters which are not ASCII and can be used in Alpha strings.private static String[]
Special_Character_Token
Token used for non ASCII characters.private static String
TAG
class logger tag.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Interface()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static short[]
Convert_To_Alpha(@NotNull String Token_Text)
static String
Convert_To_Java(int @NotNull [] Alpha_String)
static String
Convert_To_Java(short Alpha)
static String
Convert_To_Java(short @Nullable [] Alpha_String)
static String
Convert_To_Token(short Alpha)
boolean
Is_Enabled()
A disabled interface will ignore all input and output.void
Set_Enable(boolean Enable)
A disabled interface will ignore all input and output.@NotNull String
toString()
-
-
-
Field Detail
-
Special_Character
private static final String[] Special_Character
Characters which are not ASCII and can be used in Alpha strings.
-
Special_Character_Token
private static final String[] Special_Character_Token
Token used for non ASCII characters.
-
TAG
private static final String TAG
class logger tag.
-
logger
private static final Logger logger
class logger instance
-
Enable
private boolean Enable
When true the interface is enabled. A disabled interface will ignore all input and output.
-
-
Method Detail
-
Convert_To_Alpha
public static short[] Convert_To_Alpha(@NotNull @NotNull String Token_Text) throws IllegalArgumentException, NumberFormatException, StringIndexOutOfBoundsException
- Parameters:
Token_Text
- A Java text (like used for RSSAVE)- Returns:
- Java String
- Throws:
IllegalArgumentException
- a []-Token was found but not convertedNumberFormatException
- the number of an AR command could not be parsedStringIndexOutOfBoundsException
- the ] is missing
-
Convert_To_Java
public static String Convert_To_Java(int @NotNull [] Alpha_String)
- Parameters:
Alpha_String
- Alpha Line- Returns:
- Java String
-
Convert_To_Java
public static String Convert_To_Java(short Alpha)
- Parameters:
Alpha
- Alpha Line- Returns:
- Java String
-
Convert_To_Java
public static String Convert_To_Java(short @Nullable [] Alpha_String)
- Parameters:
Alpha_String
- Alpha Line- Returns:
- Java String
-
Convert_To_Token
public static String Convert_To_Token(short Alpha)
- Parameters:
Alpha
- Alpha Line- Returns:
- Java String
-
Is_Enabled
public final boolean Is_Enabled()
A disabled interface will ignore all input and output.- Returns:
- When true the interface is enabled.
-
Set_Enable
public final void Set_Enable(boolean Enable)
A disabled interface will ignore all input and output.- Parameters:
Enable
- Set to true to enable the interface.
-
-