GSVModel Class Reference
Inherits com::webobjects::appserver::xml::WOXMLCoding.
List of all members.
Detailed Description
GSVModel used for the mapping validation rules to an entities' attributes.
The structure is very similar to Apple's EOModel.
- Author:
- GammaStream Technologies, Inc.
Constructor & Destructor Documentation
Creates a new GSVModel using the path to an '.eomodeld' file.
Example of creating a GSVModel for the Movies example which ships with WebObjects.
<blockquote> EOModel eoModel = EOModelGroup.defaultGroup().modelNamed("Moview");
GSVModel model = new GSVModel(eoModel.path());
</blockquote>
- Parameters:
-
| path | Path to an '.eomodeld' file. |
- Exceptions:
-
| java.lang.IllegalArgumentException | Thrown if valid '.eomodeld' file does not exist at the specified path. |
Member Function Documentation
| void addEntity |
( |
GSVEntity |
newEntity |
) |
throws IllegalArgumentException |
Adds a GSVEntity object to this GSVModel. The GSVEntity must not already exsit.
If it does, IllegalArgumentException is thrown.
- Parameters:
-
- Exceptions:
-
| java.lang.IllegalArgumentException | GSVEnitity already exsits. |
- See also:
- entities
removeEntity
| void encodeWithWOXMLCoder |
( |
WOXMLCoder |
coder |
) |
|
WOXMLCoding Impl
- Parameters:
-
- See also:
- GSVModel
Returns the GSVEntity object associated with the provided EOEnterpriseObject.
- Parameters:
-
| object | EOEnterpriseObject |
- Returns:
- GSVEntity if the EOEnterpriseObject has an GSVEntity Null if not.
- See also:
- entityNamed
| EOModelGroup eomodelGroup |
( |
|
) |
|
Returns the EOModelGroup that is being used to query information from the EOModel.
- Returns:
- EOModelGroup for the EOModel.
Returns the EOModel Name for the associated GSVModel.
- Returns:
- Name of the EOModel
Returns the path of the '.eomodeld' file.
- Returns:
- Path of the EOModel File.
- See also:
- setEomodelPath
| void init |
( |
EOModel |
eomodel |
) |
|
Saves the GSVModel to inside the '.eomodeld' file wrapper.
- Returns:
true if save is successful; otherwise, returns false.
Internal method for saving paths
| void setEomodelPath |
( |
String |
path |
) |
|
Set the path of the EOModel file.
- Parameters:
-
| path | Path of the EOModel File. |
- See also:
- eomodelPath
| boolean validateEOModelForPath |
( |
String |
path |
) |
|
Determines that there is indeed a file located at the given path.
- Returns:
true if an '.eomodeld' file is located at the given path; otherwise, we return false.
- Parameters:
-
| path | Path to the desired '.eomodeld' file. |
Member Data Documentation
boolean inited = false [private] |
The extension of the GSVModel file included in the '.eomodeld' wrapper.
Currently the full name is: 'Validity.model'
The name of the GSVModel file included in the '.eomodeld' wrapper.
Currently the full name is: 'Validity.model'
The documentation for this class was generated from the following file:
- /opt/source/Wonder/Frameworks/EOF/Validity/Sources/com/gammastream/validity/GSVModel.java