Documentation
¶
Index ¶
- Constants
- func Association(a *assocDefn, defn ...any) *assocDefn
- func Attribute(name string, defn ...AttributeCmd) attrib
- func Between(defn ...any) between
- func Build(m *mdd.Model, defn ...ModelCmd) error
- func BuildAtom(a *mdd.Atom, defn ...AtomCmd) error
- func BuildClass(c *mdd.Class, defn ...ClassCmd) error
- func BuildEnum(e *mdd.Enum, defn ...EnumCmd) error
- func BuildPackage(pkg *mdd.Package, defn ...PackageCmd) error
- func From(defn ...any) from
- func Key(defn ...any) key
- func MixIn(mode mdd.MixMode, classes ...*ClassVar) mix
- func Model(name string, defn ...ModelCmd) (*mdd.Model, error)
- func Restict(atoms ...*AtomVar) restrict
- func Tag(key, value any) tag
- type AtomCmd
- type AtomDefn
- type AtomVar
- type AttributeCmd
- type ClassCmd
- type ClassDefn
- type ClassVar
- type CommonTypes
- type Comparability
- type EnumCmd
- type EnumDefn
- type EnumVar
- type Extends
- type Literals
- type Many
- type ModelCmd
- type Mult
- type Num
- type PackageCmd
- type PackageDefn
Constants ¶
View Source
const ( Entity classFlag = iota Abstract )
View Source
const ( NotComparable = Comparability(mdd.NotComparable) Comparable = Comparability(mdd.Comparable) Ordered = Comparability(mdd.Ordered) )
View Source
const ( One multFlag = iota Opt )
View Source
const Derived attributeFlag = 0
View Source
const Extensible boolExt = true
Variables ¶
This section is empty.
Functions ¶
func Association ¶
func Association(a *assocDefn, defn ...any) *assocDefn
func Attribute ¶
func Attribute(name string, defn ...AttributeCmd) attrib
func BuildPackage ¶
func BuildPackage(pkg *mdd.Package, defn ...PackageCmd) error
Types ¶
type AttributeCmd ¶
type CommonTypes ¶
type CommonTypes struct { // Use this to represent Boolean values Bool AtomVar // The integer numbers ℤ Integer AtomVar // Natural numbers including zero ℕ∪{0} NonNegInt AtomVar // Natural numbers ℕ (according to Peano's original formulation i.e. 0∉ℕ) PositiveInt AtomVar // Real numbers ℝ (somewhat hard to completely map to implementations) Real AtomVar // The subset of ℝ that can be exactly represented as a decimal numeral Decimal AtomVar // Sequence of symbols (most often implemented by a notion of computer // string) Text AtomVar // Denotes a specific day on earth. Its up to you if you consider it to be // with or without time-zone. Date AtomVar // Wall-clock time, independent of any date. Its up to you if you consider // it to be with or without time-zone. Time AtomVar // A precise instant in time. Its up to you if you consider it to be with // or without time-zone. Timestamp AtomVar }
type Comparability ¶
type Comparability mdd.Comparability
func (Comparability) String ¶
func (i Comparability) String() string
type PackageCmd ¶
type PackageDefn ¶
type PackageDefn struct {
// contains filtered or unexported fields
}
func Package ¶
func Package(name string, defn ...PackageCmd) PackageDefn
func (PackageDefn) GetFrom ¶ added in v0.1.1
func (p PackageDefn) GetFrom(m *mdd.Model) *mdd.Package
func (PackageDefn) Store ¶
func (p PackageDefn) Store(in **mdd.Package) PackageDefn
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
examples
|
|
mymusic/puml
Generate PlantUML class diagram for example model.
|
Generate PlantUML class diagram for example model. |
mymusic/template
Generate AsciiDoc output with Go's text/template from example model.
|
Generate AsciiDoc output with Go's text/template from example model. |
Click to show internal directories.
Click to hide internal directories.