/**
* Generated by the MOIN Generator Version 3.0
**/
package runlettest.__impl;
public class RunletTestWrapper extends com.sap.tc.moin.repository.core.jmi.reflect.RefObjectWrapperImpl<runlettest.__impl.RunletTestImpl> implements runlettest.RunletTest,com.sap.tc.moin.repository.Partitionable {
static {
}
public RunletTestWrapper(com.sap.tc.moin.repository.core.CoreConnection conn, runlettest.__impl.RunletTestImpl baseObject, boolean synchronize) {
super(conn, baseObject, synchronize);
}
@SuppressWarnings("unused")
private runlettest.__impl.RunletTestImpl getCastWrappedObject() {
return (runlettest.__impl.RunletTestImpl) getWrappedObject();
}
private runlettest.__impl.RunletTestImpl getCastWrappedObject(com.sap.tc.moin.repository.core.CorePartitionable resolved) {
return (runlettest.__impl.RunletTestImpl) resolved;
}
public runlettest.__impl.RunletTestImpl unwrap() {
return (runlettest.__impl.RunletTestImpl) 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
public java.util.Collection<runlettest.Subcomponent> getSub() throws com.sap.tc.moin.repository.mmi.reflect.JmiException
{
try {
if (synchronize) {
synchronizationManager.acquireReadLock();
try {
assertConnectionAlive();
attachConnectionIfRequired();
return (java.util.Collection<runlettest.Subcomponent>) wrapResult(getCastWrappedObject().getSub(connection));
} finally {
synchronizationManager.releaseReadLock();
}
}
assertConnectionAlive();
attachConnectionIfRequired();
return (java.util.Collection<runlettest.Subcomponent>) wrapResult(getCastWrappedObject().getSub(connection));
} catch (com.sap.tc.moin.repository.mmi.reflect.JmiException ex) {
wrapJmiExceptionArgs(ex);
throw ex;
}
}
// methods for modeled operations
// methods for internal modeled operations
// reflective methods
// get the JMI interface
@SuppressWarnings("unchecked")
public java.lang.Class<runlettest.RunletTest> get___JmiInterface() {
return runlettest.RunletTest.class;
}
// to String
protected String metaObjectToString() {
return "runlettest.RunletTest (Java Type)\nrunlettest.RunletTest (MOF Type)"; //$NON-NLS-1$
}
}