Is it possible to programatically determine the children of a class during program execution?

I am basically trying to determine programatically if a class is a child of a specific parent class OR along the same lines I need a list of all children of a parent class.  Either method would work.  Is this possible to do via code?
-Daniel | CLA
Solved!
Go to Solution.

And an image to go with Yair's reply...
If no error then it is a child.
More LVOOP images here.
See this thread for more words.
Ben
PS: An yes that error wire should be wired between the loops.
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • Possible to programatically determine an EO's attribute's "updatable" prop?

    possible to programatically determine an EO/VO's attribute's "updatable" property?
    Using JDev 10.1.3
    The "Updateable" choices (Always, While New, Never) on an attribute in an Entity or View object seem to be used by
    the af:inputText component to determine if the generated input field is read only.
    Is there a hook in the framework to override this at the Entity or View level and make it programmable on a row-by-row basis?
    (The logic I need to implement is somewhat complicated and I want to avoid some huge EL string in the inputText component's readonly property -- especially since I would need to duplicate it for each page the Entity/View object is referenced.)
    Thanks,
    -- Scott

    Hi Steve (or anyone)-
    Sort of a followup to this question.
    In my specific case, I want to cause the setting of a certain attribute (A) to cause another attribute (B) to change and then to not be updatable. Unfortunately, the condition I code in isAttributeUpdatable (the solution in section 9.14) prevents the changes to B. I've come up with a workaround (undo the conditions that isAttributeUpdateable checks, set the values, and then reset those conditions) but I wondered if this is really the best way?
        // In this example, Attribute A is a column that is a FK to another table
        // for an optional association relationship
        public boolean isAttributeUpdateable(int index) {
            //Don't allow an update to B if A is set.
            if(index == MYATTRB) {
                if(getMyAttrA() != null) {
                    return false;
            return super.isAttributeUpdateable(index);
        public void setMyAttrA(Number value) {
            setAttributeInternal(MYATTRA, value);
            /* Rule:  If attribute A is set to something other than NULL,
             * override attribute B with a value from the referenced/associated entity
            if(value != null) {
                SomeOtherEntity e = getSomeOtherEntityReferencedViaAttributeA();  //via association getter
                /* NOTE:  THIS IS A HACK!
                 * If we just set attribute B, we will get a JBO exception because
                 * isAttributeUpdateable will tell us the attribute is not updateable.
                 * So, "undo" the set of A, set B, then "redo" the set of A
                setAttributeInternal(MYATTRA, null);
                setAttrB(e.getSomeValue());
                setAttributeInternal(MYATTRA, value);
        }

  • Is there anyway to reset the GPIB driver during program execution?

    Is there anyway to reset the GPIB driver during program execution?

    The issue at hand is that a thread is executing a series of tests which may or may not be making GPIB calls at any given time. The thread may be killed at any time with the function CmtTerminateThreadPoolThread (due to the user pressing the stop button on the GUI). Cooperative thread termination is not an option since a test may cause the thread of execution to lock up the system. The problem is that there may be outstanding GPIB calls at the time that the thread is stopped. These calls time out and generate run-time errors usually via the GPIB function ibrd. The motivation is to completely stop the GPIB driver while the thread is being killed, after which it can be re-initialized. Ideally.

  • ADF 11g: Possible to programatically set the pivot handle label ?

    Hi all,
    I am using JDev/ADF 11.1.1.3. I have a pivot table and I would like to dynamically set the pivot handle labels. The value needed for the label is another column in my view object.
    I tried 3 different approaches to no avail and I am running out of ideas:
    1) I tried to override the createViewRowAttrHints method as per Steve's article (http://blogs.oracle.com/smuenchadf/examples/#137). While I could see that it did work in the BC tester, it did not get picked up by the pivot table
    2) I tried to set the value in the page definition but the itemLabel tag seems to only accept a literal
    3) Lastly, I tried the setLayerMetadata method in the underlying DataDirector, still no dice.
    If anyone could point me in the right direction, it would be greatly appreciated.
    Thanks,
    Michel

    Hi Dharmathej,
    Wht Jdev version u using....... since in JDeveloper 11.1.1.4 ADF provides to hide the status bar of the panelCollection
    refer here http://ramadf.blogspot.com/2011/01/jdeveloper-11114-af-panelcollection.html
    Regards,
    Suganth.G

  • How to determine the last time  a database was used

    Is it possible in to determine the time a CRUD operation occurred on a database?

    How can I activate the auditing? http://download-east.oracle.com/docs/cd/B19306_01/network.102/b14266/auditing.htm#i1011984
    Daljit Singh

  • How to determine the maximum allowable length of a filename for Window ?

    Hi all,
    Could I know how to determine the allowable file length (the length of the absolute path) for a file in Window environment?
    Due to some reason, I generated a zip file with a very long filename ( > 170) and put in a folder(the length of the folder path around 90). The length of the absolute path is around 260.
    I used FileOutputStream with the ZipOutputStream to write out the zip file. Everything is working fine while i generating the zip file.
    However, while i try to extract some files from the zip file i just created, i encountered the error
    java.util.zip.ZipException The filename is too long.
    I am using the class ZipFile to extract the files from the zip file like the following
    String absPath = "A very long filepath which exceed 260";
    ZipFile zipF = new ZipFile(absPath);  //<-- here is the root causeIs it possible to pre-determine the maximum allowable filepath length prior i generate the zip file ? This is weird since i got no error while i created the zip file, but have problem in extracting the zip file ......
    Thanks

    Assuming you could determine the max, what would you do about it? I'd say you should just assume it will be successful, but accommodate (handle) the possible exception gracefully. Either way you're going to have to handle it as an "exception", whether you "catch" an actual "Exception" object and deal with that, or manually deal with the length exceeding the max.

  • Post Code : Want to determine the list of Business Partner !!!

    Hi all
       I have given Post Code of BP.
       I want to determine the <b>list of Business Partner</b> present in the specified <b>Post Code Location</b>.
      Is their any direct way around to determine the list of
    Business Partner ?  or Please let me know the possible ways to determine the BPs with the given Post Code !!!!
    Many Thanks
    Jack

    Hi Jack,
    Have a look at BAPI_BUPA_SEARCH function module.
    Enter the Post Code in the ADDRESSDATA structure and it will return list of Business Partners for the same.
    Also ,have a look at BUPA_PARTNER_CONTACT_SEARCH function module.
    <b>Reward points if it helps.</b>
    Message was edited by: Amit Mishra

  • Programatically determine port and COM mapping

    Hello all,
    Please let me know the method of programatically determining the port and COMx mapping using labwindows CVI. I mean to ask which port referes to which COM or which resource(like ASRL1). I am using NI PCI 8433 card.
    Thanks in advance.
    Sri Vidya

    Hi,
    using the Search function of this forum (e.g. serial port) will uncover the following thread with a nice code by msaxon:
    http://forums.ni.com/t5/LabWindows-CVI/What-CVI-functions-do-I-need-to-use-in-order-to-check-the/m-p...

  • How to programatically determine tha actionMethod invoked

    Hi,
    I am using Struts ActionForm approach to validate screen parameters.I have 3 jsp
    pages in my pageFlow, each invoking different actionMethods.
    IN my validate method, I want to check the actionMethod being invoked to put right
    set of validations against each of the page parameters.
    Does anyone know how to programatically determine the actionMethod being invoked.
    Sridhar

    This is a question has been asked before, but not answered yet. How can I
    get the logger from pageflow? What is the recommended way to do logging from
    pageflow? My intention is to use weblogic's logging mechanism rather than
    using my own.
    TIA
    panji.a

  • Dynamically determining the number of cols in Select stmt

    Hi,
    I was wondering if it is possible to dynamically determine the number of cols in Select stmt.
    For example:
    If it had:
    Select empno, lname from emp where empno = 32
    then I'd like it to return 2.
    Thanks in advance.
    Sincerely,
    Nikhil Kulkarni

    Hi,
    I was wondering if it is possible to dynamically determine the number of cols in Select stmt.
    For example:
    If it had:
    Select empno, lname from emp where empno = 32
    then I'd like it to return 2.
    Thanks in advance.
    Sincerely,
    Nikhil Kulkarni

  • Determine Partition usage during query execution

    InfoCube is partitioned using 0CALMONTH from 2003 to 2011- (34 partitions, 4 partitions/year). However during query execution variable prompts are used for Fiscal year and posting period.
    1) Is there a way to find out 0CALMONTH partition is used in this case ?
    2) Is it possible to display or capture the number of partitions used during query execution ?

    InfoCube is partitioned using 0CALMONTH from 2003 to 2011- (34 partitions, 4 partitions/year). However during query execution variable prompts are used for Fiscal year and posting period.
    1) Is there a way to find out 0CALMONTH partition is used in this case ?
    2) Is it possible to display or capture the number of partitions used during query execution ?

  • DIO Pass or Fail Tests: LabVIEW would have to determine the expected result or results (1 or 2 of a possible 25) based on the output pattern send out (1 of 65K).

    I am trying to come up with a plan to write a LabVIEW VI to do the following test. Can you give me a few ideas how to do this in LabVIEW. I am a new to LabView. I think I how to read and write I/O ports and do comparisons. I need a little guidance on the error checking. In simple terms the test will go like this:
    I have 16 digital inputs and 16 outputs.
    The 16 outputs are turned on in a specific pattern (i.e. 1001000101011101) and then the 16 inputs (i.e. 1000101111111111) are read in after a time delay. The inputs are checked to see if they match the expected results. If they do it's a pass if not it's a f
    ailure. This seems pretty straightforward. And I think I have an idea how to do it. Here's the problem. The inputs are changed sequentially so that all possible combinations are tried. The test needs to determine if the resulting input pattern is correct based on the outputs that were sent out. 16 outputs give 65K possible tests. For each tests there would be 1 or 2 possible results with a total of 25 results for the entire 65K possible tests. LabVIEW would have to determine the expected result or results (1 or 2 of the 25) based on the output pattern send out (1 of 65K). Then it would have to compare the actual input pattern received to see if it's a pass or fail?
    Any ideas how I can approach this?

    The 16 outputs are simulating inputs to the device under test, (simulating remote switches and contacts). The object of the test is to test every possible combination to ensure that nothing unexpected happens at the output. The device under test is a logic motor control system and we want to make sure (among other things) that we don’t start or stop the motor when its not suppose to. How can only two tests do that?
    I think you are describing how to create an array with the results. But I still don’t know how to determine what the result should be and if it is correct.
    I’ve identified 25 possible valid states the motor controller can be in.
    I’ve also identified the correct outputs that determine each of the 25 states.
    I’ve also
    identified the possible valid states you can go to from each (previous) state, You can only get to a valid new state from a previous state if the right combination of inputs is applied (we hope).
    If you know what state you are in when start and you know the valid states you can go to and the inputs required to get there, you should be able test the system against that. You verify this by checking the outputs against what they should be. With 65K possible inputs combination, checking them all manually would be quite is a task. Putting this into LabView is my task.

  • Is it possible to resize the children of a viewstack(coverflow)

    I am using a coverflow component which extends a viewstack: http://dougmccune.com/blog/2007/11/03/coverflow-flex-component/
    I can add children (canvas with an image)  fine by explicity setting the width and height of the canvas. Then i can align the children in the centre of the canvas.
    However if i specify a different size of canvas when adding a new child all the previosuly added children become unaligned.
    So is there any way to resize the children of a viewstack? Or does anyone have any other solutions?
    here is my add child code:
    var tmpchild:Canvas = new Canvas();
    //These can't be changed without un aligning other children already present in the viewstack
    tmpchild.height=170;
    tmpchild.width=170;
    var tmpimage:Image = new Image();                         
    tmpimage.source=imageSource;
    tmpimage.horizontalCenter=0;
    tmpimage.verticalCenter=0;
    tmpchild.addChild(tmpimage);
    tmpchild.verticalCenter = 0;
    coverflow.addChild(tmpchild);
    Thanks

    I don't believe so. Changing the parent container will directly effect the children of that container.

  • Is it possible to determine the sender when using a shared mailbox on Office365.

    Answer would be greatly appreciated, thanks.

    Hi Jamie,
    It's not possible, unless you see the signiture in the email.

  • I have an older MacBook Pro Core Duo, I don't know if it is uprgradeable to OS X Mountain lion is it possible to tell via the S/n???  I'm already at Snow Leo. 10.6.8.  I'd like to be able to completely bypass OS X Lion  this may help determine if this is

    I have an older MacBook Pro Core Duo, I don't know if it is uprgradeable to OS X Mountain lion is it possible to tell via the S/n???  I'm already at Snow Leo. 10.6.8.  I'd like to be able to completely bypass OS X Lion.  Any one have any input that might shed light on my situation?  Thanks in advance for your input. 

    Your MacBook can not be upgraded to Lion or Mountain Lion. Snow Leopard is the highest possible for that model.

Maybe you are looking for