ALMA Computing Group

alma::demo::XmlComponentImpl::XmlComponentImpl Class Reference

A test component that implements the XmlComponentImpl interface from demo.idl. More...

List of all members.

Public Member Functions

void initialize (ContainerServices contServices) throws ComponentLifecycleException
int dumbMethod (String somevalue)
 from IDL: long dumbMethod(in string somevalue);
ObsProposal createObsProposal ()
 from IDL: ObsProposal createObsProposal();
SchedBlock getBestSchedBlock ()
SchedBlock[] getAllSchedBlocks ()
 from IDL: SchedBlockSeq getAllSchedBlocks();
void addNewSchedBlocks (SchedBlock[] newSchedBlocks)
void xmlInOutMethod (ObsProposal opsPropIn, SchedBlockHolder schedBlockOut)
 from IDL: void xmlInOutMethod(in ObsProposal opsPropIn, out SchedBlock schedBlockOut);
ObsProjectTreeJ getEntireTreeInAStruct ()
 Returns the ObsProposal from createObsProposal and the SchedBlocks from getAllSchedBlocks together in a struct.
String sayHello ()
void exceptionMethod () throws XmlComponentErrorEx
 At the CORBA interface level, we must use the CORBA-exceptions.
void internalExceptionMethod () throws AcsJXmlComponentErrorEx
 Inside the Java implementation, we can throw around native Java exceptions generated from the error specifications.

Private Attributes

ArrayList< SchedBlockm_schedBlockList


Detailed Description

A test component that implements the XmlComponentImpl interface from demo.idl.

The implemented functional interface, XmlComponentJ, uses Castor binding classes, where the IDL (and XmlComponentOperations) use serialized XML strings inside the XmlEntityStruct.

In addition to methods for testing the transparent-xml feature, there is the method sayHello, which is meant to internally contact another component (HelloDemo).

Author:
hsommer Nov 27, 2002 8:22:17 PM

Definition at line 57 of file XmlComponentImpl.java.


Member Function Documentation

void alma::demo::XmlComponentImpl::XmlComponentImpl::addNewSchedBlocks SchedBlock[]  newSchedBlocks  )  [inline]
 

See also:
alma.demo.XmlComponentJ#addNewSchedBlocks(alma.xmljbind.test.schedblock.SchedBlock[])
Definition at line 173 of file XmlComponentImpl.java.

References m_schedBlockList.

ObsProposal alma::demo::XmlComponentImpl::XmlComponentImpl::createObsProposal  )  [inline]
 

from IDL: ObsProposal createObsProposal();

See also:
alma.demo.XmlComponentJ#createObsProposal()
Definition at line 124 of file XmlComponentImpl.java.

References demo::ObsProposal.

Referenced by getEntireTreeInAStruct().

int alma::demo::XmlComponentImpl::XmlComponentImpl::dumbMethod String  somevalue  )  [inline]
 

from IDL: long dumbMethod(in string somevalue);

See also:
alma.demo.XmlComponentJ#dumbMethod(java.lang.String)
Definition at line 114 of file XmlComponentImpl.java.

void alma::demo::XmlComponentImpl::XmlComponentImpl::exceptionMethod  )  throws XmlComponentErrorEx [inline]
 

At the CORBA interface level, we must use the CORBA-exceptions.

Exceptions:
XmlComponentErrorEx with an alma.ACSErr.ErrorTrace inside; the ErrorTrace will contain a NullPointerException.
Definition at line 241 of file XmlComponentImpl.java.

References internalExceptionMethod().

SchedBlock [] alma::demo::XmlComponentImpl::XmlComponentImpl::getAllSchedBlocks  )  [inline]
 

from IDL: SchedBlockSeq getAllSchedBlocks();

See also:
alma.demo.XmlComponentJ#getAllSchedBlocks()
Definition at line 164 of file XmlComponentImpl.java.

References m_schedBlockList.

Referenced by getEntireTreeInAStruct().

SchedBlock alma::demo::XmlComponentImpl::XmlComponentImpl::getBestSchedBlock  )  [inline]
 

See also:
alma.demo.XmlComponentJ#getBestSchedBlock()
Definition at line 147 of file XmlComponentImpl.java.

References m_schedBlockList.

Referenced by xmlInOutMethod().

ObsProjectTreeJ alma::demo::XmlComponentImpl::XmlComponentImpl::getEntireTreeInAStruct  )  [inline]
 

Returns the ObsProposal from createObsProposal and the SchedBlocks from getAllSchedBlocks together in a struct.

Illustrates and tests the usage of xml entity classes inside IDL structs, or rather their usage as Java class members from an implementation point of view.

See also:
alma.demo.XmlComponentJ#getEntireTreeInAStruct()
Definition at line 201 of file XmlComponentImpl.java.

References createObsProposal(), and getAllSchedBlocks().

void alma::demo::XmlComponentImpl::XmlComponentImpl::initialize ContainerServices  contServices  )  throws ComponentLifecycleException [inline]
 

See also:
alma.acs.component.ComponentLifecycle#initialize(ContainerServices)
Definition at line 71 of file XmlComponentImpl.java.

References m_schedBlockList, and demo::SchedBlock.

void alma::demo::XmlComponentImpl::XmlComponentImpl::internalExceptionMethod  )  throws AcsJXmlComponentErrorEx [inline]
 

Inside the Java implementation, we can throw around native Java exceptions generated from the error specifications.

Exceptions:
AcsJXmlComponentErrorEx because that one is easier to work with than the corresponding XmlComponentErrorEx, and this method is not part of the (CORBA) component interface.
Definition at line 260 of file XmlComponentImpl.java.

Referenced by exceptionMethod().

String alma::demo::XmlComponentImpl::XmlComponentImpl::sayHello  )  [inline]
 

See also:
alma.demo.XmlComponentJ#sayHello()
Definition at line 215 of file XmlComponentImpl.java.

void alma::demo::XmlComponentImpl::XmlComponentImpl::xmlInOutMethod ObsProposal  opsPropIn,
SchedBlockHolder  schedBlockOut
[inline]
 

from IDL: void xmlInOutMethod(in ObsProposal opsPropIn, out SchedBlock schedBlockOut);

See also:
alma.demo.XmlComponentJ#xmlInOutMethod(alma.xmljbind.test.obsproposal.ObsProposal, alma.demo.SchedBlockHolder)
Definition at line 186 of file XmlComponentImpl.java.

References getBestSchedBlock().


Member Data Documentation

ArrayList<SchedBlock> alma::demo::XmlComponentImpl::XmlComponentImpl::m_schedBlockList [private]
 

Definition at line 59 of file XmlComponentImpl.java.

Referenced by addNewSchedBlocks(), getAllSchedBlocks(), getBestSchedBlock(), and initialize().


The documentation for this class was generated from the following file: