Squeak Class Documentation category index | class index  
 
WonderlandVerifier
  category: Balloon3D-Wonderland Misc
  superclass: Object
  subclasses:

This class implements methods for verifying the parameters passed to methods. The intention is that each parameter is verified, and if it's not of the expected type then an error message is constructed and displayed to the user. This provides a gentler method of informing the user of errors than throwing them into the debugger.

instance methods
  no messages
 

class methods
  parameter parsing
  Verify0To1Number:
VerifyActor:
VerifyColor:
VerifyCondition:
VerifyDimension:
VerifyDirection:
VerifyDuration:
VerifyLight:
VerifyLocation:
VerifyNonNegativeNumber:
VerifyNumber:
VerifyNumberOrTriple:
VerifyPoint:
VerifyPointOfView:
VerifyPositiveNumber:
VerifyReferenceFrame:
VerifyStyle:
VerifyTarget:
VerifyTargetOrPixel:
VerifyTriple:
VerifyZeroArgumentBlock:

instance methods
  no messages top  

class methods
  parameter parsing top  
 

Verify0To1Number:

If the parameter is a valid number this method returns true, otherwise it throws an exception


 

VerifyActor:

If the parameter is a valid WonderlandActor (or subclass) this method returns true, otherwise it throws an exception


 

VerifyColor:

If the parameter is a valid color (triple or named color) this method returns true, otherwise it throws an exception


 

VerifyCondition:

If the parameter is a valid style (BlockContext that takes 1 parameter and returns a boolean) this method returns true, otherwise it throws an exception


 

VerifyDimension:

If the parameter is a valid dimension this method returns true, otherwise it throws an exception


 

VerifyDirection:

If the parameter is a valid direction this method returns true, otherwise it throws an exception


 

VerifyDuration:

If the parameter is a valid duration this method returns true, otherwise it throws an exception


 

VerifyLight:

If the parameter is a valid type of light this method returns true, otherwise it throws an exception


 

VerifyLocation:

If the parameter is a valid location this method returns true, otherwise it throws an exception


 

VerifyNonNegativeNumber:

If the parameter is a valid number this method returns true, otherwise it throws an exception


 

VerifyNumber:

If the parameter is a valid number this method returns true, otherwise it throws an exception


 

VerifyNumberOrTriple:

If the parameter is a number or a valid triple this method returns true, otherwise it throws an exception


 

VerifyPoint:

If the parameter is a valid point this method returns true, otherwise it throws an exception


 

VerifyPointOfView:

If the parameter is a valid point of view (sextuple or kind of WonderlandActor) this method returns true, otherwise it throws an exception


 

VerifyPositiveNumber:

If the parameter is a valid number this method returns true, otherwise it throws an exception


 

VerifyReferenceFrame:

If the parameter is a valid WonderlandActor (or subclass) or WonderlandScene this method returns true, otherwise it throws an exception


 

VerifyStyle:

If the parameter is a valid style (BlockContext that takes 2 parameters) this method returns true, otherwise it throws an exception


 

VerifyTarget:

If the parameter is a valid target (triple or kind of WonderlandActor) this method returns true, otherwise it throws an exception


 

VerifyTargetOrPixel:

If the parameter is a valid target (triple or kind of WonderlandActor) or a pixel coordinate this method returns true, otherwise it throws an exception


 

VerifyTriple:

If the parameter is a valid triple this method returns true, otherwise it throws an exception


 

VerifyZeroArgumentBlock:

Return true if the parameter is a zero argument block, otherwise throw an exception