Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docs/emc/EMC_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,16 @@ Indicates whether this space has a metadata name/value for the specified name.

<hr/>

#### `boolean hasRealmWithName(String realm)`

Returns true if there is a realm by this name.

| Parameter | Description |
|-----|-----|
|`String realm` | *no description* |

<hr/>

#### `List` **`importEntityNames`**

Returns the names of the entities that have been imported into this space.
Expand All @@ -372,6 +382,16 @@ Spaces can define a dictionary of name/value pairs that provide some meta data a

<hr/>

#### `MTRealm realmWithName(String realm)`

Returns the realm object by its name.

| Parameter | Description |
|-----|-----|
|`String realm` | *no description* |

<hr/>

#### `MTRepository repository(String name)`

Returns the repository object by its name.
Expand Down
19 changes: 19 additions & 0 deletions docs/emc/EMC_domain.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Model classes that are domain specific are of this type. The classes are briefly
|[`MTDEAttribute`](#class_MTDEAttribute)|Represents an attribute in your model in the context of a domain.|
|[`MTDEAttributeConstraintExpression`](#class_MTDEAttributeConstraintExpression)|Represents a constraint on an attribute in the form of an expression.|
|[`MTDERelationship`](#class_MTDERelationship)|Represents a relationship in your model in the context of a domain.|
|[`MTDERelationshipField`](#class_MTDERelationshipField)|Represents a field (attribute or relationship) associated with the __to__ entity of the relationship.|
|[`MTDEntity`](#class_MTDEntity)|Represents an entity in your model in the context of a domain.|
|[`MTDEnum`](#class_MTDEnum)|Represents an enum in the context of a domain.|
|[`MTDEnumItem`](#class_MTDEnumItem)|Represents an enum item in the context of a domain.|
Expand Down Expand Up @@ -236,6 +237,12 @@ If this relationship was explicitly renamed within its domain, it will return th

<hr/>

#### `Collection` **`fields`**

Returns all the declared fields of this relationship.

<hr/>

#### `String fullname(String delim)`

This returns the full name of this domain relationship which includes not only its domain based name but is also preceded with the domain's entity's full name. The delimiter can be provided which is used between all parts of the full name.
Expand Down Expand Up @@ -551,6 +558,18 @@ Returns the domain specific version of the specified relationship.

<hr/>

#### `boolean` **`hasDeclaredDomainRelationships`**

Indicates if any relationships were declared in this domain entity declaration.

<hr/>

#### `boolean` **`hasParentRelationship`**

Indicates whether this domain entity has a parent relationship. A parent relationship is one that has been declared as `parent`

<hr/>

#### `boolean` **`hasPrimaryParentRelationship`**

Indicates whether this domain entity has a primary parent relationship. A primary parent relationship is one that has been declared as `parent` and **not** declared `optional`.
Expand Down
72 changes: 72 additions & 0 deletions docs/emc/EMC_entity.md
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,16 @@ These methods relate to an entity.

<hr/>

#### `void addRealm(String realm)`

Adds the entity to a realm.

| Parameter | Description |
|-----|-----|
|`String realm` | *no description* |

<hr/>

#### `boolean` **`isDeclaredAsPrimary`**

Indicates whether this entity was **declared** `primary`. If the entity was **not** declared with the `primary` keyword then this will return false even if it is implied as primary.
Expand All @@ -379,6 +389,16 @@ Indicates whether this entity was created by the compiler because it represents

<hr/>

#### `boolean isInRealm(String realm)`

Returns true if this entity is part of a realm.

| Parameter | Description |
|-----|-----|
|`String realm` | *no description* |

<hr/>

#### `boolean` **`isPrimary`**

Indicates whether this entity was declared `primary` or if it was inferred as primary. If an entity has a primary key it is inferred to be a primary entity.
Expand Down Expand Up @@ -576,6 +596,16 @@ Indicates whether this entity has any attributes.

Indicates whether this entity defines any bit fields.

<hr/>

#### `MTRelationship relationshipNamed(String name)`

Returns an relationship of this entity with the specified name.

| Parameter | Description |
|-----|-----|
|`String name` | The name of the relationship to return. |


### Relationship Category

Expand Down Expand Up @@ -657,6 +687,16 @@ Indicates whether this entity has a primary parent relationship. A primary paren

<hr/>

#### `boolean hasRelationshipNamed(String name)`

Indicates whether this entity has an relationship with the specified name.

| Parameter | Description |
|-----|-----|
|`String name` | *no description* |

<hr/>

#### `boolean` **`hasRelationships`**

Indicates whether this entity defines any relationships.
Expand Down Expand Up @@ -828,6 +868,16 @@ Indicates whether this entity has at least one relationship with the specified t

<hr/>

#### `boolean hasRelationshipToEntityNamed(String toEntityName)`

Indicates whether this entity has at least one relationship to a named other entity.

| Parameter | Description |
|-----|-----|
|`String toEntityName` | The name of the other entity. |

<hr/>

#### `boolean hasRelationshipToEntityTagged(String tag)`

Indicates whether the entity **to** which a relationship references is tagged with the specified tag.
Expand Down Expand Up @@ -904,6 +954,16 @@ Indicates whether this was declared as `extern`.

<hr/>

#### `MTEnumItem item(Long index)`

Returns an item by its index.

| Parameter | Description |
|-----|-----|
|`Long index` | *no description* |

<hr/>

#### `List` **`items`**

Gets the enum items.
Expand Down Expand Up @@ -1226,6 +1286,12 @@ Returns the "from" part of the relationship which references the entity in which

<hr/>

#### `MTEntity` **`implicitToEntity`**

Gets the entity on the other side of an implicit many-to-many entity.

<hr/>

#### `boolean` **`isImplicit`**

Indicates whether the relationship was created because although it was not declared it can be implied based on relationships declared to this entity.
Expand Down Expand Up @@ -1340,6 +1406,12 @@ Indicates whether this type is both an array type and also `byte` data type.

<hr/>

#### `boolean` **`isDataType`**

Indicates whether this type is the `data` data type.

<hr/>

#### `boolean` **`isDateType`**

Indicates whether this type is the `date` data type.
Expand Down
10 changes: 10 additions & 0 deletions docs/emc/EMC_foundation.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,16 @@ Returns the first item in the array.

<hr/>

#### `Object get(Integer index)`

Returns the specified item by its index into the array.

| Parameter | Description |
|-----|-----|
|`Integer index` | The index into the array that points to the item to be returned. |

<hr/>

#### `Object get(Long index)`

Returns the specified item by its index into the array.
Expand Down
20 changes: 20 additions & 0 deletions docs/etl/ETL.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ Here is the full list of filters:
| [`lowercase`](#filter_detail_lowercase) | Forces all characters of the input to be lowercase. |
| [`map`](#filter_detail_map) | This filter is probably the most complicated one but can be very powerful in helping to pattern match an expression at its input with one provided as a parameter. When the expressions match, it not only returns true but also maps operands from the input expression to the parameter expression. |
| [`name`](#filter_detail_name) | This simply calls `getName()` on the input. It is more of a convenient way to get the name by using a filter. |
| [`nameas`](#filter_detail_nameas) | Places underscore between words then forces all characters to be lowercase. |
| [`path`](#filter_detail_path) | This will convert a string or namespace object into a string where by a '/' character is used as a delimiter instead of a '.'. This is useful when you need to convert a namespace into a filepath. |
| [`plural`](#filter_detail_plural) | This will attempt to pluralize the last word of the input string. If it can't determine the pluralization it may just return the same string. |
| [`reverse`](#filter_detail_reverse) | Given a collection of objects, this will return a collection that has the reverse order of the input. |
Expand Down Expand Up @@ -416,6 +417,25 @@ Valid inputs for this filter are:

<hr/>

<a name="filter_detail_nameas"></a>
##### Filter: `nameas`

Places underscore between words then forces all characters to be lowercase.

Valid inputs for this filter are:

| Class of Valid Input | Description |
|---|---|
| `String` | The string to change into an underscore lowercase format. |

This filter has the following parameters:

| Usage with Parameter | Description |
|---|---|
| `nameas:`*method* | Specifies the naming method: standard, underscore, underscoreLowercase, underscoreUppercase, lowercase, uppercase, capitalize, dashesLowercase, dashesUppercase, parentPrefix |

<hr/>

<a name="filter_detail_path"></a>
##### Filter: `path`

Expand Down
Loading