Package org.drools.model.impl
Class PrototypeImpl
- java.lang.Object
-
- org.drools.model.impl.PrototypeImpl
-
- All Implemented Interfaces:
NamedModelItem,Prototype
public class PrototypeImpl extends 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
-
-
Field Summary
-
Fields inherited from interface org.drools.model.Prototype
UNDEFINED_VALUE
-
-
Constructor Summary
Constructors Constructor Description PrototypeImpl(String name)PrototypeImpl(String name, String... fields)PrototypeImpl(String name, Prototype.Field... fields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Prototype.FieldgetField(String name)intgetFieldIndex(String name)Collection<String>getFieldNames()StringgetName()StringgetPackage()inthashCode()-
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(String name)
-
PrototypeImpl
public PrototypeImpl(String name, Prototype.Field... fields)
-
-
Method Detail
-
getPackage
public String getPackage()
- Specified by:
getPackagein interfaceNamedModelItem
-
getName
public String getName()
- Specified by:
getNamein interfaceNamedModelItem
-
getFieldNames
public Collection<String> getFieldNames()
- Specified by:
getFieldNamesin interfacePrototype
-
getField
public Prototype.Field getField(String name)
-
getFieldIndex
public int getFieldIndex(String name)
- Specified by:
getFieldIndexin interfacePrototype
-
-