Class Property

    • Constructor Detail

      • Property

        public Property()
      • Property

        public Property​(java.lang.String name,
                        java.lang.String description,
                        PropertyType type)
      • Property

        public Property​(java.lang.String name,
                        java.lang.String description,
                        PropertyType type,
                        java.lang.String typeRef)
      • Property

        public Property​(java.lang.String name,
                        PropertyType type,
                        IDataModel dataModel,
                        java.lang.Boolean required)
      • Property

        public Property​(java.lang.String name,
                        PropertyType type,
                        IDataModel dataModel,
                        java.lang.Boolean isPrimaryKey,
                        java.lang.Boolean required)
      • Property

        public Property​(java.lang.String title,
                        java.lang.String name,
                        java.lang.String description,
                        PropertyType type,
                        java.lang.String typeRef,
                        PropertyType subType,
                        java.lang.String subTypeRef)
    • Method Detail

      • getDataModel

        public IDataModel getDataModel()
        Gets the datamodel for which this property belong
        Specified by:
        getDataModel in interface IProperty
        Returns:
        this property's datamodel.
      • getRequired

        public java.lang.Boolean getRequired()
        Determines whether or not this property accepts null values.
        Specified by:
        getRequired in interface IProperty
        Returns:
        true if this property except values, false if not and null if not known.
      • isNullable

        public boolean isNullable()
        Determines whether or not this property accepts null values.
        Specified by:
        isNullable in interface IProperty
        Returns:
        true if this property accept null values, false if not.
      • isPrimaryKey

        public java.lang.Boolean isPrimaryKey()
        Determines if this property is (one of) the primary key(s) of its datamodel.
        Specified by:
        isPrimaryKey in interface IProperty
        Returns:
        true if this property is a primary key, or false if not (or if this is not determinable).
      • isComputed

        public boolean isComputed()
        Determines if this property is a computed property.
        Specified by:
        isComputed in interface IProperty
        Returns:
        true if this property is a computed property, or false if not
      • getChildDataModel

        public IDataModel getChildDataModel()
        Gets the associated data model.
        Specified by:
        getChildDataModel in interface IProperty
        Returns:
        the associated dataModel.
      • getAssociatedDataModel

        public IDataModel getAssociatedDataModel()
        Returns the data model associated with this property either One-To-One or One-To-Many
        Specified by:
        getAssociatedDataModel in interface IProperty
        Returns:
      • setChildDataModel

        public void setChildDataModel​(IDataModel childDataModel)
        Sets the associated data model.
        Specified by:
        setChildDataModel in interface IProperty
        Parameters:
        childDataModel - the associated dataModel.
      • setRequired

        public void setRequired​(java.lang.Boolean required)
      • setNullable

        public void setNullable​(boolean nullable)
      • getIsPrimaryKey

        public java.lang.Boolean getIsPrimaryKey()
      • setIsPrimaryKey

        public void setIsPrimaryKey​(java.lang.Boolean isPrimaryKey)
      • setDataModel

        public void setDataModel​(IDataModel dataModel)
      • getParameterType

        public java.lang.String getParameterType()
        Description copied from interface: IProperty
        Gets the parameter type of this property.
        Specified by:
        getParameterType in interface IProperty
        Returns:
        the parameter type of this property.
      • setParameterType

        public void setParameterType​(java.lang.String parameterType)
      • getProperties

        public java.util.List<? extends IProperty> getProperties()
        Gets the properties of this property if property type is Array.
        Specified by:
        getProperties in interface IProperty
        Returns:
        the list of properties.
      • setProperties

        public void setProperties​(java.util.List<IProperty> properties)
      • getEnumList

        public java.lang.Object[] getEnumList()
        Gets the enum related of this property.
        Specified by:
        getEnumList in interface IProperty
        Returns:
        the enum related of this property.
      • setEnumList

        public void setEnumList​(java.lang.Object[] enumList)
      • addAssociation

        public void addAssociation​(PropertyType associationType,
                                   IDataModel dataModel)
                            throws DermisException
        Add the associated datamodel
        Parameters:
        associationType - association type either COLLECTION or OBJECT
        dataModel - associated data model
        Throws:
        DermisException
      • getReferenceName

        public java.lang.String getReferenceName()
        Returns the reference entity name.
        Specified by:
        getReferenceName in interface IProperty
        Returns:
        Returns the reference entity name.
      • getIdentifier

        public java.lang.String getIdentifier()
        Description copied from interface: IProperty
        Gets the identifier of this property.
        Specified by:
        getIdentifier in interface IProperty
        Returns:
        the identifier of this property.
      • isComplexType

        public boolean isComplexType()
        Returns true if attribute is of type ARRAY or OBJECT.
        Specified by:
        isComplexType in interface IProperty
        Returns:
        - Returns true if attribute is of type ARRAY or OBJECT.
      • getRules

        public IRule getRules()
        Description copied from interface: IProperty
        Returns the rules of the attribute.
        Specified by:
        getRules in interface IProperty
        Returns:
        - Returns the rules of the attribute.
      • isBelowCollection

        public boolean isBelowCollection()
        Return true if property is part of collection entity. This property is available only if property is retrieved via IFormDataModelManager.getEntityPropertyByPath(String, String)
        Specified by:
        isBelowCollection in interface IProperty
        Returns:
        - true, if property is part of collection entity.
      • isPrimitiveType

        public boolean isPrimitiveType()
        Returns true if attribute is of primitive type.
        Specified by:
        isPrimitiveType in interface IProperty
        Returns:
        - Returns true if attribute is of primitive type.
      • isMetadataKey

        public java.lang.Boolean isMetadataKey()
        Determines if this property is the metadata key(s) of its datamodel. Metadata specifies, that the particular property will be saved as metadata apart from original data i.e user can query on the basis of properties with metadata enabled.
        Specified by:
        isMetadataKey in interface IProperty
        Returns:
        true if this property is a metadata key, or false if not (or if this is not determinable).