.
Copyright (c) (C) 2016, Jean Parpaillon
Authors: Jean Parpaillon (jean.parpaillon@free.fr
).
abstract datatype: t()
from_map/1 | Build kind from AST. |
has_parent/2 | Return true if kind has the parent. |
known_parent/1 | Return first known parent. |
new/2 | |
parent/1 | Return parent of the category. |
parent/2 | Set parent of the category. |
parents/1 | Return all ancestors. |
parents/2 | Set full list of parents. |
from_map(Map::occi_rendering:ast()) -> t()
Build kind from AST
has_parent(Parent::occi_category:id() | resource | link, Kind::t()) -> boolean()
Return true if kind has the parent
known_parent(Kind::t()) -> resource | entity
Return first known parent
new(Scheme::binary(), Term::binary()) -> t()
parent(Kind::t()) -> occi_category:id() | undefined
Return parent of the category
parent(Parent::binary() | occi_category:id(), Kind::t()) -> t()
Set parent of the category
parents(Kind::t()) -> [occi_category:id()]
Return all ancestors
parents(Parents::[occi_category:id()], Kind::t()) -> t()
Set full list of parents