Methods Summary |
---|
public boolean | equals(com.samscdrental.model.adt.PhysicalID aPhysicalID)Indicates whether some other object is "equal to" this one.
return ( aPhysicalID.theValue.equals( this.theValue ) );
|
public boolean | equals(java.lang.Object obj)Indicates whether some other object is "equal to" this one.
return equals( ( PhysicalID ) obj );
|
private void | fromString(java.lang.String aString)fromString
if ( aString.length() == LENGTH_OF_VALUE )
{
if ( !StringHelper.containsOnlyNumerics( aString ) )
{
throw new PhysicalIDFormatDeviation(
ERROR_PHYSICAL_ID_BAD_CHARACTERS );
}
theValue = aString;
}
else
{
throw new PhysicalIDFormatDeviation( ERROR_PHYSICAL_ID_BAD_LENGTH );
}
|
boolean | isInvalid()
return theValue.equals( INVALID_ID );
|
public static com.samscdrental.model.adt.PhysicalID | parseString(java.lang.String aString)
return new PhysicalID( aString );
|
public java.lang.String | toString()
return theValue;
|