Example usage for javax.naming InvalidNameException InvalidNameException

List of usage examples for javax.naming InvalidNameException InvalidNameException

Introduction

In this page you can find the example usage for javax.naming InvalidNameException InvalidNameException.

Prototype

public InvalidNameException() 

Source Link

Document

Constructs an instance of InvalidNameException with all fields set to null.

Usage

From source file:org.openflexo.foundation.wkf.FlexoProcess.java

public void setBusinessDataVariableName(String aName)
        throws InvalidNameException, DuplicatePropertyNameException {
    if (aName == null) {
        return;//from w  w w  .j  av a  2 s  . c  om
    }
    if (ReservedKeyword.contains(aName)) {
        throw new InvalidNameException();
    }
    if (getBusinessDataProperty() != null) {
        getBusinessDataProperty().setName(aName);
    } else if (getProcessDMEntity() != null) {
        if (!aName.trim().equals("")) {
            getProcessDMEntity().createBusinessDataProperty(aName);
        }
    }
}