Interface DomainObject

All Known Implementing Classes:
DomainObjectImpl, DomainObjectProxy

public interface DomainObject
  • Method Details

    • getDomain

      DomainObject getDomain(String objectPath)
    • getCode

      String getCode()
    • getName

      String getName()
    • getDescription

      String getDescription()
    • getTypeCode

      String getTypeCode()
    • getTypeName

      String getTypeName()
    • getPath

      String getPath()
    • getAttribute

      DomainAttribute getAttribute(String code)
    • isAttrSet

      boolean isAttrSet(String code)
    • getAttributes

      @NotNull @NotNull List<DomainAttribute> getAttributes()
    • getDynamicAttribute

      DomainAttribute getDynamicAttribute(String code)
    • getFromAllAttributes

      Optional<DomainAttribute> getFromAllAttributes(String code)
      Parameters:
      code - attribute code to look for
      Returns:
      found attribute or Optional.empty() if not found
    • getDynamicAttributes

      @NotNull @NotNull List<DomainAttribute> getDynamicAttributes()
    • getChild

      DomainObject getChild(String propCode, String code)
    • getChildren

      @NotNull @NotNull List<DomainObject> getChildren(String propCode)
    • getParent

      DomainObject getParent()
    • getAttribute

      DomainAttribute getAttribute(String path, String attributeCode)
    • getAttributeValue

      ParamValue getAttributeValue(String path, String attributeCode, ParamContext ctx, Object... args)
    • isRoot

      boolean isRoot()
    • isAttrDefined

      boolean isAttrDefined(String code)
    • isLocalAttr

      boolean isLocalAttr(String code)
    • getAttr

      DomainAttribute getAttr(String code)
      Parameters:
      code - code
      Returns:
      attribute of type HigsonDomainAttribute
      Since:
      1.5.22
    • getAttrString

      String getAttrString(String attrCode, HigsonContext ctx)
      Parameters:
      attrCode - attribute code
      ctx - context
      Returns:
      attribute as String object
      Since:
      1.5.22
    • getAttrDecimal

      BigDecimal getAttrDecimal(String attrCode, HigsonContext ctx)
      Parameters:
      attrCode - attribute code
      ctx - context
      Returns:
      attribute as BigDecimal object
      Since:
      1.5.22
    • getAttrNumber

      double getAttrNumber(String attrCode, HigsonContext ctx)
      Parameters:
      attrCode - attribute code
      ctx - context
      Returns:
      attribute as double value
      Since:
      1.5.22
    • getAttrInteger

      Integer getAttrInteger(String attrCode, HigsonContext ctx)
      Parameters:
      attrCode - attribute code
      ctx - context
      Returns:
      attribute as Integer object
      Since:
      1.5.22
    • getAttrDate

      Date getAttrDate(String attrCode, HigsonContext ctx)
      Parameters:
      attrCode - attribute code
      ctx - context
      Returns:
      attribute as Data object
      Since:
      1.5.22
    • getAttrBoolean

      boolean getAttrBoolean(String attrCode, HigsonContext ctx)
      Parameters:
      attrCode - attribute code
      ctx - context
      Returns:
      attribute as boolean value
      Since:
      1.5.22
    • getId

      Integer getId()
      Returns:
      Integer object
      Since:
      1.5.30
    • getParentId

      Integer getParentId()
      Returns:
      Parent id
      Since:
      1.5.30
    • getCallPath

      String getCallPath()
      path to this object in the form in which it was used (the object can be reached using different paths). path is normalized and has the form: / a / b / c
      Returns:
      call path
      Since:
      1.5.30
    • getTypeCollection

      DomainObjectType getTypeCollection()
      Returns:
      collection type of HigsonDomainObjectType object
      Since:
      1.5.41
    • getRegion

      RegionCached getRegion()
      Returns:
      region code from MpRegionCached object
      Since:
      1.6.4
    • getTagList

      List<Tag> getTagList()
      Returns:
      collection with tags attached to domain object
      Since:
      1.11.1
    • getDigest

      String getDigest()
      calculates and returns element's digest. It includes element's code, type code, attributes digests and region info, if element is attached
      Returns:
      domain element's digest
      Since:
      1.20.2