Class URLProcessor_bad

java.lang.Object
   |
   +----URLProcessor
           |
           +----URLProcessor_bad

class URLProcessor_bad
extends URLProcessor

Constructor Index

 o URLProcessor_bad()

Method Index

 o decideUrl()
ugly nested-if code
 o isMemberWestAlliance(String)
this method is replaced by code in MemberCondition in URLProcessor_good
 o main(String[])
This main method lets you run the code as an application without using a GUI.

Constructors

 o URLProcessor_bad
 URLProcessor_bad()

Methods

 o decideUrl
 void decideUrl()
ugly nested-if code

Overrides:
decideUrl in class URLProcessor
 o isMemberWestAlliance
 boolean isMemberWestAlliance(String id)
this method is replaced by code in MemberCondition in URLProcessor_good

 o main
 public static void main(String args[])
This main method lets you run the code as an application without using a GUI. Standard output is used to display results.