Skip to content

Commit 3b89fac

Browse files
authored
Merge pull request #21 from entityc/bobgarner/bug-fixes
Added support for Released view
2 parents a99877b + de170b3 commit 3b89fac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+2507
-548
lines changed

docs/emc/EMC_config.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,16 @@ Indicates whether this space has a metadata name/value for the specified name.
350350

351351
<hr/>
352352

353+
#### `boolean hasRealmWithName(String realm)`
354+
355+
Returns true if there is a realm by this name.
356+
357+
| Parameter | Description |
358+
|-----|-----|
359+
|`String realm` | *no description* |
360+
361+
<hr/>
362+
353363
#### `List` **`importEntityNames`**
354364

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

373383
<hr/>
374384

385+
#### `MTRealm realmWithName(String realm)`
386+
387+
Returns the realm object by its name.
388+
389+
| Parameter | Description |
390+
|-----|-----|
391+
|`String realm` | *no description* |
392+
393+
<hr/>
394+
375395
#### `MTRepository repository(String name)`
376396

377397
Returns the repository object by its name.

docs/emc/EMC_domain.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Model classes that are domain specific are of this type. The classes are briefly
1111
|[`MTDEAttribute`](#class_MTDEAttribute)|Represents an attribute in your model in the context of a domain.|
1212
|[`MTDEAttributeConstraintExpression`](#class_MTDEAttributeConstraintExpression)|Represents a constraint on an attribute in the form of an expression.|
1313
|[`MTDERelationship`](#class_MTDERelationship)|Represents a relationship in your model in the context of a domain.|
14+
|[`MTDERelationshipField`](#class_MTDERelationshipField)|Represents a field (attribute or relationship) associated with the __to__ entity of the relationship.|
1415
|[`MTDEntity`](#class_MTDEntity)|Represents an entity in your model in the context of a domain.|
1516
|[`MTDEnum`](#class_MTDEnum)|Represents an enum in the context of a domain.|
1617
|[`MTDEnumItem`](#class_MTDEnumItem)|Represents an enum item in the context of a domain.|
@@ -236,6 +237,12 @@ If this relationship was explicitly renamed within its domain, it will return th
236237

237238
<hr/>
238239

240+
#### `Collection` **`fields`**
241+
242+
Returns all the declared fields of this relationship.
243+
244+
<hr/>
245+
239246
#### `String fullname(String delim)`
240247

241248
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.
@@ -551,6 +558,18 @@ Returns the domain specific version of the specified relationship.
551558

552559
<hr/>
553560

561+
#### `boolean` **`hasDeclaredDomainRelationships`**
562+
563+
Indicates if any relationships were declared in this domain entity declaration.
564+
565+
<hr/>
566+
567+
#### `boolean` **`hasParentRelationship`**
568+
569+
Indicates whether this domain entity has a parent relationship. A parent relationship is one that has been declared as `parent`
570+
571+
<hr/>
572+
554573
#### `boolean` **`hasPrimaryParentRelationship`**
555574

556575
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`.

docs/emc/EMC_entity.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,16 @@ These methods relate to an entity.
355355

356356
<hr/>
357357

358+
#### `void addRealm(String realm)`
359+
360+
Adds the entity to a realm.
361+
362+
| Parameter | Description |
363+
|-----|-----|
364+
|`String realm` | *no description* |
365+
366+
<hr/>
367+
358368
#### `boolean` **`isDeclaredAsPrimary`**
359369

360370
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.
@@ -379,6 +389,16 @@ Indicates whether this entity was created by the compiler because it represents
379389

380390
<hr/>
381391

392+
#### `boolean isInRealm(String realm)`
393+
394+
Returns true if this entity is part of a realm.
395+
396+
| Parameter | Description |
397+
|-----|-----|
398+
|`String realm` | *no description* |
399+
400+
<hr/>
401+
382402
#### `boolean` **`isPrimary`**
383403

384404
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.
@@ -576,6 +596,16 @@ Indicates whether this entity has any attributes.
576596

577597
Indicates whether this entity defines any bit fields.
578598

599+
<hr/>
600+
601+
#### `MTRelationship relationshipNamed(String name)`
602+
603+
Returns an relationship of this entity with the specified name.
604+
605+
| Parameter | Description |
606+
|-----|-----|
607+
|`String name` | The name of the relationship to return. |
608+
579609

580610
### Relationship Category
581611

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

658688
<hr/>
659689

690+
#### `boolean hasRelationshipNamed(String name)`
691+
692+
Indicates whether this entity has an relationship with the specified name.
693+
694+
| Parameter | Description |
695+
|-----|-----|
696+
|`String name` | *no description* |
697+
698+
<hr/>
699+
660700
#### `boolean` **`hasRelationships`**
661701

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

829869
<hr/>
830870

871+
#### `boolean hasRelationshipToEntityNamed(String toEntityName)`
872+
873+
Indicates whether this entity has at least one relationship to a named other entity.
874+
875+
| Parameter | Description |
876+
|-----|-----|
877+
|`String toEntityName` | The name of the other entity. |
878+
879+
<hr/>
880+
831881
#### `boolean hasRelationshipToEntityTagged(String tag)`
832882

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

905955
<hr/>
906956

957+
#### `MTEnumItem item(Long index)`
958+
959+
Returns an item by its index.
960+
961+
| Parameter | Description |
962+
|-----|-----|
963+
|`Long index` | *no description* |
964+
965+
<hr/>
966+
907967
#### `List` **`items`**
908968

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

12271287
<hr/>
12281288

1289+
#### `MTEntity` **`implicitToEntity`**
1290+
1291+
Gets the entity on the other side of an implicit many-to-many entity.
1292+
1293+
<hr/>
1294+
12291295
#### `boolean` **`isImplicit`**
12301296

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

13411407
<hr/>
13421408

1409+
#### `boolean` **`isDataType`**
1410+
1411+
Indicates whether this type is the `data` data type.
1412+
1413+
<hr/>
1414+
13431415
#### `boolean` **`isDateType`**
13441416

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

docs/emc/EMC_foundation.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,16 @@ Returns the first item in the array.
7575

7676
<hr/>
7777

78+
#### `Object get(Integer index)`
79+
80+
Returns the specified item by its index into the array.
81+
82+
| Parameter | Description |
83+
|-----|-----|
84+
|`Integer index` | The index into the array that points to the item to be returned. |
85+
86+
<hr/>
87+
7888
#### `Object get(Long index)`
7989

8090
Returns the specified item by its index into the array.

docs/etl/ETL.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ Here is the full list of filters:
128128
| [`lowercase`](#filter_detail_lowercase) | Forces all characters of the input to be lowercase. |
129129
| [`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. |
130130
| [`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. |
131+
| [`nameas`](#filter_detail_nameas) | Places underscore between words then forces all characters to be lowercase. |
131132
| [`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. |
132133
| [`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. |
133134
| [`reverse`](#filter_detail_reverse) | Given a collection of objects, this will return a collection that has the reverse order of the input. |
@@ -416,6 +417,25 @@ Valid inputs for this filter are:
416417

417418
<hr/>
418419

420+
<a name="filter_detail_nameas"></a>
421+
##### Filter: `nameas`
422+
423+
Places underscore between words then forces all characters to be lowercase.
424+
425+
Valid inputs for this filter are:
426+
427+
| Class of Valid Input | Description |
428+
|---|---|
429+
| `String` | The string to change into an underscore lowercase format. |
430+
431+
This filter has the following parameters:
432+
433+
| Usage with Parameter | Description |
434+
|---|---|
435+
| `nameas:`*method* | Specifies the naming method: standard, underscore, underscoreLowercase, underscoreUppercase, lowercase, uppercase, capitalize, dashesLowercase, dashesUppercase, parentPrefix |
436+
437+
<hr/>
438+
419439
<a name="filter_detail_path"></a>
420440
##### Filter: `path`
421441

0 commit comments

Comments
 (0)