edu.columbia.surge.hashImpl
Class  ProperH
java.lang.Object
  |
  +--java.util.AbstractMap
        |
        +--java.util.HashMap
              |
              +--edu.columbia.surge.hashImpl.FDH
                    |
                    +--edu.columbia.surge.hashImpl.ProperH
- public class ProperH
- extends FDH
- implements Proper
   
The proper category. This is usually used when user wants to
 specify a name of a person. The lexical entry in the proper
 category is usually the name, which is the proper noun
 itself. There are methods to set the proper noun and also the
 plurality of the noun. A factory method is available to construct a
 Proper object in a more convenient fashion.  User can either use
 the ProperH class or directly use the constructor of this class to
 create instances of ProperH.
- See Also: 
 - Serialized Form
 
| 
Constructor Summary | 
ProperH()
 
          Constructor which creates a default instance of ProperFactoryH. | 
ProperH(java.lang.String lex)
 
          Constructor to compute and return an object of type Proper with
 the given lexical entry An InvalidConstructorException will be
 thrown if the given lexical entry is invalid. | 
ProperH(java.lang.String lex,
        boolean plurality)
 
          Construtor to compute and return an object of type Proper with
 the given lexical entry and specification of plurality. | 
 
| 
Method Summary | 
 void | 
setLex(java.lang.String lex)
 
          A method to set the lex/proper noun of the proper category. | 
 void | 
setPlurality(boolean plurality)
 
          A method to set the plurality of the proper noun. | 
 
| Methods inherited from class edu.columbia.surge.hashImpl.FDH | 
checkPath, 
checkPath, 
computePathDifference, 
getPath, 
getPath, 
putPath, 
putPath, 
putPathOverride, 
putPathOverride, 
stackToPath, 
stringToArray, 
toString, 
toString, 
toXML | 
 
| Methods inherited from class java.util.HashMap | 
clear, 
clone, 
containsKey, 
containsValue, 
entrySet, 
get, 
isEmpty, 
keySet, 
put, 
putAll, 
remove, 
size, 
values | 
 
| Methods inherited from class java.util.AbstractMap | 
equals, 
hashCode | 
 
| Methods inherited from class java.lang.Object | 
finalize, 
getClass, 
notify, 
notifyAll, 
wait, 
wait, 
wait | 
 
ProperH
public ProperH()
- Constructor which creates a default instance of ProperFactoryH.
 
ProperH
public ProperH(java.lang.String lex)
        throws InvalidConstructorException
- Constructor to compute and return an object of type Proper with
 the given lexical entry An InvalidConstructorException will be
 thrown if the given lexical entry is invalid.
- Parameters:
 lex - the proper noun
 
 
ProperH
public ProperH(java.lang.String lex,
               boolean plurality)
        throws InvalidConstructorException
- Construtor to compute and return an object of type Proper with
 the given lexical entry and specification of plurality. An
 InvalidConstructorException will be thrown if the given lexical
 entry is invalid.
- Parameters:
 lex - the proper nounplurality - set whether the proper noun should be plural,
 true to be plural.
 
 
setLex
public void setLex(java.lang.String lex)
- A method to set the lex/proper noun of the proper category.
- Specified by: 
 - setLex in interface Proper
 - Parameters:
 lex - the proper noun
 
 
setPlurality
public void setPlurality(boolean plurality)
- A method to set the plurality of the proper noun.
- Specified by: 
 - setPlurality in interface Proper
 - Parameters:
 plurality - set true to be plural and false to be singular