gov.nasa.pds.tools.label.validate
Class Validator

java.lang.Object
  extended by gov.nasa.pds.tools.label.validate.Validator

public class Validator
extends Object

Version:
$Revision: 8249 $
Author:
pramirez, jagander

Field Summary
static String CAT_NAME_CHECK
           
static String DICTIONARY_CHECK
           
static String DUP_ID_CHECK
           
static String FILE_CHAR_CHECK
           
static String LINE_LEN_CHECK
           
 
Constructor Summary
Validator()
           
 
Method Summary
 void addValidator(LabelValidator validator)
           
 boolean getProperty(String property)
           
protected static void initDefaultDictionary()
           
 boolean performsCatalogNameCheck()
           
 boolean performsCharacteristicCheck()
           
 boolean performsDictionaryCheck()
           
 boolean performsDuplicateIdCheck()
           
 boolean performsLineLengthCheck()
           
 void setCatalogNameCheck(Boolean flag)
           
 void setDictionaryCheck(Boolean flag)
           
 void setDuplicateIdCheck(Boolean flag)
           
 void setFileCharacteristicCheck(Boolean flag)
           
 void setLineLengthCheck(Boolean flag)
           
 void setProperties(Map<String,Boolean> properties)
           
 void setProperty(String property, Boolean flag)
           
 void validate(Label label)
           
 void validate(Label label, Dictionary dictionary)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LINE_LEN_CHECK

public static final String LINE_LEN_CHECK
See Also:
Constant Field Values

DUP_ID_CHECK

public static final String DUP_ID_CHECK
See Also:
Constant Field Values

CAT_NAME_CHECK

public static final String CAT_NAME_CHECK
See Also:
Constant Field Values

FILE_CHAR_CHECK

public static final String FILE_CHAR_CHECK
See Also:
Constant Field Values

DICTIONARY_CHECK

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

Validator

public Validator()
Method Detail

initDefaultDictionary

protected static void initDefaultDictionary()

validate

public void validate(Label label)

validate

public void validate(Label label,
                     Dictionary dictionary)

getProperty

public boolean getProperty(String property)

setProperty

public void setProperty(String property,
                        Boolean flag)

setProperties

public void setProperties(Map<String,Boolean> properties)

setLineLengthCheck

public void setLineLengthCheck(Boolean flag)

performsLineLengthCheck

public boolean performsLineLengthCheck()

setDictionaryCheck

public void setDictionaryCheck(Boolean flag)

performsDictionaryCheck

public boolean performsDictionaryCheck()

setCatalogNameCheck

public void setCatalogNameCheck(Boolean flag)

performsCatalogNameCheck

public boolean performsCatalogNameCheck()

setDuplicateIdCheck

public void setDuplicateIdCheck(Boolean flag)

performsDuplicateIdCheck

public boolean performsDuplicateIdCheck()

setFileCharacteristicCheck

public void setFileCharacteristicCheck(Boolean flag)

performsCharacteristicCheck

public boolean performsCharacteristicCheck()

addValidator

public void addValidator(LabelValidator validator)


Copyright © 2005-2011 Planetary Data System. All Rights Reserved.