001: // THIS SOFTWARE IS PROVIDED BY SOFTARIS PTY.LTD. AND OTHER METABOSS
002: // CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING,
003: // BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
004: // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SOFTARIS PTY.LTD.
005: // OR OTHER METABOSS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
006: // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
007: // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
008: // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
009: // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
010: // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
011: // EVEN IF SOFTARIS PTY.LTD. OR OTHER METABOSS CONTRIBUTORS ARE ADVISED OF THE
012: // POSSIBILITY OF SUCH DAMAGE.
013: //
014: // Copyright 2000-2005 © Softaris Pty.Ltd. All Rights Reserved.
015: package com.metaboss.sdlctools.domains.enterprisemodel.impl;
016:
017: import com.metaboss.enterprise.bo.BOException;
018: import com.metaboss.sdlctools.domains.enterprisemodel.BOAssociationRole;
019: import com.metaboss.sdlctools.domains.enterprisemodel.BODatatype;
020: import com.metaboss.sdlctools.domains.enterprisemodel.BODatatypeList;
021: import com.metaboss.sdlctools.domains.enterprisemodel.BODomain;
022: import com.metaboss.sdlctools.domains.enterprisemodel.BOEnterpriseList;
023: import com.metaboss.sdlctools.domains.enterprisemodel.BOEntity;
024: import com.metaboss.sdlctools.domains.enterprisemodel.BOMessage;
025: import com.metaboss.sdlctools.domains.enterprisemodel.BOMetaBossDomain;
026: import com.metaboss.sdlctools.domains.enterprisemodel.BOOperation;
027: import com.metaboss.sdlctools.domains.enterprisemodel.BOService;
028: import com.metaboss.sdlctools.domains.enterprisemodel.BOServiceimplementation;
029: import com.metaboss.sdlctools.domains.enterprisemodel.BOServicemodule;
030: import com.metaboss.sdlctools.domains.enterprisemodel.BOStructure;
031: import com.metaboss.sdlctools.domains.enterprisemodel.BOSystem;
032: import com.metaboss.sdlctools.domains.enterprisemodel.BOTypetemplate;
033: import com.metaboss.sdlctools.domains.enterprisemodel.BOTypetemplateList;
034: import com.oldboss.framework.bo.impl.BOEntityDomainImpl;
035:
036: public class BOMetaBossDomainImpl extends BOEntityDomainImpl implements
037: BOMetaBossDomain {
038: private BOEnterpriseList mEnterpriseList = null;
039:
040: /* Private constructor restricts instance creation from outside */
041: BOMetaBossDomainImpl() throws BOException {
042: }
043:
044: /* Retrieves requested typetemplate object */
045: public BOTypetemplate getTypetemplate(String pTypetemplateRef)
046: throws BOException {
047: return BOTypetemplateImpl.createInstanceForExisting(this ,
048: pTypetemplateRef);
049: }
050:
051: /* Retrieves requested datatype object */
052: public BODatatype getDatatype(String pDatatypeRef)
053: throws BOException {
054: return BODatatypeImpl.createInstanceForExisting(this ,
055: pDatatypeRef);
056: }
057:
058: /* Retrieves requested entity object */
059: public BOEntity getEntity(String pEntityRef) throws BOException {
060: return BOEntityImpl.createInstanceForExisting(this , pEntityRef);
061: }
062:
063: /* Retrieves requested structure object */
064: public BOStructure getStructure(String pStructureRef)
065: throws BOException {
066: return BOStructureImpl.createInstanceForExisting(this ,
067: pStructureRef);
068: }
069:
070: /* Retrieves requested operation object */
071: public BOOperation getOperation(String pOperationRef)
072: throws BOException {
073: return BOOperationImpl.createInstanceForExisting(this ,
074: pOperationRef);
075: }
076:
077: /* Retrieves requested message object */
078: public BOMessage getMessage(String pMessageRef) throws BOException {
079: return BOMessageImpl.createInstanceForExisting(this ,
080: pMessageRef);
081: }
082:
083: /* Retrieves requested system object */
084: public BOSystem getSystem(String pSystemRef) throws BOException {
085: return BOSystemImpl.createInstanceForExisting(this , pSystemRef);
086: }
087:
088: /* Retrieves requested servicemodule object. */
089: public BOServicemodule getServicemodule(String pServicemoduleRef)
090: throws BOException {
091: return BOServicemoduleImpl.createInstanceForExisting(this ,
092: pServicemoduleRef);
093: }
094:
095: /* Retrieves requested service object. */
096: public BOService getService(String pServiceRef) throws BOException {
097: return BOServiceImpl.createInstanceForExisting(this ,
098: pServiceRef);
099: }
100:
101: /* Retrieves requested service implementation object. */
102: public BOServiceimplementation getServiceimplementation(
103: String pServiceimplementationRef) throws BOException {
104: return null; //return BOServiceimplementationImpl.createInstanceForExisting(this, pServiceimplementationRef);
105: }
106:
107: /* Retrieves requested domain object */
108: public BODomain getDomain(String pDomainRef) throws BOException {
109: return BODomainImpl.createInstanceForExisting(this , pDomainRef);
110: }
111:
112: /* Retrieves requested association role object. */
113: public BOAssociationRole getAssociationRole(
114: String pAssociationRoleRef) throws BOException {
115: return BOAssociationRoleImpl.createInstanceForExisting(this ,
116: pAssociationRoleRef);
117: }
118:
119: /* Retrieves all defined enterprises */
120: public BOEnterpriseList getEnterprises() throws BOException {
121: if (mEnterpriseList == null) {
122: mEnterpriseList = BOEnterpriseListImpl
123: .createInstanceForExisting(this );
124: }
125: return mEnterpriseList;
126: }
127:
128: /* Retrieves all public type templates */
129: public BOTypetemplateList getPublicTypetemplates()
130: throws BOException {
131: return BOTypetemplateListImpl.createInstanceForExisting(this );
132: }
133:
134: /* Retrieves all public datatypes */
135: public BODatatypeList getPublicDatatypes() throws BOException {
136: return BODatatypeListImpl.createInstanceForExisting(this);
137: }
138: }
|