Methods Summary |
---|
public boolean | equals(com.samscdrental.model.adt.CustomerID aCustomerID)Indicates whether some other object is "equal to" this one.
return theValue.equals( aCustomerID.theValue );
|
public boolean | equals(java.lang.Object obj)Indicates whether some other object is "equal to" this one.
return equals( ( CustomerID ) obj );
|
public void | fromString(java.lang.String aString)fromString
if ( aString.length() == LENGTH_OF_VALUE )
{
if ( !StringHelper.containsOnlyAlphanumerics( aString ) )
{
throw new CustomerIDFormatDeviation(
ERROR_CUSTOMER_ID_BAD_CHARACTERS );
}
theValue = aString;
}
else
{
throw new CustomerIDFormatDeviation( ERROR_CUSTOMER_ID_BAD_LENGTH );
}
|
boolean | isInvalid()
return theValue.equals( INVALID_ID );
|
public static com.samscdrental.model.adt.CustomerID | parseString(java.lang.String aString)
return new CustomerID( aString );
|
public java.lang.String | toString()Returns a string representation of the object.
return theValue;
|