org.drools.rule
Class WindowDeclaration

java.lang.Object
  extended by org.drools.rule.BaseAnnotatedAsset
      extended by org.drools.rule.WindowDeclaration
All Implemented Interfaces:
Externalizable, Serializable, AnnotatedElement, org.drools.definition.KnowledgeDefinition

public class WindowDeclaration
extends BaseAnnotatedAsset
implements org.drools.definition.KnowledgeDefinition, Externalizable

The window declaration defines a window that can be used by patterns in rules

See Also:
Serialized Form

Constructor Summary
WindowDeclaration()
           
WindowDeclaration(String name)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
           
 Pattern getPattern()
           
 int hashCode()
           
 void readExternal(ObjectInput in)
           
 void setName(String name)
           
 void setPattern(Pattern pattern)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.drools.rule.BaseAnnotatedAsset
getAnnotation, getAnnotations, getDeclaredAnnotations, isAnnotationPresent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowDeclaration

public WindowDeclaration()

WindowDeclaration

public WindowDeclaration(String name)
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

getName

public String getName()

setName

public void setName(String name)

getPattern

public Pattern getPattern()

setPattern

public void setPattern(Pattern pattern)

hashCode

public int hashCode()
Overrides:
hashCode in class BaseAnnotatedAsset

equals

public boolean equals(Object obj)
Overrides:
equals in class BaseAnnotatedAsset


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.