Class FieldDefinition

    • Method Detail

      • setReadWriteAccessor

        public void setReadWriteAccessor​(ClassFieldAccessor accessor)
      • getName

        public String getName()
        Specified by:
        getName in interface org.kie.api.definition.type.FactField
        Returns:
        Returns the name.
      • setName

        public void setName​(String name)
        Parameters:
        name - The name to set.
      • getTypeName

        public String getTypeName()
        Returns:
        Returns the fully qualified type.
      • setTypeName

        public void setTypeName​(String type)
        Parameters:
        type - The fully qualified type to set.
      • getType

        public Class<?> getType()
        Specified by:
        getType in interface org.kie.api.definition.type.FactField
      • isKey

        public boolean isKey()
        Specified by:
        isKey in interface org.kie.api.definition.type.FactField
        Returns:
        Returns the key.
      • setKey

        public void setKey​(boolean key)
        Parameters:
        key - The key to set.
      • getReadMethod

        public String getReadMethod()
        Creates the String name for the get method for a field with the given name and type
        Returns:
      • getWriteMethod

        public String getWriteMethod()
        Creates the String name for the set method for a field with the given name and type
        Returns:
      • getFieldAccessor

        public ClassFieldAccessor getFieldAccessor()
        Returns:
        Returns the field extractor
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • setValue

        public void setValue​(Object bean,
                             Object value)
        Sets the value of this attribute in the target bean instance
        Parameters:
        bean - the target bean instance where the attribute shall be set
        value - the value to set the attribute to
      • getValue

        public Object getValue​(Object bean)
        Returns the value of this attribute in the target bean instance
        Parameters:
        bean - the target bean instance
        Returns:
        target bean instance attribute value
      • get

        public Object get​(Object bean)
        Specified by:
        get in interface org.kie.api.definition.type.FactField
      • set

        public void set​(Object bean,
                        Object value)
        Specified by:
        set in interface org.kie.api.definition.type.FactField
      • isInherited

        public boolean isInherited()
      • setInherited

        public void setInherited​(boolean inherited)
      • getIndex

        public int getIndex()
        Specified by:
        getIndex in interface org.kie.api.definition.type.FactField
      • setIndex

        public void setIndex​(int index)
      • getDeclIndex

        public int getDeclIndex()
      • setDeclIndex

        public void setDeclIndex​(int declIndex)
      • getPriority

        public int getPriority()
      • setPriority

        public void setPriority​(int priority)
      • getInitExpr

        public String getInitExpr()
      • setInitExpr

        public void setInitExpr​(String initExpr)
      • getFieldAnnotations

        public List<org.kie.api.definition.type.Annotation> getFieldAnnotations()
        Specified by:
        getFieldAnnotations in interface org.kie.api.definition.type.FactField
      • getMetaData

        public Map<String,​Object> getMetaData()
        Specified by:
        getMetaData in interface org.kie.api.definition.type.FactField
      • addMetaData

        public void addMetaData​(String key,
                                Object value)
      • getDefaultValueAsString

        public String getDefaultValueAsString()
      • getDefaultValueAsBoolean

        public Boolean getDefaultValueAsBoolean()
      • getDefaultValueAsByte

        public Byte getDefaultValueAsByte()
      • getDefaultValueAsChar

        public Character getDefaultValueAsChar()
      • getDefaultValueAsDouble

        public Double getDefaultValueAsDouble()
      • getDefaultValueAsFloat

        public Float getDefaultValueAsFloat()
      • getDefaultValueAsInt

        public Integer getDefaultValueAsInt()
      • getDefaultValueAsLong

        public Long getDefaultValueAsLong()
      • getDefaultValueAsShort

        public Short getDefaultValueAsShort()
      • getDefaultValueAs_boolean

        public boolean getDefaultValueAs_boolean()
      • getDefaultValueAs_byte

        public byte getDefaultValueAs_byte()
      • getDefaultValueAs_char

        public char getDefaultValueAs_char()
      • getDefaultValueAs_double

        public double getDefaultValueAs_double()
      • getDefaultValueAs_float

        public float getDefaultValueAs_float()
      • getDefaultValueAs_int

        public int getDefaultValueAs_int()
      • getDefaultValueAs_long

        public long getDefaultValueAs_long()
      • getDefaultValueAs_short

        public short getDefaultValueAs_short()
      • resolveAlias

        public String resolveAlias()
      • getAlias

        public String getAlias()
      • hasAlias

        public boolean hasAlias()
      • isRecursive

        public boolean isRecursive()
      • setRecursive

        public void setRecursive​(boolean recursive)
      • hasOverride

        public boolean hasOverride()
      • getOverriding

        public String getOverriding()
      • setOverriding

        public void setOverriding​(String overriding)
      • getGetterName

        public String getGetterName()
      • setGetterName

        public void setGetterName​(String getterName)
      • getSetterName

        public String getSetterName()
      • setSetterName

        public void setSetterName​(String setterName)