org.okiproject.serviceapi.rules
Interface Subject

All Superinterfaces:
java.io.Serializable

public interface Subject
extends java.io.Serializable

Copyright (c) 2001 Massachusetts Institute of Technology

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

See Also:
Subjects, SubjectType,

$Source: /cvs/oki/org/okiproject/serviceapi/doc/rules/org/okiproject/serviceapi/rules/Subject.html,v $


Method Summary
 java.lang.Object getKey()
          Method getKey
 java.lang.String getName()
          Method getName
 java.util.Properties getProperties()
          Method getProperties
 SubjectType getSubjectType()
          Method getSubjectType
 java.lang.Boolean isFoundInRules()
          Determines if this Subject has a matching Subject in the Rules DB.
 void refresh()
          Refresh properties from a changing Rules DB.
 void setKey(java.lang.Object key)
          Method setKey
 

Method Detail

getKey

public java.lang.Object getKey()
Method getKey
Returns:
 

getName

public java.lang.String getName()
Method getName
Returns:
 

getSubjectType

public SubjectType getSubjectType()
Method getSubjectType
Returns:
 

getProperties

public java.util.Properties getProperties()
Method getProperties
Returns:
 

setKey

public void setKey(java.lang.Object key)
Method setKey
Parameters:
key -  

isFoundInRules

public java.lang.Boolean isFoundInRules()
                                 throws java.lang.Exception
Determines if this Subject has a matching Subject in the Rules DB.
Returns:
true indicates Subject is in the Rules DB as are its properties.

refresh

public void refresh()
             throws java.lang.Exception
Refresh properties from a changing Rules DB.