Package org.drools.core.rule
Class ImportDeclaration
- java.lang.Object
-
- org.drools.core.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
Constructors Constructor Description ImportDeclaration()Creates an empty import declarationImportDeclaration(String target)Creates an import declaration for the given target.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetTarget()inthashCode()booleanmatches(Class<?> clazz)Returns true if this ImportDeclaration correctly matches to the given clazzvoidreadExternal(ObjectInput in)voidsetTarget(String target)voidwriteExternal(ObjectOutput out)
-
-
-
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:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
getTarget
public String getTarget()
-
setTarget
public void setTarget(String target)
-
matches
public boolean matches(Class<?> clazz)
Returns true if this ImportDeclaration correctly matches to the given clazz- Parameters:
name-- Returns:
-
-