Custom Collection Class

Hello people!
In VB.NET, i am used to creating collections of custom objects that inherit from the CollectionBase class. I'm new to java, but i need a custom collection. I need to be able to add and get the index of items in the collection.. at least. so i'm guessing it'll implement the List implementation.. yeah? I dunno.. and what's all this "<E>" stuff that i keep seeing around all about?! :) lol
Thank you for your time! - Callam

- What exactly are your requirements? I don't really understand it? Do you just want to find out the index of an item in the collection? Simple: Any List can do that.
- the <E> stuff you keep seeing is about generics. If you plan to implement your own collection you should definitely read through the generics tutorial first.

Similar Messages

  • ORAData Implementation for  a custom collection class

    Hi All,
    I have a problem for ORAData Implementation. Following shows the objects how to represent this in Java Class so that it can pass to Stored procedure.
    CREATE TYPE NODE_OBJ AS OBJECT
    NODE_ID NUMBER,
    FR_ID NUMBER(10),
    PARTITION_DATE DATE);
    CREATE TYPE NODE_SET IS TABLE OF NODE;
    Thanking u in advance
    Regards
    geet

    I have made a mistake in my previous question it should be
    CREATE TYPE NODE_OBJ AS OBJECT
    NODE_ID NUMBER,
    FR_ID NUMBER(10),
    PARTITION_DATE DATE);
    CREATE TYPE NODE_SET IS TABLE OF NODE_OBJ;
    Regards
    Geet

  • Define custom typed collection class

    Hi, I would like to define a custom typed collection class that can hold multiple type elements, to be more concrete, i have a class defined as
    public class MyList extends ArrayList{
    public class TestMyList{
        MyList<MyDataTypeOne> listOne; // i want to use JAVA generics here, but it wont let me
        MyList<MyDataTypeTwo> listTwo;
    }and i got an error saying: "MyList" does not have typed parameters.
    I understand that i need to declare my class as something like
    public class MyList<MyDataTypeOne> extends ArrayList
    but i dont want it to be restricted to <MyDataTypeOne> but multiple types, just like ArrayList. How can i cope with this please, thanks!

    Test the following code:
    import java.util.ArrayList;
    public class MyList<E> extends ArrayList<E>{
         public MyList()
         public static void main(String[] args) {
              MyList<String> lista = new MyList<String>();
              lista.add("Bolivia");
              String x = lista.get(0);
              System.out.println(x);
    }

  • Custom collection cenderer

    Hi,
    How to deploy custom collection rendereror other flex UI) under Sap netwaever??
    Thanks for replies
    Regards
    Jakub Krecicki

    You just deploy in the ordinary way or put it under:
    C:\usr\sap\J2E\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\deployment\PCD
    and restart the j2ee service.
    Technical mapping has to be carried out in the user interface configuration of the KM configuration iView
    The mapping from a Java class to a component alias can be carried out at System Administration > System configuration > Knowledge Management > Content Management > User Interface (Show advanced options) > Mapping
    Regards,
    Rasmus

  • How do you invoke custom java classes???

    Could someone post a detailed method of invoking custom java classes that works including what files go where, settings and the way it is invoked etc.
    I have tried various ways from this forum and in the documentation without success. I am using IDM 8. I found these instructions regarding how you would do it if you were writing custom resource adaptors in the deployment tools guide:
    To install a resource adapter you’ve customized:
    1. Load the NewResourceAdapter.class file in the Identity Manager installation
    directory under
    idm/WEB-INF/classes/com/waveset/adapter/sample
    (You might have to create this directory.)
    2. Copy the .gif file to idm/applet/images.
    This .gif file is the image that displays next to the resource name on the List
    Resources page, and it should contain an image for your resource that is
    18x18 pixels and 72 DPI in size.
    3. Add the class to the resource.adapter property in
    config/waveset.properties.
    4. Stop and restart the application server. (For information about working with
    application servers, see Identity Manager Installation.)
    I tried the instructions here but placed my custom class in a folder entitled custom instead of /adapter/sample. Not sure about instruction 3 or whether it is relevent. Anyway nothings working.
    Edited by: masj78 on Nov 25, 2008 3:50 AM
    Edited by: masj78 on Nov 25, 2008 4:03 AM

    Hi,
    The way to add custom class is the same as you followed , put them in the WEB-INF/classes.
    To use the custom adapter ,
    Go To Resources - > Configure Types -> Add Custom Resource .
    Type in the fully qualified class name of the custom adapter you added.and Save.
    Now the new adapter you added should showup in the list of available adapters when you try to
    configure a new adapter.
    (Make sure that the prototype XML of your custom adapter is correct so that it displays the correct name / type for the adapter in the adapter list.
    Thanks,
    Balu

  • Custom Validator Class not found in Class Path

    I have developed a custom validator class for User Self Registration request. However, when OIM is unable to find the custom validator class and generates teh following error:
    [oracle.iam.platform.pluginframework] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: oiminternal] [ecid: 76584c4849877d50:-45bb4068:13c8294bd72:-8000-0000000000001236,0] [SRC_CLASS: oracle.iam.platform.pluginframework.InternalStore] [APP: oim#11.1.1.3.0] [SRC_METHOD: getPluginInstance] Not able to load class com.infotech.tra.CustomValidator.SelfRegisterUserCustomValidator from classpath
    At what path should the jar file be placed?
    UZ

    I am running the plugin registration utility but it generates the error mentioned below. I have verified the structure of my zip file and the structure of zip file is:
    -> SelfRegisterUserCustomValidator.zip
    ->Plugin.xml
    ->/lib/SelfRegisterUserCustomValidator.jar
    ->/resources/
    Following our contents of plugin.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <oimplugins>
    <plugins pluginpoint="oracle.iam.request.plugins.RequestDataValidator">
    <plugin pluginclass= "com.infotech.tra.CustomValidator.SelfRegisterUserCustomValidator" version="1.0.0" name="SelfRegisterUserCustomValidator">
    </plugin>
    </plugins>
    </oimplugins>
    Following is the error being generated:
    Enter name (complete file name with path) of the plugin file:
    /u01/oracle/Middleware/Oracle_IDM1/server/plugin_utility/SelfRegisterUserCustomValidator.zip
    [java] Java Result: 1
    [echo] Exception in thread "main" java.lang.NoClassDefFoundError: oracle/iam/platformservice/utils/PluginUtility
    [echo] Caused by: java.lang.ClassNotFoundException: oracle.iam.platformservice.utils.PluginUtility
    [echo] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    [echo] at java.security.AccessController.doPrivileged(Native Method)
    [echo] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    [echo] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    [echo] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    [echo] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    [echo] Could not find the main class: oracle.iam.platformservice.utils.PluginUtility. Program will exit.

  • How to call a custom action class present in one DC from a different DC

    Hi Experts,
    I have to implement one email functionality in my project.This functionality works fine if I use the Standard EmailAction class present in com.sap.isa.cic.customer package,but we need to change the email IDs in some cases so,we need to create a custom class.But if I create a custom Action class in Another DC(shext) and try to call this class from the config file present in the other DC(From where the Standard class was called),I am getting no Action Instance found for the declared Action(This Happens when the class is not present ).
    From the error I interpreted that the presence of the Custom Action class is not recognised by the The DC.
    Please confirm If my understanding is correct.
    I also tried adding a a new public part in shrext and tried adding the same in the used dc for the DC from where I am trying to call the class.But the activity fails and it gives me the error that the DCs are Broken.Do I need to build the DCs after adding a public part or a used DC?
    Please answer If anybody has faced the same issue or has a solution to it.
    Thanks
    Arpita Saxena
    Edited by: ArpitaSaxena on Jun 23, 2011 6:51 AM
    Edited by: ArpitaSaxena on Jun 23, 2011 7:01 AM

    Hi All,
    I was able to resolve this issue myself.
    I had to include the DC crm/isa/lwc and the DC mail in the used DCs of SHREXT .
    So,all the jars got included automatically and I was able to create a new custom class for the required functionality.
    Its working fine now.

  • Facing problem to Use a custom Java class in UCCX

    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin-top:0in;
    mso-para-margin-right:0in;
    mso-para-margin-bottom:10.0pt;
    mso-para-margin-left:0in;
    line-height:115%;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;}
    Hi,
    We are using Communication manager 7.0.1 and UCCX version 7.0.1(Cisco Unified CCX Premium).  We are trying to call a Custom Java class file from UCCX scripting. We have followed the steps mentioned in the guide (How-To: Using a custom Java class in UCCX 5.x (SOAP Example)). See below link.
    http://www.avholloway.com/vtools/ipcc/custom-java/soap/
    After completed all the steps we have got the variable type SimpleSOAP at script but we did not found it to object constructors or object attributes (plz find the attached screenshots). We will appreciate if you plz guide us to solve the issue.
    Thanks
    Fakhrul
    LEADS Corporation Ltd.

    Hello, Fakhrul.
    I'm sorry to see you were not able to find the information or help you were looking for here in the Contact Center community forum.
    You may be able to find more help through the Cisco Developer Network.
    Also, you might want to consider engaging Cisco Advanced Services via your account team to assist with UCCX custom scripting.
    Thank you, and good luck.
    -Paulo

  • How to implement custom Model Class in Oracle ADF?

    I am using Oracle ADF for one of my project and i am using Query component of ADF. For given tables the query component creates view objects and maps the relations. ADF uses its own custom model class for this component and it should understand the DB tables. But for my project i have no access to database. All i can do is pass a string or object/query to the existing (custom) Java class/object, and this model class formulates query and queries the database and returns the value to my Java class. I have to display these results using ADF to the front end. Is There a way to achieve this? Can i replace/override the existing Model class of ADF. If so how?
    Thanks in advance for your help.

    Hi, there:
    Best thing to do is to start with the default login.html page, and then modify it. The login screen is fairly complex and it's easy to just miss a JS function you need to call. To get to default page, you would need to do one deploy (to simulator or whatever), and then look for login.html page in the temporary Xcode or Android project generated from the deployment. It should be under the "deploy" directory in your JDev workspace.
    You can also see all the framework JS files and CSS files that way as well.
    We have had customers implementing custom login screen so we know it can work, but they all had to start with the default login screen and then modify it.
    Thanks,
    Joe Huang

  • Custom style classes

    hi all,
    Is it possible to create some custom style classes and assign them to styleClass property of some components?
    And if it possible, where to place those custom classes and how to use them?
    I've tried without success.
    Regards,
    Bassam

    So this begs the question... if I wanted to change the color of a font on a af:panelHeader for example, (inlineStyle="background-color:navy;color:white;") or I set it up as a class in my css e.g. (styleClass="ph" where the css class is ph{background-color:navy;color:white;}) why doesn't the af:panelHeader component render as one would expect... with a blue back ground and white text? I'm using JDeveloper11g.

  • Use of bpelx built-in methods like getVariableData in custom java classes

    Hi,
    how can I use bpelx built-in methods like getVariableData ...
    inside custom java classes embedded with BPEL project?
    I have large java code to embed with BPEL process
    and it will be very useful ....
    It is possible to access these methods like static methods of some class?
    import com.xxx.yyy.class;
    class.getVaribleData("inputVariable","payload","/ns1:mailMessage/ns1:content/ns1:multiPart");
    Regards
    Karel

    you can access them from <bpelx:exec> activity and you can pass these returned document to underlying java class.
    Re: getVariableData in Java Exec

  • Using Custom Java Class - WorkflowRegistry.xml

    I am using a custom java class in workflow. While executing I am getting errot -
    com.waveset.util.WavesetException: Class com.LdapGroupMod is not a WorkflowApplication
    It seems from documentation that I need to add this in workflowregistry.xml file. I added the same like given below -
    <WorkflowApplication name='Workflow Name'
    class='com.LdapGroupMod'>
    <Comments>Nothing Here</Comments>
    </WorkflowApplication>Even tried restaring the application server but I am still getting same error. Any idea what needs to be done here? or I am missing smething?

    Well the first thing would be to read the workflowRegistry.xml file. The header talks about internal and external applications and so on. The crucial part is that any application registered must implement the WorkflowApplication interface (which I guess your class dont do)
    I gave up. I am totally baffled by the documentation. I admit it.
    What I did was to create an Script action in an Activity where the script used Xpress to invoke my class. It seems to work.

  • Custom Java class called from RTF template generates error

    We are running a report in BI Publisher and the report calls a custom developed Java class that is used to bind PDFs together and sent the result to another application.
    On the RTF template we have some XSLT that reads the input XML and sets a variable which is then passed to the Java class. We are however getting the following error when the report is called simultaneously 2 or more times:
    XML-22044: (Error) Extension function error: Error invoking 'JavaClassName': 'java.lang.Error: Cannot interweave overlay template with pdf input, combined number of pages is odd!
    I read this as the real cause of the error is the Java code but I'm not 100% sure. Also I don't understand what the error message means.
    Could someone help out please?
    Many thanks

    Since our this requirement is in Quotes module, its not using OAF. It is using plain JSPs and java classes.
    What i was thinking is, create the Option values as flex fields, and write a custom java class to fetch these data from the flex tables and use it in the JSP.
    The main problem we are facing now is,
    "...we wrote a simple java class, which establishes database connection, executes a simple insert & select query to our custom table. compiled & placed the class file under our new pkg structure under $JAVA_TOP eg. oracle.apps.xxx.quot.tmpl , bounced the apache."
    But when we tried to import this class in the jsp (which is being customized), the app just throwed Internal Server Error and we couldnt find any info in the Log file.
    Couldnt guess, why is this simple thing failing. Any idea ?

  • Long Text of a custom message class on a pop up screen

    Hi All,
    I have a custom message class and i have few custom messages with short text and long texts.
    Then i have a ALV report output which displays the message class and message number and my requirement is when i do F1 on the message number i want the long text to be displayed on a popup screen
    Can anyone give me an idea as how to approach this
    Thanks in advance

    hi,
    try the below code.
    DATA: HELPINFO LIKE HELP_INFO.
    DATA: LONGTEXT LIKE TLINE OCCURS 1 WITH HEADER LINE.
    DATA: EXCLUDEFUN LIKE SY-UCOMM OCCURS 1 WITH HEADER LINE.
          longtext-tdline = 'Sales Order test help'.
          append longtext.
    CALL FUNCTION 'HELP_DOCULINES_SHOW'
      EXPORTING
       CUCOL                   = 10
       CUROW                   = 3
        HELP_INFOS              = HELPINFO
       LINENR                  = 1
      TABLES
        EXCLUDEFUN              = EXCLUDEFUN
        HELPLINES               = LONGTEXT

  • Custom object class attributes are not provisioning in oID thru OIM

    Hi,
    I have connected OIM with oID user provisioning is also taking place. I have made one custom structure class with some attributes in OID.
    In form designer,in OID usr form i have made feild UD_OID_USR_Custom
    In OId .config lookup i have mentioned that custom class as well as attributes of class[in code Custom in decode name of attribute at target]
    In process form recon mapping of OID i mapped this feild name .
    Also in resource object recon mapping also i mentioned this attribute.
    But while creating user till process form value of attribute is populating and not provisiong that attribute in OID.
    Please tell me where i went wrong or exact steps of mapping in form designer,Process definition,Lookup.OID.configuration,Resource objects.
    Thanks

    process form recon mapping of OID i mapped this feild nameHave you made attribute entry in Provisioning Lookup AttrName.Prov.Map.OID ?
    Have you followed each step :
    http://download.oracle.com/docs/cd/E11223_01/doc.904/e10436/extnd_func.htm#CACICHDH

Maybe you are looking for

  • Envy Touchsmart 14k-120US

     How can you connect Envy Touchsmart 14k-120US to LG LED TV using an HDMI cable given that the laptop screen doesnt work? The customer service guy confidently told me 'Sir please try Fn+F4' but that doesnt work. Any help would be appreciated.

  • More about iMac's death

    Hi friends. I've surfed the forum, but find nothing. This summer my iMac said a few beeps and dead suddenly. But it is not exactly death, it is a sopor. The symptoms (when I'm turning iMac on): - the green LED is on ;0) - hard drive (or cd drive) is

  • Need help in loading Data file

    I am new to HFM. I am trying one example and try to load data file. But i am getting error saying period July is invalid. Do i have to follow certain steps before loading data file. Sample file !Column_Order = Scenario, Year, Period, View, Entity, Va

  • Question about "SetWaitCursor(1);"

    Hi Currently I study the program below and have some question needed advice: A) What is the reason  to need "SetWaitCursor(1);" on the below code? B) Does it cause a run time delay on the whole program?  C) can we remove " SetWaitCursor(1);" from the

  • Include Service inside application bundle?

    I read a brief note in the Dev docs that you can include Services inside your application bundle to distribute them with your app. Is this possible with the newer Automator-created Services?  Where should they be stored in the bundle? When I peek ins