/** * Generated by the MOIN Generator Version 3.0 **/ package runlettest.__impl; public class NamedWrapper extends com.sap.tc.moin.repository.core.jmi.reflect.RefObjectWrapperImpl<runlettest.__impl.NamedImpl> implements runlettest.Named,com.sap.tc.moin.repository.Partitionable { static { } public NamedWrapper(com.sap.tc.moin.repository.core.CoreConnection conn, runlettest.__impl.NamedImpl baseObject, boolean synchronize) { super(conn, baseObject, synchronize); } @SuppressWarnings("unused") private runlettest.__impl.NamedImpl getCastWrappedObject() { return (runlettest.__impl.NamedImpl) getWrappedObject(); } private runlettest.__impl.NamedImpl getCastWrappedObject(com.sap.tc.moin.repository.core.CorePartitionable resolved) { return (runlettest.__impl.NamedImpl) resolved; } public runlettest.__impl.NamedImpl unwrap() { return (runlettest.__impl.NamedImpl) getWrappedObject(); } // methods for attributes public java.lang.String getName() throws com.sap.tc.moin.repository.mmi.reflect.JmiException { com.sap.tc.moin.repository.core.CorePartitionable resolved = mriReference.getIfResolved(); if (resolved != null) { return getCastWrappedObject(resolved).getName(); } try { if (synchronize) { synchronizationManager.acquireReadLock(); try { assertConnectionAlive(); attachConnectionIfRequired(); return getCastWrappedObject().getName(); } finally { synchronizationManager.releaseReadLock(); } } assertConnectionAlive(); attachConnectionIfRequired(); return getCastWrappedObject().getName(); } catch (com.sap.tc.moin.repository.mmi.reflect.JmiException ex) { wrapJmiExceptionArgs(ex); throw ex; } } public void setName(java.lang.String newValue) throws com.sap.tc.moin.repository.mmi.reflect.JmiException { try { if (synchronize) { synchronized (synchronizationManager.getProhibitWriteSyncObject()) { assertConnectionAlive(); attachConnectionIfRequired(); getCastWrappedObject().setName(connection, newValue); } } else { assertConnectionAlive(); attachConnectionIfRequired(); getCastWrappedObject().setName(connection, newValue); } } catch (com.sap.tc.moin.repository.mmi.reflect.JmiException ex) { wrapJmiExceptionArgs(ex); throw ex; } } // methods for references // methods for modeled operations // methods for internal modeled operations // reflective methods // get the JMI interface @SuppressWarnings("unchecked") public java.lang.Class<runlettest.Named> get___JmiInterface() { return runlettest.Named.class; } // to String protected String metaObjectToString() { return "runlettest.Named (Java Type)\nrunlettest.Named (MOF Type)"; //$NON-NLS-1$ } }