cds.simbad.ident
Class LgqE

java.lang.Object
  extended bycds.simbad.ident.Instruction
      extended bycds.simbad.ident.LgqE
All Implemented Interfaces:
java.io.Serializable

public class LgqE
extends Instruction

See Also:
Serialized Form

Field Summary
private static java.lang.String carmax
           
private static int carmaxCode
           
private static int codeLetter
           
private static java.lang.String gLetters
           
private static int NB_GREEK_LETTERS
           
(package private) static char[] syn_num
           
 
Fields inherited from class cds.simbad.ident.Instruction
ALIG_LEFT, ALIG_RIGHT, alignment, BINARY, binPos, BLANC_RE, CARMAX, CAT, catName, CH, CONST, DE, DECIMAL, DECIMALES, DEFAULT_BINARY, DEFAULT_DECIMAL, DEFAULT_DELIMITOR, DEFAULT_FILLER, DEFAULT_MIN, DEFAULT_OPTIONAL, DELIMITOR, FACULTATIF, filler, FORMAT, IND, instrNames, INT, isBinary, JUSTIFICATION, LET, LGQ, LIST, LONGUEUR, MAJ, MAX_DEFAULT_CARMAX, MAXIMUM, MIN, MIN_DEFAULT_CARMAX, MINIMUM, NO_ALIGNMENT, NO_BIN_POS, NO_FILLER, NOM, optional, PARAM_FINISHED, paramNames, PGM, PLUS, POSITION, RA, regexGen, ROM, SPACE, SPACES_RE, STRICT, TAB, TEXT, TEXTE, UINT, valuelim, VAR, VAR_LENGTH, vec_format_car, ZONE
 
Constructor Summary
LgqE(java.lang.String params)
          Constructor
 
Method Summary
private  int getLgqCode(java.lang.String strgrq)
          Returns the code of the greek letter (alf=1).
private  java.lang.String getLgqString(int code)
          Get the standard greek letter name from its code
 boolean normalize(java.lang.String str, java.lang.StringBuffer norm)
          Normalization of the field
 byte[] toBin()
          Returns the binary code of the greek letter
 java.lang.String toRE()
          Returns the regular expression used to analyse this field
 java.lang.String toString()
          Returns a string display of the whole instruction
 
Methods inherited from class cds.simbad.ident.Instruction
align, appendBinary, appendCarmax, appendCarmax, appendClose, appendDecimal, appendDelimitor, appendFormat, appendJustification, appendLength, appendList, appendMaximum, appendMinimum, appendMinimum, appendName, appendNom, appendOptional, appendPlus, appendPosition, appendStrict, appendText, displayError, equals, extractParams, format2dbl, format2RE, getBinaryPosition, getCatName, getInstrCode, getInstrName, getInteger, getLong, getNextParam, getRegexGen, isBinary, isOptional, isREKeyword, isREKeyword, normalize, optional, setBinary, setJustification, setRegexGen, toByteArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NB_GREEK_LETTERS

private static final int NB_GREEK_LETTERS
See Also:
Constant Field Values

gLetters

private static java.lang.String gLetters

syn_num

static char[] syn_num

carmaxCode

private static int carmaxCode

carmax

private static java.lang.String carmax

codeLetter

private static int codeLetter
Constructor Detail

LgqE

public LgqE(java.lang.String params)
     throws IdentifierDescriptionException
Constructor

Parameters:
params - parameter list string
Throws:
IdentifierDescriptionException
Method Detail

toString

public java.lang.String toString()
Returns a string display of the whole instruction

Overrides:
toString in class Instruction
Returns:
the instruction in the form of a string

getLgqCode

private final int getLgqCode(java.lang.String strgrq)
Returns the code of the greek letter (alf=1).
The greek letter name can be one the the standard synonyms.

Parameters:
strgrq - greek letter string
Returns:
the greek letter code (1-24), or 0 if the string is not a greek letter

getLgqString

private final java.lang.String getLgqString(int code)
Get the standard greek letter name from its code

Parameters:
code - code value (between 1 and 24)
Returns:
the standard greek letter name

toRE

public java.lang.String toRE()
Returns the regular expression used to analyse this field

Overrides:
toRE in class Instruction
Returns:
the regular expression string

normalize

public boolean normalize(java.lang.String str,
                         java.lang.StringBuffer norm)
Normalization of the field

Overrides:
normalize in class Instruction
Parameters:
str - string to normalize
norm - stringbuffer to complete with the normalized string
Returns:
true or false whether the normalization succeeded or not

toBin

public byte[] toBin()
Returns the binary code of the greek letter

Overrides:
toBin in class Instruction
Returns:
the code of the greek letter in binary format (1 byte)