Drools :: Compiler 6.2.0.Beta3

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.AnnotationDescr
All Implemented Interfaces:
Externalizable, Serializable, org.drools.core.rule.Namespaceable

public class AnnotationDescr
extends BaseDescr

See Also:
Serialized Form

Constructor Summary
AnnotationDescr()
           
AnnotationDescr(String name)
           
AnnotationDescr(String name, String value)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
           
 String getSingleValue()
           
 String getSingleValueStripped()
           
 Object getValue()
          Returns the metadata value as a single object or a Map
 String getValue(String key)
           
 Map<String,String> getValueMap()
           
 Map<String,String> getValues()
           
 String getValuesAsString()
           
 Object getValueStripped()
           
 int hashCode()
           
 boolean hasValue()
           
 boolean isDuplicated()
           
 void readExternal(ObjectInput in)
           
 void setDuplicated()
           
 void setKeyValue(String key, String value)
           
 void setValue(String value)
           
static String unquote(String s)
           
 void writeExternal(ObjectOutput out)
           
 
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
 

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

writeExternal

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

getName

public String getName()

hasValue

public boolean hasValue()

setValue

public void setValue(String value)

setKeyValue

public void setKeyValue(String key,
                        String value)

getValue

public String getValue(String key)

getValues

public Map<String,String> getValues()

getValue

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

Returns:

getValueStripped

public Object getValueStripped()

getValueMap

public Map<String,String> getValueMap()

getSingleValue

public String getSingleValue()

getSingleValueStripped

public String getSingleValueStripped()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

getValuesAsString

public String getValuesAsString()

isDuplicated

public boolean isDuplicated()

setDuplicated

public void setDuplicated()

Drools :: Compiler 6.2.0.Beta3

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