com.ibm.tivoli.maximo.fdmbo

Class JSONPropertyInfo

  • java.lang.Object
    • com.ibm.tivoli.maximo.fdmbo.JSONPropertyInfo


  • public class JSONPropertyInfo
    extends java.lang.Object
    JSON property Info.
    • Constructor Detail

      • JSONPropertyInfo

        public JSONPropertyInfo(java.lang.String name,
                                int type,
                                long suggestedLength,
                                java.lang.String title)
        Constructor will be called on Resource generation
        Parameters:
        name - property name
        type - property type
        suggestedLength - suggested calculated Length
        title - attribute title
      • JSONPropertyInfo

        public JSONPropertyInfo(java.lang.String name,
                                java.lang.String attributeName,
                                int type,
                                java.lang.Object defaultValue,
                                long suggestedLength,
                                java.lang.String title,
                                java.lang.String dateFormatType,
                                java.lang.String dateFormat)
        Constructor will be called when processing of the resource
        Parameters:
        name - property name
        attributeName - attribute name
        type - property type
        defaultValue - default value
        suggestedLength - suggested calculated Length
        title - attribute title
      • JSONPropertyInfo

        public JSONPropertyInfo(java.lang.String attributeName,
                                java.lang.String propName,
                                java.lang.String dateFormatType,
                                java.lang.String dateFormat)
        Constructor
        Parameters:
        attributeName - - attribute name
        propName - - property name
        dateFormatType - - date format type
        dateFormat - - date format for custom format
    • Method Detail

      • setEditable

        public void setEditable(boolean editable)
        Set property editable
        Parameters:
        editable - is editable indicator
      • setDomainName

        public void setDomainName(java.lang.String domainName)
        Set domain name
        Parameters:
        domainName - domain name
      • getDomainName

        public java.lang.String getDomainName()
        Get domain name
        Returns:
        domain name
      • setRequired

        public void setRequired(boolean required)
        Set required indicator
        Parameters:
        required - property required
      • isEditable

        public boolean isEditable()
        Is property editable
        Returns:
        is editable
      • isRequired

        public boolean isRequired()
        Is property required
        Returns:
        is required
      • getSuggestedLength

        public long getSuggestedLength()
      • setLength

        public void setLength(int l)
        Set attribute length
        Parameters:
        l - length
      • getName

        public java.lang.String getName()
        Get property name
        Returns:
        property name
      • getAttributeName

        public java.lang.String getAttributeName()
        Get attribute name
        Returns:
        attribute name
      • setAttributeName

        public void setAttributeName(java.lang.String attr)
        Set attribute name
        Parameters:
        attr - attribute name
      • getType

        public int getType()
        Get attribute type
        Returns:
        attribute type
      • getScale

        public int getScale()
        Get scale
        Returns:
        scale
      • setScale

        public void setScale(int t)
        Set scale
        Parameters:
        t - scale
      • getTitle

        public java.lang.String getTitle()
        Get title
        Returns:
        attribute title
      • setTitle

        public void setTitle(java.lang.String t)
        Set attribute title
        Parameters:
        t - title
      • setDefaultValue

        public void setDefaultValue(java.lang.String t)
        Set default value
        Parameters:
        t - default value
      • getDefaultValue

        public java.lang.Object getDefaultValue()
        Get default value
        Returns:
        default value
      • getMaxType

        public java.lang.String getMaxType()
        Get Maximo type
        Returns:
        Maximo type
      • getMaxType

        public java.lang.String getMaxType(int type)
        Get Maximo type
        Parameters:
        type - Maximo type as integer
        Returns:
        Maximo type
      • setMaxType

        public void setMaxType(java.lang.String t)
        Set Maximo type
        Parameters:
        t - Maximo type
      • setDateFormatType

        public java.lang.String setDateFormatType(java.lang.String dt)
        Return date format type.
        Returns:
        date format type
      • setDateFormat

        public java.lang.String setDateFormat(java.lang.String df)
        Return date format for custom type.
        Returns:
        date format
      • getDomainMap

        public java.util.Map getDomainMap()
        Get domain map
        Returns:
        domain map
      • getDateFormatType

        public java.lang.String getDateFormatType()
        Return date format type.
        Returns:
        date format type
      • getDateFormat

        public java.lang.String getDateFormat()
        Return date format for custom type.
        Returns:
        date format
      • setDomainMap

        public void setDomainMap(java.util.Map domainMap)
        Set map with domain values
        Parameters:
        domainMap - domain value map
      • setConstraints

        public void setConstraints(PropertyConstraints pc)
        Set constraints
        Parameters:
        pc - constraints property