ETEntityDescription documentation
ETEntityDescription : ETModelElementDescription <ETCollection, ETCollectionMutation>Metamodel Description
- + (ETEntityDescription *) newEntityDescription
Self-description (aka meta-metamodel).
- + (NSString *) rootEntityDescriptionName
The name of the entity description that should end the parent chain of every entity description.
This entity description is the Object primitive in the repository. See ETModelDescriptionRepository.
Will be used by -checkConstraints: .
- - (BOOL) isKindOfEntity: (ETEntityDescription *)anEntityDesc
Returns whether the given entity is a subentity of the receiver.
- - (void) addPropertyDescription: (ETPropertyDescription *)propertyDescription
Adds the given property description to this entity, the entity becomes its owner.
- - (void) removePropertyDescription: (ETPropertyDescription *)propertyDescription
Removes the given property description from this entity.
- - (ETPropertyDescription *) propertyDescriptionForName: (NSString *)name
Returns the property description which matches the given name.
See also -propertyDescriptionsForNames: and -[ETModelElementDescription name] which is inherited by ETPropertyDescription.
- - (NSArray *) propertyDescriptionsForNames: (NSArray *)names
Returns the property descriptions which matches the given names. See also -propertyDescriptionForName: and -[ETModelElementDescription name] which is inherited by ETPropertyDescription.
Validation and Runtime Consistency Check
- - (ETValidationResult *) validateValue: (id)value forKey: (NSString *)key
Tries to validate the value that corresponds to the given property name, by delegating the validation to the right property description, and returns a validation result object.
- - (BOOL) isValidValue: (id)aValue type: (ETEntityDescription *)anEntityDesc
Checks the given value and its type against the receiver type, and returns whether the value type is a subtype of the receiver.
This method doesn't execute any model validation as -validateValue:forKey: does.