Paddle.SchemaParser (paddle v0.1.4) View Source

Module used to parse *.schema files and generate Paddle classes.

Link to this section Summary

Functions

Get the attributes names of an object class or a list of object classes.

Get the required attributes names of an object class or a list of object classes.

Link to this section Functions

Link to this function

attributes(object_classes)

View Source

Specs

attributes(binary() | [binary()]) :: [atom()]

Get the attributes names of an object class or a list of object classes.

Example:

iex> Paddle.SchemaParser.attributes "account"
[:description, :seeAlso, :l, :o, :ou, :host, :uid]

iex> Paddle.SchemaParser.attributes ["posixAccount", "account"]
[:userPassword, :loginShell, :gecos, :description, :cn, :uid, :uidNumber,
 :gidNumber, :homeDirectory, :seeAlso, :l, :o, :ou, :host]
Link to this function

required_attributes(object_classes)

View Source

Specs

required_attributes(binary() | [binary()]) :: [atom()]

Get the required attributes names of an object class or a list of object classes.

Example:

iex> Paddle.SchemaParser.required_attributes "account"
[:uid]
iex> Paddle.SchemaParser.required_attributes ["posixAccount", "account"]
[:cn, :uid, :uidNumber, :gidNumber, :homeDirectory]