org.drools.compiler.lang.descr
Class AnnotationDescr
java.lang.Object
org.drools.compiler.lang.descr.BaseDescr
org.drools.compiler.lang.descr.AnnotatedBaseDescr
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
| 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 |
VALUE
public static final String VALUE
- See Also:
- Constant Field Values
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 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)
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.