Package org.drools.model.impl
Class PrototypeImpl
- java.lang.Object
-
- org.drools.model.impl.PrototypeImpl
-
- All Implemented Interfaces:
NamedModelItem,Prototype
public class PrototypeImpl extends java.lang.Object implements Prototype
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPrototypeImpl.FieldImpl-
Nested classes/interfaces inherited from interface org.drools.model.Prototype
Prototype.Field, Prototype.UndefinedValue
-
-
Field Summary
-
Fields inherited from interface org.drools.model.Prototype
UNDEFINED_VALUE
-
-
Constructor Summary
Constructors Constructor Description PrototypeImpl(java.lang.String name)PrototypeImpl(java.lang.String name, java.lang.String... fields)PrototypeImpl(java.lang.String name, Prototype.Field... fields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Prototype.FieldgetField(java.lang.String name)intgetFieldIndex(java.lang.String name)java.util.Collection<java.lang.String>getFieldNames()java.lang.StringgetName()java.lang.StringgetPackage()inthashCode()booleanisEvent()PrototypeImplsetAsEvent(boolean event)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.drools.model.NamedModelItem
getFullName
-
Methods inherited from interface org.drools.model.Prototype
getFieldValueExtractor
-
-
-
-
Constructor Detail
-
PrototypeImpl
public PrototypeImpl(java.lang.String name)
-
PrototypeImpl
public PrototypeImpl(java.lang.String name, java.lang.String... fields)
-
PrototypeImpl
public PrototypeImpl(java.lang.String name, Prototype.Field... fields)
-
-
Method Detail
-
getPackage
public java.lang.String getPackage()
- Specified by:
getPackagein interfaceNamedModelItem
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceNamedModelItem
-
getFieldNames
public java.util.Collection<java.lang.String> getFieldNames()
- Specified by:
getFieldNamesin interfacePrototype
-
getField
public Prototype.Field getField(java.lang.String name)
-
getFieldIndex
public int getFieldIndex(java.lang.String name)
- Specified by:
getFieldIndexin interfacePrototype
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
setAsEvent
public PrototypeImpl setAsEvent(boolean event)
- Specified by:
setAsEventin interfacePrototype
-
-