org.drools.factmodel
Class AnnotationDefinition

java.lang.Object
  extended by org.drools.factmodel.AnnotationDefinition
All Implemented Interfaces:
Externalizable, Serializable, org.drools.definition.type.Annotation

public class AnnotationDefinition
extends Object
implements Externalizable, org.drools.definition.type.Annotation

See Also:
Serialized Form

Nested Class Summary
static class AnnotationDefinition.AnnotationPropertyVal
           
 
Constructor Summary
AnnotationDefinition()
           
AnnotationDefinition(String name)
           
 
Method Summary
static AnnotationDefinition build(Class annotationClass, Map<String,String> 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)
           
static String unquote(String s)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

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 interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getName

public String getName()
Specified by:
getName in interface org.drools.definition.type.Annotation

setName

public void setName(String name)

getPropertyValue

public Object getPropertyValue(String key)
Specified by:
getPropertyValue in interface org.drools.definition.type.Annotation

getPropertyType

public Class getPropertyType(String key)
Specified by:
getPropertyType in interface org.drools.definition.type.Annotation

build

public static AnnotationDefinition build(Class annotationClass,
                                         Map<String,String> valueMap,
                                         TypeResolver resolver)
                                  throws NoSuchMethodException
Throws:
NoSuchMethodException

unquote

public static String unquote(String s)


Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.