Class HyperonDomainObjectProxy
java.lang.Object
pl.decerto.hyperon.runtime.model.proxy.HyperonDomainObjectProxy
- All Implemented Interfaces:
HyperonDomainObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAttrBoolean(String attrCode, HyperonContext ctx) getAttrDate(String attrCode, HyperonContext ctx) getAttrDecimal(String attrCode, HyperonContext ctx) getAttribute(String code) getAttribute(String path, String attributeCode) getAttributeValue(String path, String attributeCode, ParamContext ctx, Object... args) getAttrInteger(String attrCode, HyperonContext ctx) doublegetAttrNumber(String attrCode, HyperonContext ctx) getAttrString(String attrCode, HyperonContext ctx) path to this object in the form in which it was used (the object can be reached using different paths).getChildren(String propCode) getCode()calculates and returns element's digest.getDynamicAttribute(String code) getFromAllAttributes(String code) getId()getName()getPath()booleanisAttrDefined(String code) booleanbooleanisLocalAttr(String code) booleanisRoot()static StringrejectLastToken(String path) static Stringstatic Stringnormalizes path, path is never null valid paths: / /a /a/b/cstatic Stringnull, null : / null, " " : / "", " " : / a, null : /a null, b : /b null, /b : /b /a, 'b : /a/btoString()unwrap()
-
Constructor Details
-
HyperonDomainObjectProxy
public HyperonDomainObjectProxy()
-
-
Method Details
-
getDomain
- Specified by:
getDomainin interfaceHyperonDomainObject
-
getCode
- Specified by:
getCodein interfaceHyperonDomainObject
-
getName
- Specified by:
getNamein interfaceHyperonDomainObject
-
getDescription
- Specified by:
getDescriptionin interfaceHyperonDomainObject
-
getTypeCode
- Specified by:
getTypeCodein interfaceHyperonDomainObject
-
getTypeName
- Specified by:
getTypeNamein interfaceHyperonDomainObject
-
getPath
- Specified by:
getPathin interfaceHyperonDomainObject
-
getAttribute
- Specified by:
getAttributein interfaceHyperonDomainObject
-
isAttrSet
- Specified by:
isAttrSetin interfaceHyperonDomainObject
-
getAttributes
- Specified by:
getAttributesin interfaceHyperonDomainObject
-
getDynamicAttribute
- Specified by:
getDynamicAttributein interfaceHyperonDomainObject
-
getFromAllAttributes
- Specified by:
getFromAllAttributesin interfaceHyperonDomainObject- Parameters:
code- attribute code to look for- Returns:
- found attribute or
Optional.empty()if not found
-
getDynamicAttributes
- Specified by:
getDynamicAttributesin interfaceHyperonDomainObject
-
getChild
- Specified by:
getChildin interfaceHyperonDomainObject
-
getChildren
- Specified by:
getChildrenin interfaceHyperonDomainObject
-
getParent
- Specified by:
getParentin interfaceHyperonDomainObject
-
getAttribute
- Specified by:
getAttributein interfaceHyperonDomainObject
-
getAttributeValue
public ParamValue getAttributeValue(String path, String attributeCode, ParamContext ctx, Object... args) - Specified by:
getAttributeValuein interfaceHyperonDomainObject
-
isRoot
public boolean isRoot()- Specified by:
isRootin interfaceHyperonDomainObject
-
isAttrDefined
- Specified by:
isAttrDefinedin interfaceHyperonDomainObject
-
isLocalAttr
- Specified by:
isLocalAttrin interfaceHyperonDomainObject
-
getAttr
- Specified by:
getAttrin interfaceHyperonDomainObject- Parameters:
code- code- Returns:
- attribute of type HyperonDomainAttribute
-
getAttrString
- Specified by:
getAttrStringin interfaceHyperonDomainObject- Parameters:
attrCode- attribute codectx- context- Returns:
- attribute as String object
-
getAttrDecimal
- Specified by:
getAttrDecimalin interfaceHyperonDomainObject- Parameters:
attrCode- attribute codectx- context- Returns:
- attribute as BigDecimal object
-
getAttrNumber
- Specified by:
getAttrNumberin interfaceHyperonDomainObject- Parameters:
attrCode- attribute codectx- context- Returns:
- attribute as double value
-
getAttrInteger
- Specified by:
getAttrIntegerin interfaceHyperonDomainObject- Parameters:
attrCode- attribute codectx- context- Returns:
- attribute as Integer object
-
getAttrDate
- Specified by:
getAttrDatein interfaceHyperonDomainObject- Parameters:
attrCode- attribute codectx- context- Returns:
- attribute as Data object
-
getAttrBoolean
- Specified by:
getAttrBooleanin interfaceHyperonDomainObject- Parameters:
attrCode- attribute codectx- context- Returns:
- attribute as boolean value
-
getId
- Specified by:
getIdin interfaceHyperonDomainObject- Returns:
- Integer object
-
getParentId
- Specified by:
getParentIdin interfaceHyperonDomainObject- Returns:
- Parent id
-
getCallPath
Description copied from interface:HyperonDomainObjectpath 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- Specified by:
getCallPathin interfaceHyperonDomainObject- Returns:
- call path
-
getTypeCollection
- Specified by:
getTypeCollectionin interfaceHyperonDomainObject- Returns:
- collection type of HyperonDomainObjectType object
-
getRegion
- Specified by:
getRegionin interfaceHyperonDomainObject- Returns:
- region code from MpRegionCached object
-
getTagList
- Specified by:
getTagListin interfaceHyperonDomainObject- Returns:
- collection with tags attached to domain object
-
getDigest
Description copied from interface:HyperonDomainObjectcalculates and returns element's digest. It includes element's code, type code, attributes digests and region info, if element is attached- Specified by:
getDigestin interfaceHyperonDomainObject- Returns:
- domain element's digest
-
unwrap
-
toPath
normalizes path, path is never null valid paths: / /a /a/b/c- Parameters:
domainPath- domain path- Returns:
- String object with path
-
toPath
null, null : / null, " " : / "", " " : / a, null : /a null, b : /b null, /b : /b /a, 'b : /a/b- Parameters:
path1- pathpath2- path- Returns:
- String object with path
-
toElement
-
rejectLastToken
-
getParentPath
-
toString
-