agave-realtime/realtime-core/src/main/java/org/iplantc/service/common/arn/AgaveResourceNameBuilder.java
/**
	 * Completes the building process of the underlying {@link AgaveResourceName} and validates
	 * the resulting object for completeness. This operation will <em>NOT</em> run permission
	 * checks on the accessibility of the resulting {@link AgaveResourceName}. 
	 * 
	 * @return
	 * @throws AgaveResourceNameValidationException
	 */
Completes the building process of the underlying  AgaveResourceName and validates
the resulting object for completeness. This operation will NOT run permission
checks on the accessibility of the resulting  AgaveResourceName.


Completes the building process of the underlying AgaveResourceName and validates the resulting object for completeness . This operation will NOT run permission checks on the accessibility of the resulting AgaveResourceName .
public AgaveResourceName build() throws AgaveResourceNameValidationException {
		ValidatorFactory factory = Validation.buildDefaultValidatorFactory();
        Validator validator = factory.getValidator();
        try {
        	Set<ConstraintViolation<AgaveResourceName>> violations = validator.validate(arn);
        	if (violations.isEmpty()) {
        		return arn;
        	} else {
        		throw new AgaveResourceNameValidationException(violations.iterator().next().getMessage()); 
        	}
        } catch (AgaveResourceNameValidationException e) {
        	throw e;
        } catch (Exception e) {
        	throw new AgaveResourceNameValidationException("Unexpected error while validating arn.", e); 
        }
	}
public AgaveResourceName build ( ) throws AgaveResourceNameValidationException { ValidatorFactory factory = Validation . buildDefaultValidatorFactory ( ) ; Validator validator = factory . getValidator ( ) ; try { Set < ConstraintViolation < AgaveResourceName > > violations = validator . validate ( arn ) ; if ( violations . isEmpty ( ) ) { return arn ; } else { throw new AgaveResourceNameValidationException ( violations . iterator ( ) . next ( ) . getMessage ( ) ) ; } } catch ( AgaveResourceNameValidationException e ) { throw e ; } catch ( Exception e ) { throw new AgaveResourceNameValidationException ( "Unexpected error while validating arn." , e ) ; } }
Completes the building process of the underlying {@link AgaveResourceName} and validates
 the resulting object for completeness.
Completes the building process of the underlying { @link AgaveResourceName } and validates the resulting object for completeness .