org.drools.rule
Class ImportDeclaration

java.lang.Object
  extended by org.drools.rule.ImportDeclaration
All Implemented Interfaces:
Externalizable, Serializable

public class ImportDeclaration
extends Object
implements Externalizable

A class to represent an import declaration.

See Also:
Serialized Form

Constructor Summary
ImportDeclaration()
          Creates an empty import declaration
ImportDeclaration(String target)
          Creates an import declaration for the given target.
 
Method Summary
 boolean equals(Object obj)
           
 String getTarget()
           
 int hashCode()
           
 boolean matches(Class<?> clazz)
          Returns true if this ImportDeclaration correctly matches to the given clazz
 void readExternal(ObjectInput in)
           
 void setTarget(String target)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportDeclaration

public ImportDeclaration()
Creates an empty import declaration


ImportDeclaration

public ImportDeclaration(String target)
Creates an import declaration for the given target.

Parameters:
target -
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

getTarget

public String getTarget()

setTarget

public void setTarget(String target)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

matches

public boolean matches(Class<?> clazz)
Returns true if this ImportDeclaration correctly matches to the given clazz

Parameters:
name -
Returns:


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.