/** * Construct PositiveLength by the parsing the given string * * @param length * The String to be parsed into PositiveLength * @throws NumberFormatException if the given argument is not a valid PostitiveLength */ public PositiveLength(String length) throws NumberFormatException { super(length); if (!isValid(length)) { throw new NumberFormatException( "parameter is invalid for datatype PositiveLength"); } }
/** * Construct PositiveLength by the parsing the given string * * @param length * The String to be parsed into PositiveLength * @throws NumberFormatException if the given argument is not a valid PostitiveLength */ public PositiveLength(String length) throws NumberFormatException { super(length); if (!isValid(length)) { throw new NumberFormatException( "parameter is invalid for datatype PositiveLength"); } }
/** * Construct PositiveLength by the parsing the given string * * @param length * The String to be parsed into PositiveLength * @throws NumberFormatException if the given argument is not a valid PostitiveLength */ public PositiveLength(String length) throws NumberFormatException { super(length); if (!isValid(length)) { throw new NumberFormatException( "parameter is invalid for datatype PositiveLength"); } }