Package org.drools.core.factmodel
Class AnnotationDefinition
- java.lang.Object
-
- org.drools.core.factmodel.AnnotationDefinition
-
- All Implemented Interfaces:
Externalizable
,Serializable
,org.kie.api.definition.type.Annotation
public class AnnotationDefinition extends Object implements Externalizable, org.kie.api.definition.type.Annotation
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AnnotationDefinition.AnnotationPropertyVal
-
Constructor Summary
Constructors Constructor Description AnnotationDefinition()
AnnotationDefinition(String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AnnotationDefinition
build(Class annotationClass, Map<String,Object> valueMap, TypeResolver resolver)
boolean
equals(Object o)
String
getName()
Class
getPropertyType(String key)
Object
getPropertyValue(String key)
Map<String,AnnotationDefinition.AnnotationPropertyVal>
getValues()
int
hashCode()
void
readExternal(ObjectInput in)
void
setName(String name)
String
toString()
static String
unquote(String s)
void
writeExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
AnnotationDefinition
public AnnotationDefinition()
-
AnnotationDefinition
public AnnotationDefinition(String name)
-
-
Method Detail
-
getValues
public Map<String,AnnotationDefinition.AnnotationPropertyVal> getValues()
-
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()
- Specified by:
getName
in interfaceorg.kie.api.definition.type.Annotation
-
setName
public void setName(String name)
-
getPropertyValue
public Object getPropertyValue(String key)
- Specified by:
getPropertyValue
in interfaceorg.kie.api.definition.type.Annotation
-
getPropertyType
public Class getPropertyType(String key)
- Specified by:
getPropertyType
in interfaceorg.kie.api.definition.type.Annotation
-
build
public static AnnotationDefinition build(Class annotationClass, Map<String,Object> valueMap, TypeResolver resolver) throws NoSuchMethodException
- Throws:
NoSuchMethodException
-
-