package org.archstudio.schematron.core; import org.archstudio.myx.fw.IMyxName; import org.archstudio.myx.fw.MyxRegistry; import org.archstudio.myx.fw.MyxUtils; /* * DO NOT EDIT THIS CLASS, it is automatically generated. ANY MODIFICATIONS WILL BE OVERWRITTEN. To modify, update the * "Schematron Impl" MyxGen extension in the org.archstudio.schematron.core plugin. */ /** * Abstract Myx brick: Schematron Impl * * @generated */ public abstract class SchematronMyxComponentStub extends org.archstudio.myx.fw.AbstractMyxSimpleBrick implements org.archstudio.myx.fw.IMyxDynamicBrick, org.archstudio.archlight.IArchlightTool { /** * The registry of objects for this brick. * * @generated */ protected final MyxRegistry myxRegistry = MyxRegistry.getSharedInstance(); /** * Register this brick instance with the registry. * * @generated */ @Override public void begin() { super.begin(); myxRegistry.registerBrick(this); } /** * Unregister this brick instance with the registry. * * @generated */ @Override public void end() { myxRegistry.unregisterBrick(this); super.end(); } /** * Myx name for the <code>tools</code> interface. * * @generated */ public static final IMyxName IN_TOOLS = MyxUtils.createName("tools"); /** * Returns the service object(s) for the tools interface. * * @see #IN_TOOLS * @generated */ public org.archstudio.archlight.IArchlightTool getTools() { return this; } /** * Myx name for the <code>tests</code> interface. * * @generated */ public static final IMyxName OUT_TESTS = MyxUtils.createName("tests"); /** * Service object for the tests interface. * * @see #OUT_TESTS * @generated */ protected org.archstudio.testadt.IArchlightTestADT tests = null; /** * Returns the service object(s) for the tests interface. * * @see #OUT_TESTS * @generated */ public org.archstudio.testadt.IArchlightTestADT getTests() { if (tests == null) { throw new NullPointerException("Uninitialized service object: tests"); } return tests; } /** * Myx name for the <code>xarch</code> interface. * * @generated */ public static final IMyxName OUT_XARCH = MyxUtils.createName("xarch"); /** * Service object for the xarch interface. * * @see #OUT_XARCH * @generated */ protected org.archstudio.xarchadt.IXArchADT xarch = null; /** * Returns the service object(s) for the xarch interface. * * @see #OUT_XARCH * @generated */ public org.archstudio.xarchadt.IXArchADT getXarch() { if (xarch == null) { throw new NullPointerException("Uninitialized service object: xarch"); } return xarch; } /** * Returns service object(s) for IN interfaces. * * @see #IN_TOOLS * @generated */ @Override public Object getServiceObject(IMyxName interfaceName) { if (interfaceName.equals(IN_TOOLS)) { return this; } throw new IllegalArgumentException("Unhandled interface: " + interfaceName.getName()); } /** * Update service objects based on connected OUT interfaces. * * @see #OUT_TESTS * @see #OUT_XARCH * @generated */ @Override public void interfaceConnected(IMyxName interfaceName, Object serviceObject) { if (serviceObject == null) { throw new NullPointerException(interfaceName.getName()); } if (interfaceName.equals(OUT_TESTS)) { if (tests != null) { throw new IllegalStateException("Only a single connection is supported on interface: tests"); } tests = (org.archstudio.testadt.IArchlightTestADT) serviceObject; return; } if (interfaceName.equals(OUT_XARCH)) { if (xarch != null) { throw new IllegalStateException("Only a single connection is supported on interface: xarch"); } xarch = (org.archstudio.xarchadt.IXArchADT) serviceObject; return; } throw new IllegalArgumentException("Unhandled interface: " + interfaceName.getName()); } /** * Update service objects based on disconnecting OUT interfaces. * * @see #OUT_TESTS * @see #OUT_XARCH * @generated */ @Override public void interfaceDisconnecting(IMyxName interfaceName, Object serviceObject) { if (serviceObject == null) { throw new NullPointerException(interfaceName.getName()); } if (interfaceName.equals(OUT_TESTS)) { if (tests == null) { throw new IllegalStateException("A connection was never made on interface: tests"); } tests = null; return; } if (interfaceName.equals(OUT_XARCH)) { if (xarch == null) { throw new IllegalStateException("A connection was never made on interface: xarch"); } xarch = null; return; } throw new IllegalArgumentException("Unhandled interface: " + interfaceName.getName()); } /** * Performs no operation upon the completion of an interface disconnecting. * * @generated */ @Override public void interfaceDisconnected(IMyxName interfaceName, Object serviceObject) { } }