站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

VariableInputValidator (NetBeans VCS API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.modules.vcscore.util
Class VariableInputValidator

java.lang.Object
  extended byorg.netbeans.modules.vcscore.util.VariableInputValidator

public class VariableInputValidator
extends Object

This class validates the variable input components and provides the result of that validation.


Field Summary
static String VALIDATOR
           
static String VALIDATOR_FILE
           
static String VALIDATOR_FOLDER
           
static String VALIDATOR_JAVA
           
static String VALIDATOR_NON_EMPTY
           
static String VALIDATOR_REGEXP_MATCH
           
static String VALIDATOR_REGEXP_UNMATCH
           
 
Constructor Summary
VariableInputValidator(VariableInputComponent component, String validator)
          Creates new VariableInputValidator object
 
Method Summary
 String getMessage()
          Get the validadtion message.
 String getVariable()
          Get the name of variable where validation has failed.
 boolean isValid()
          Tells whether the validation was successfull.
protected  void setMessage(String message)
           
protected  void setValid(boolean valid)
           
protected  void setVariable(String variable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALIDATOR

public static final String VALIDATOR
See Also:
Constant Field Values

VALIDATOR_NON_EMPTY

public static final String VALIDATOR_NON_EMPTY
See Also:
Constant Field Values

VALIDATOR_REGEXP_MATCH

public static final String VALIDATOR_REGEXP_MATCH
See Also:
Constant Field Values

VALIDATOR_REGEXP_UNMATCH

public static final String VALIDATOR_REGEXP_UNMATCH
See Also:
Constant Field Values

VALIDATOR_FILE

public static final String VALIDATOR_FILE
See Also:
Constant Field Values

VALIDATOR_FOLDER

public static final String VALIDATOR_FOLDER
See Also:
Constant Field Values

VALIDATOR_JAVA

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

VariableInputValidator

public VariableInputValidator(VariableInputComponent component,
                              String validator)
Creates new VariableInputValidator object

Method Detail

setValid

protected void setValid(boolean valid)

isValid

public boolean isValid()
Tells whether the validation was successfull.


setMessage

protected void setMessage(String message)

getMessage

public String getMessage()
Get the validadtion message.

Returns:
the localized validation message or null, when no validation is available.

setVariable

protected void setVariable(String variable)

getVariable

public String getVariable()
Get the name of variable where validation has failed.

Returns:
the name of variable or null, when no variable is available.

 

Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.