Package org.drools.core.factmodel
Class EnumLiteralDefinition
- java.lang.Object
-
- org.drools.core.factmodel.EnumLiteralDefinition
-
- All Implemented Interfaces:
Externalizable
,Serializable
public class EnumLiteralDefinition extends Object implements Externalizable
Declares an enum to be dynamically generated.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EnumLiteralDefinition()
EnumLiteralDefinition(String name, List<String> args)
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
List<String>
getConstructorArgs()
String
getName()
int
hashCode()
void
readExternal(ObjectInput in)
void
setConstructorArgs(List<String> constructorArgs)
void
setName(String name)
String
toString()
void
writeExternal(ObjectOutput out)
-
-
-
Method Detail
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
getName
public String getName()
- Returns:
- Returns the name.
-
setName
public void setName(String name)
- Parameters:
name
- The name to set.
-
-