Drools :: Compiler 6.2.0.Final

org.drools.compiler.lang.descr
Class AnnotationDescr

java.lang.Object
  extended by org.drools.compiler.lang.descr.BaseDescr
      extended by org.drools.compiler.lang.descr.AnnotatedBaseDescr
          extended by org.drools.compiler.lang.descr.AnnotationDescr
All Implemented Interfaces:
Externalizable, Serializable, org.drools.core.factmodel.PropertyMap, org.drools.core.rule.Namespaceable

public class AnnotationDescr
extends AnnotatedBaseDescr
implements org.drools.core.factmodel.PropertyMap

See Also:
Serialized Form

Field Summary
static String VALUE
           
 
Constructor Summary
AnnotationDescr()
           
AnnotationDescr(String name)
           
AnnotationDescr(String name, String value)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getFullyQualifiedName()
           
 String getName()
           
 Object getSingleValue()
           
 String getSingleValueAsString()
           
 Object getSingleValueStripped()
           
 Object getValue()
          Returns the metadata value as a single object or a Map
 Object getValue(String key)
           
 String getValueAsString(String key)
           
 Map<String,Object> getValueMap()
           
 Map<String,Object> getValues()
           
 String getValuesAsString()
           
 Object getValueStripped()
           
 int hashCode()
           
 boolean hasValue()
           
 boolean isDuplicated()
           
 boolean isStrict()
           
 void readExternal(ObjectInput in)
           
 void setDuplicated()
           
 void setFullyQualifiedName(String fullyQualifiedName)
           
 void setKeyValue(String key, Object value)
           
 void setStrict(boolean strict)
           
 void setValue(Object value)
           
static String unquote(String s)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.drools.compiler.lang.descr.AnnotatedBaseDescr
addAnnotation, addAnnotation, addAnnotation, addQualifiedAnnotation, getAnnotation, getAnnotation, getAnnotationNames, getAnnotations, getTypedAnnotation, hasAnnotation, indexByFQN
 
Methods inherited from class org.drools.compiler.lang.descr.BaseDescr
copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, positionAsString, setEndCharacter, setEndLocation, setLocation, setNamespace, setResource, setStartCharacter, setText
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALUE

public static final String VALUE
See Also:
Constant Field Values
Constructor Detail

AnnotationDescr

public AnnotationDescr()

AnnotationDescr

public AnnotationDescr(String name)

AnnotationDescr

public AnnotationDescr(String name,
                       String value)
Method Detail

unquote

public static String unquote(String s)

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class AnnotatedBaseDescr
Throws:
IOException
ClassNotFoundException

writeExternal

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

getName

public String getName()

getFullyQualifiedName

public String getFullyQualifiedName()

setFullyQualifiedName

public void setFullyQualifiedName(String fullyQualifiedName)

hasValue

public boolean hasValue()

setValue

public void setValue(Object value)

setKeyValue

public void setKeyValue(String key,
                        Object value)

getValue

public Object getValue(String key)

getValues

public Map<String,Object> getValues()
Specified by:
getValues in interface org.drools.core.factmodel.PropertyMap

getValue

public Object getValue()
Returns the metadata value as a single object or a Map

Returns:

getValueStripped

public Object getValueStripped()

getValueMap

public Map<String,Object> getValueMap()

getSingleValue

public Object getSingleValue()

getSingleValueStripped

public Object getSingleValueStripped()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

getSingleValueAsString

public String getSingleValueAsString()

getValueAsString

public String getValueAsString(String key)

getValuesAsString

public String getValuesAsString()

isDuplicated

public boolean isDuplicated()

setDuplicated

public void setDuplicated()

isStrict

public boolean isStrict()

setStrict

public void setStrict(boolean strict)

Drools :: Compiler 6.2.0.Final

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