org.drools.compiler.lang.descr
Class AnnotationDescr
java.lang.Object
org.drools.compiler.lang.descr.BaseDescr
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
| 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 |
AnnotationDescr
public AnnotationDescr()
AnnotationDescr
public AnnotationDescr(String name)
AnnotationDescr
public AnnotationDescr(String name,
String value)
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()
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.