com.itextpdf.text.zugferd.checkers.basic
Class MeasurementUnitCode

java.lang.Object
  extended by com.itextpdf.text.zugferd.checkers.CodeValidation
      extended by com.itextpdf.text.zugferd.checkers.basic.MeasurementUnitCode

public class MeasurementUnitCode
extends CodeValidation

Class that can be used to check if a measurement unit code is valid.


Field Summary
static String DAY
           
static String HA
           
static String HR
           
static String ITEM
           
static String KG
           
static String KM
           
static String KWH
           
static String L
           
static String M
           
static String M2
           
static String M3
           
static String MIN
           
static String MM
           
static String MM2
           
static String NO
           
static String PCT
           
static String PR
           
static String SET
           
static String SUM
           
static String T
           
static String WK
           
 
Constructor Summary
MeasurementUnitCode()
           
 
Method Summary
 boolean isValid(String code)
          Checks if a specific code is valid.
 
Methods inherited from class com.itextpdf.text.zugferd.checkers.CodeValidation
check, isLowercase, isNumeric, isUppercase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ITEM

public static final String ITEM
See Also:
Constant Field Values

DAY

public static final String DAY
See Also:
Constant Field Values

HA

public static final String HA
See Also:
Constant Field Values

HR

public static final String HR
See Also:
Constant Field Values

KG

public static final String KG
See Also:
Constant Field Values

KM

public static final String KM
See Also:
Constant Field Values

KWH

public static final String KWH
See Also:
Constant Field Values

SUM

public static final String SUM
See Also:
Constant Field Values

L

public static final String L
See Also:
Constant Field Values

MIN

public static final String MIN
See Also:
Constant Field Values

MM2

public static final String MM2
See Also:
Constant Field Values

MM

public static final String MM
See Also:
Constant Field Values

M2

public static final String M2
See Also:
Constant Field Values

M3

public static final String M3
See Also:
Constant Field Values

M

public static final String M
See Also:
Constant Field Values

NO

public static final String NO
See Also:
Constant Field Values

PR

public static final String PR
See Also:
Constant Field Values

PCT

public static final String PCT
See Also:
Constant Field Values

SET

public static final String SET
See Also:
Constant Field Values

T

public static final String T
See Also:
Constant Field Values

WK

public static final String WK
See Also:
Constant Field Values
Constructor Detail

MeasurementUnitCode

public MeasurementUnitCode()
Method Detail

isValid

public boolean isValid(String code)
Description copied from class: CodeValidation
Checks if a specific code is valid.

Specified by:
isValid in class CodeValidation
Parameters:
code - the value you want to check
Returns:
true if the code is valid


Copyright © 2015. All Rights Reserved.