/** * Generated by the MOIN Generator Version 3.0 **/ package runlettest.__impl; public final class RunletTestImpl extends com.sap.tc.moin.repository.core.jmi.reflect.RefObjectImpl { public static final java.util.Map<java.lang.String, java.lang.Integer> FEATURE_IDS; static { FEATURE_IDS = new java.util.HashMap<java.lang.String, java.lang.Integer>(3); FEATURE_IDS.put("name", Integer.valueOf(0)); //$NON-NLS-1$ FEATURE_IDS.put("sub", Integer.valueOf(1)); //$NON-NLS-1$ } // variable declarations private java.lang.String __name = null; // links for multiplicity-n association ends private java.util.Collection<com.sap.tc.moin.repository.core.EndStorageLink> __A_sub_runletTest_sub_E0BF480E8BFD96438B2011DE8C4E00155883529C; // default constructor public RunletTestImpl() { super(); } // specific constructor public RunletTestImpl(java.lang.Object workspace, String mofId, com.sap.tc.moin.repository.mmi.reflect.RefPackage immediatePackage, com.sap.tc.moin.repository.mmi.reflect.RefObject metaObject, com.sap.tc.moin.repository.mmi.reflect.RefClass refClass) { super(workspace, mofId, immediatePackage, metaObject, refClass); } // methods for attributes public java.lang.String getName() throws com.sap.tc.moin.repository.mmi.reflect.JmiException { return __name; } public void setName(java.lang.String newValue) throws com.sap.tc.moin.repository.mmi.reflect.JmiException { ___changeDataTypeAttribute(get___CurrentConnection(), 0, "E0BF480E8BFD96418B2011DECAC400155883529C", __name, newValue); //$NON-NLS-1$ } public void setName(com.sap.tc.moin.repository.core.CoreConnection connection, java.lang.String newValue) throws com.sap.tc.moin.repository.mmi.reflect.JmiException { ___changeDataTypeAttribute(connection, 0, "E0BF480E8BFD96418B2011DECAC400155883529C", __name, newValue); //$NON-NLS-1$ } // methods for references public java.util.Collection getSub() throws com.sap.tc.moin.repository.mmi.reflect.JmiException { return (java.util.Collection) ___getElementsAtOtherLinkEnd( get___CurrentConnection(), this, get___EndAndMetaObject( "E0BF480E8BFD96458B2011DEC08100155883529C" /* attribute or association */, 0 ) ) ; //$NON-NLS-1$ } public java.util.Collection getSub(com.sap.tc.moin.repository.core.CoreConnection connection) throws com.sap.tc.moin.repository.mmi.reflect.JmiException { return (java.util.Collection) ___getElementsAtOtherLinkEnd( connection, this, get___EndAndMetaObject( "E0BF480E8BFD96458B2011DEC08100155883529C" /* attribute or association */, 0 ) ) ; //$NON-NLS-1$ } // methods for internal attribute setter private void set__Name(java.lang.String newValue) { __name = newValue; } // reflective methods public java.lang.Object refGetValue(com.sap.tc.moin.repository.core.CoreConnection connection, java.lang.String featureName) { if (featureName == null) { throw new com.sap.tc.moin.repository.mmi.reflect.InvalidNameException(featureName); } java.lang.Object result = null; java.lang.Integer featureId = FEATURE_IDS.get(featureName); if (featureId == null) { throw new com.sap.tc.moin.repository.mmi.reflect.InvalidCallException(featureName, refMetaObject(), "refGetValue(String)"); //$NON-NLS-1$ } switch (featureId) { case 0: result = getName(); break; case 1: result = getSub(connection); break; default: throw new com.sap.tc.moin.repository.mmi.reflect.InvalidCallException(featureName, refMetaObject(), "refGetValue(String)"); //$NON-NLS-1$ } return result; } public void refSetValue(com.sap.tc.moin.repository.core.CoreConnection connection, java.lang.String featureName, java.lang.Object value) { if (featureName == null) { throw new com.sap.tc.moin.repository.mmi.reflect.InvalidNameException(featureName); } java.lang.Integer featureId = FEATURE_IDS.get(featureName); if (featureId == null) { throw new com.sap.tc.moin.repository.mmi.reflect.InvalidCallException(featureName, refMetaObject(), "refSetValue(String)"); //$NON-NLS-1$ } switch (featureId) { case 0: ___changeDataTypeAttribute(connection, 0, "E0BF480E8BFD96418B2011DECAC400155883529C", __name, value); //$NON-NLS-1$ break; case 1: ___changeReference(connection, "E0BF480E8BFD96458B2011DEC08100155883529C" /* mofId of association */, "E0BF480E8BF8DB508B2011DEC3D400155883529C" /* mofId of reference */, value, 0); //$NON-NLS-1$ //$NON-NLS-2$ break; default: throw new com.sap.tc.moin.repository.mmi.reflect.InvalidCallException(featureName, null, "refSetValue(String)"); //$NON-NLS-1$ } } public void set___Value(com.sap.tc.moin.repository.core.CoreSession session, java.lang.String featureName, java.lang.Object value) { switch (FEATURE_IDS.get(featureName)) { case 0: set__Name((java.lang.String) value); break; default: throw new com.sap.tc.moin.repository.mmi.reflect.InvalidCallException(featureName, refMetaObject(), "set___Value(String)"); //$NON-NLS-1$ } } public void set___Value(com.sap.tc.moin.repository.core.CoreSession session, int featureId, java.lang.Object value) { switch (featureId) { case 0: set__Name((java.lang.String) value); break; default: throw new com.sap.tc.moin.repository.mmi.reflect.InvalidCallException(featureId, refMetaObject(), "set___Value(int)"); //$NON-NLS-1$ } } public void addOrSet___Value(com.sap.tc.moin.repository.core.CoreSession session, java.lang.String featureName, java.lang.Object value) { switch (FEATURE_IDS.get(featureName)) { case 0: set__Name((java.lang.String) value); break; default: throw new com.sap.tc.moin.repository.mmi.reflect.InvalidCallException(featureName, refMetaObject(), "addOrSet___Value(String)"); //$NON-NLS-1$ } } public java.util.List<com.sap.tc.moin.repository.core.EndStorageLink> get___AllStoredLinks( ) { java.util.List<com.sap.tc.moin.repository.core.EndStorageLink> result = null; if ( __A_sub_runletTest_sub_E0BF480E8BFD96438B2011DE8C4E00155883529C != null ) { if ( result == null ) result = new java.util.ArrayList<com.sap.tc.moin.repository.core.EndStorageLink>( ); result.addAll( __A_sub_runletTest_sub_E0BF480E8BFD96438B2011DE8C4E00155883529C); } return result; } public java.util.List<com.sap.tc.moin.repository.core.EndStorageLink> get___AllStoredAssociationLinks( ) { java.util.List<com.sap.tc.moin.repository.core.EndStorageLink> result = null; if ( __A_sub_runletTest_sub_E0BF480E8BFD96438B2011DE8C4E00155883529C != null ) { if ( result == null ) result = new java.util.ArrayList<com.sap.tc.moin.repository.core.EndStorageLink>( ); result.addAll( __A_sub_runletTest_sub_E0BF480E8BFD96438B2011DE8C4E00155883529C); } return result; } public java.util.Collection<com.sap.tc.moin.repository.core.EndStorageLink> get___AssociationLinks( String associationEndMofId ) { if ( associationEndMofId == "E0BF480E8BFD96438B2011DE8C4E00155883529C" ) { return __A_sub_runletTest_sub_E0BF480E8BFD96438B2011DE8C4E00155883529C; } //$NON-NLS-1$ return null; } public void set___AssociationLinks( java.util.Collection<com.sap.tc.moin.repository.core.EndStorageLink> links, String associationEndMofId ) { if ( associationEndMofId == "E0BF480E8BFD96438B2011DE8C4E00155883529C" ) { __A_sub_runletTest_sub_E0BF480E8BFD96438B2011DE8C4E00155883529C = links; return; } //$NON-NLS-1$ } public java.util.List<com.sap.tc.moin.repository.core.EndStorageLink> clear___AllLinks( ) { reset___CompositeParentLink( ); java.util.List<com.sap.tc.moin.repository.core.EndStorageLink> result = null; if ( __A_sub_runletTest_sub_E0BF480E8BFD96438B2011DE8C4E00155883529C != null ) { if ( result == null ) result = new java.util.ArrayList<com.sap.tc.moin.repository.core.EndStorageLink>( ); result.addAll( __A_sub_runletTest_sub_E0BF480E8BFD96438B2011DE8C4E00155883529C); __A_sub_runletTest_sub_E0BF480E8BFD96438B2011DE8C4E00155883529C = null; } return result; } // get the JMI interface @SuppressWarnings("unchecked") public java.lang.Class<runlettest.RunletTest> get___JmiInterface() { return runlettest.RunletTest.class; } // create the wrapper @Override public com.sap.tc.moin.repository.spi.core.Wrapper<runlettest.__impl.RunletTestImpl> createWrapper(com.sap.tc.moin.repository.core.CoreConnection conn, boolean synchronize) { return new runlettest.__impl.RunletTestWrapper(conn, this, synchronize); } }