Package 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.Annotated,org.drools.core.rule.Namespaceable
public class AnnotationDescr extends AnnotatedBaseDescr implements org.drools.core.factmodel.PropertyMap
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AnnotationDescr()AnnotationDescr(String name)AnnotationDescr(String name, String value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetFullyQualifiedName()StringgetName()ObjectgetSingleValue()StringgetSingleValueAsString()ObjectgetSingleValueStripped()ObjectgetValue()Returns the metadata value as a single object or a MapObjectgetValue(String key)StringgetValueAsString(String key)Map<String,Object>getValueMap()Map<String,Object>getValues()StringgetValuesAsString()ObjectgetValueStripped()inthashCode()booleanhasValue()booleanisDuplicated()booleanisStrict()voidreadExternal(ObjectInput in)voidsetDuplicated()voidsetFullyQualifiedName(String fullyQualifiedName)voidsetKeyValue(String key, Object value)voidsetStrict(boolean strict)voidsetValue(Object value)static Stringunquote(String s)voidwriteExternal(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
accept, copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, isNegated, negate, positionAsString, replaceVariable, setEndCharacter, setEndLocation, setLocation, setNamespace, setResource, setStartCharacter, setText
-
-
-
-
Field Detail
-
VALUE
public static final String VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classAnnotatedBaseDescr- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classAnnotatedBaseDescr- 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)
-
getValues
public Map<String,Object> getValues()
- Specified by:
getValuesin interfaceorg.drools.core.factmodel.PropertyMap
-
getValue
public Object getValue()
Returns the metadata value as a single object or a Map- Returns:
-
getValueStripped
public Object getValueStripped()
-
getSingleValue
public Object getSingleValue()
-
getSingleValueStripped
public Object getSingleValueStripped()
-
getSingleValueAsString
public String getSingleValueAsString()
-
getValuesAsString
public String getValuesAsString()
-
isDuplicated
public boolean isDuplicated()
-
setDuplicated
public void setDuplicated()
-
isStrict
public boolean isStrict()
-
setStrict
public void setStrict(boolean strict)
-
-