Can not generate XML Document Template

I have the below class
public class MyHome implements Serializable {
ArrayList rooms;
//getter/setter methods here
When I right click mouse and select "Generate XML Template Document", I got the error
Some fields could not be generated to the XML template
c:\e200\dv900\java\classes\java\util\ArrayList.class (The system cannot find the path specified)
Do you have any idea?

Not with the info given...
Which jdev version?
Where do I find this menu, as I don't see it?
Timo

Similar Messages

  • How to validate generated XML-Document in Memory by XML-Schema?

    Hi all!
    I have the following problem:
    I am generating a Document using the DOM delivered with Xerces 2.6.2.
    Before I'll send the generated xml-document through network to another system I have to check with my xml-schema if the document is correct.
    In the DOM-FAQ I found an "example" trying to explain how it should work. But with this example the problems begin.
    I am creating my document with this method:
         public void createDocument() {
              myDOM = DOMImplementationImpl.getDOMImplementation();
              doc = myDOM.createDocument("", "documentData", null);
              root = doc.getDocumentElement();
              root.setAttribute(
                   "xmlns:xsi",
                   "http://www.w3.org/2001/XMLSchema-instance");
              //          root.setAttribute("xsi:noNamespaceSchemaLocation", "myScheme.xsd");
              domConfig = ((DocumentImpl) doc).getDomConfig();
              domConfig.setParameter(
                   "schema-location",
                   "file:///d:/workspace/XMLProject/WebContent/WEB-INF/myScheme.xsd");
              domConfig.setParameter("error-handler", new EHandler());
              domConfig.setParameter("validate", Boolean.TRUE);
         }In the line getting the domConfig, it is getting differeing to the example: The example is like this:
    import org.w3c.dom.Document;
    import org.w3c.dom.DOMConfiguration;
    import org.w3c.dom.ls.LSParser;
    Document document = builder.parseURI("data/personal-schema.xml");
    DOMConfiguration config = document.getConfig();
    config.setParameter("error-handler",new MyErrorHandler());
    config.setParameter("validate", Boolean.TRUE);
    document.normalizeDocument();They get the DOM-Configuration from the document-Object, but my document-Object has no "getConfig()" and only after type-casting I get a getDomConfig()-Method to get the configuration.
    Then I fill my document and call                
    ((DocumentImpl) doc).normalizeDocument();When I run my Application I get the following error:
    org.w3c.dom.DOMException: FEATURE_NOT_SUPPORTED: The parameter schema-location is recognized but the requested value cannot be set.
         at org.apache.xerces.dom.DOMConfigurationImpl.setParameter(Unknown Source)
         at xmlProject.createDocument(Convert.java:63)
         at xmlProject.Convert.main(Convert.java:154)I tried several ways to get the validation without success.
    The next question is how I should refer to my xml-schema (which path) and where to place it relative to my jar I will generate, because I will have no webserver I could place it on.
    Has anyone any experience with validating a document created and not placed on disc?
    I have also another question to SAX: I read, that it is reading a document without saving it in the memory. I think this means that if I am validating it by SAX it will be read once and for parsing it will be read a second time. If I would transfer the document over an tcp-connection, I only have the document once in my inputstream and after validation it would be consumed I think. But what can I parse then? Or did I missed a detail with the function of the SAX?
    Thank you for your help!
    Yours
    Christian

    static final String schemaSource = argv[0];
    static final String JAXP_SCHEMA_SOURCE =
    "http://java.sun.com/xml/jaxp/properties/schemaSource";
    DocumentBuilderFactory factory =
    DocumentBuilderFactory.newInstance();
    factory.setAttribute(JAXP_SCHEMA_SOURCE,
    new File(schemaSource));

  • Generate XML document

    Hi,
    My problem is about generating XML document. I'd like to be able to generate automaticaly (like what we can get at this kind of URL http://xdbserver:8080/oradb/USER/table_name) XML documents for any relational tables, I want the document being schema based and I want to store them in XDB in the repository.
    I do not really matter at the time the way the xml is generated (I just do not want that it takes hours). Is there a way to do that with PL/SQL package or with a java classes?
    Thanks in advance.
    Vlad

    1)I'm using this PL/SQL proc to create XML :
    (table_name in VARCHAR2)as --generation d'un fichier xml basé sur un schéma pour la table dont le nom est passé en paramètre
    qryCtx DBMS_XMLGEN.ctxHandle;
    result XMLType;
    begin
    qryCtx := dbms_xmlgen.newContext('SELECT * from VLAD.' || table_name);
    -- set the row header to be EMPLOYEE
    DBMS_XMLGEN.setRowTag(qryCtx, table_name);
    -- now get the result
    result := DBMS_XMLGEN.getXMLType(qryCtx,2); --2 for XMLSchema (1 for a DTD)
    --insertion de result dans la table tempo
    insert into tempo values(result);
    --close context
    DBMS_XMLGEN.closeContext(qryCtx);
    exception
    when others then
    dbms_output.put_line(TO_CHAR(sqlerrm));
    end;
    I saw in the doc that DBMS_XMLGEN.getXMLType(qryCtx,2) with the "2" was for schema but what does it do exactly, does it generate a schema against the table_name?
    2)I'd like to put the result which is XMLType in a XML file in the server, is there a way to do it with UTL FILE?
    Vlad

  • How can i generate xml like this?

    Hi all,
    How can i generate xml like this & i need to send it to via HTTP :
    <mms>
                 <subject>message subject</subject>
                 <url_image>http://image_url</url_image>
                 <url_sound>http://sound_url</url_sound>
                 <url_video>http://video_url</url_video>
                 <text>message text</text>
                 <msisdn_sender>6281XYYYYYY</msisdn_sender>
                 <msisdn_receipient>6281XYYYYYY</msisdn_receipient>
                 <sid>to be define later</sid>
                 <trx_id>Unique number</trx_id>
                 <trx_date>yyyyMMddHHmmss</trx_date>
                 <contentid>see note</contentid>
    </mms>& how can i get the value of the sid (for example)?
    I hav tried to generate that xml by using StringBuffer & append, but it's not what i mean...
    Anyone can help me?

    Ok...i got it. But i still hav some problems.
    This is the sample code that i used :
    public class XMLCreator {
         //No generics
         List myData;
         Document dom;
            Element rootEle, mmsEle, mmsE;
            StringWriter stringOut;
            mms mms;
         public XMLCreator(String subject, String image, String sound,
                    String video, String text, String sender, String recipient,
                    int id, String date, String contentid) {
              mms = new mms(subject, image, sound, video, text, sender,
                            recipient, id, contentid, date);
                    createDocument();
         public void run(){
              createDOMTree();
              print();
         private void createDocument() {
              //get an instance of factory
              DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
              try {
              //get an instance of builder
              DocumentBuilder db = dbf.newDocumentBuilder();
              //create an instance of DOM
              dom = db.newDocument();
              }catch(ParserConfigurationException pce) {
                   //dump it
                   System.out.println("Error while trying to instantiate DocumentBuilder " + pce);
         private void createDOMTree(){
              //create the root element <Mms>
              rootEle = dom.createElement("mms");
              dom.appendChild(rootEle);
              createMmsElement(mms);
         private Element createMmsElement(mms b){
              Element subjectEle = dom.createElement("subject");
              Text subjectText = dom.createTextNode(b.getSubject());
              subjectEle.appendChild(subjectText);
              rootEle.appendChild(subjectEle);
              //create url_image element and author text node and attach it to mmsElement
              Element imageEle = dom.createElement("url_image");
              Text imageText = dom.createTextNode(b.getUrl_image());
              imageEle.appendChild(imageText);
              rootEle.appendChild(imageEle);
              // & etc....
              return rootEle;
          * This method uses Xerces specific classes
          * prints the XML document to file.
         private void print(){
              try
                   //print
                   OutputFormat format = new OutputFormat(dom);
                   format.setIndenting(true);
                            stringOut = new StringWriter();
                   //to generate output to console use this serializer
                   XMLSerializer serializer = new XMLSerializer(stringOut, format);
                   //to generate a file output use fileoutputstream instead of system.out
                   //XMLSerializer serializer = new XMLSerializer(
                   //new FileOutputStream(new File("mms.xml")), format);
                   serializer.serialize(dom);
              } catch(IOException ie) {
                  ie.printStackTrace();
            public String getStringOut() {
                return stringOut.toString();
    }when i tried to show the stringOut.toString() in my jsp, it's only showed string like this :
    The Lords Of The Ring http://localhost:8084/movie/lotr.3gp 6281321488448 6281321488448 123 0 20070220114851 LOTR.
    1. Why this is happen?i want to generate xml which its format is like above.
    2. How can i send this xml (put in msg parameter) using jsp (via web) without creating the mms.xml?
    3. if i want to set the msg parameter equal to mms.xml - means that msg = mms.xml, what is the data type for msg? is it an object or anything else?
    Thx b4 in advance...

  • How can I access xml document from javascript whithin a JSP page

    how can I access xml document from javascript whithin a JSP page?
    I have a JSP that receives an XML document from a JavaBean, so I can access it within the entire JSP, but I need to access it from the javascript inside the JSP... and I have no idea how i can do this.
    Thanks in advance!

    The solution would only work on MS IE browsers, as other browsers do not support an XML DOM.
    It can be done, but you would be stuck with using the Microsoft broswer. If that is acceptable, I have some example code, and a book recommendation.

  • Question about generate xml document

    Hi, I'm new to xml can anyone introduce me some tools to generate xml documents? or some faster way to generate xml documents.

    a good site for the info www.xml.com or www.oasis.org
    xml-spy is a good tool

  • AQ Adapter error: Could not create XML document carrying AQ Headers

    I'm having problem with the AQ adapter (ADT) sample that comes with the SOA 10g install.
    I am running 10.1.3.4 on XP, using Oracle XE.
    I can use the sample sql script to enque and deque. However, when I deploy the sample ADT (BPEL project), I see errors in the opmn log. The BPEL instance is not even created.
    I see another post with similar question, Re: Debugging BPEL when using Oracle AQ but no answer.
    Any help is greatly appreciated. Thx!
    ----------------- err log --------------
    <2009-07-15 00:04:31,656> <INFO> <collaxa> <ServerManager::loadProcesses> Done loading processes for all domains
    <2009-07-15 00:04:32,031> <INFO> <default.collaxa.cube.activation> <AQ Adapter::Inbound> MessageReader_ctor: Initialized MessageReader for queue CUSTOMER_IN_QUEUE, consumer = null)
    <2009-07-15 00:12:15,984> <ERROR> <default.collaxa.cube.activation> <AQ Adapter::Inbound> MessageReader_ReadMessage: Could not create XML document carrying AQ Headers: [Ljava.lang.StackTraceElement;@e7af3a
    <2009-07-15 00:12:15,984> <ERROR> <default.collaxa.cube.activation> <AQ Adapter::Inbound>
    java.lang.Exception: java.lang.NullPointerException
         at oracle.tip.adapter.aq.database.MessageReader.readMessage(MessageReader.java:750)
         at oracle.tip.adapter.aq.inbound.AQActivationSpecDequeuer.run(AQActivationSpecDequeuer.java:261)
         at oracle.tip.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
         at oracle.tip.adapter.fw.common.ThreadPool.run(ThreadPool.java:280)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.NullPointerException
         at oracle.oc4j.sql.proxy.StatementBCELProxy.oc4j_releaseToCache(StatementBCELProxy.java:67)
         at oracle.oc4j.sql.proxy.StatementBCELProxy.oc4j_releaseTarget(StatementBCELProxy.java:79)
         at oracle.oc4j.sql.proxy.SQLBCELProxy.oc4j_close(SQLBCELProxy.java:95)
         at oracle.oc4j.sql.proxy.StatementBCELProxy.close(StatementBCELProxy.java:92)
         at oracle.AQ.AQOracleQueue.destroyStmt(AQOracleQueue.java:3099)
         at oracle.AQ.AQOracleQueue.dequeue(AQOracleQueue.java:1793)
         at oracle.AQ.AQOracleQueue.dequeue(AQOracleQueue.java:1307)
         at oracle.tip.adapter.aq.database.MessageReader.readMessage(MessageReader.java:485)
         ... 4 more
    <2009-07-15 00:12:16,203> <FATAL> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Uncaught exception oracle.as.j2ee.transaction.tpc.ProtocolErrorWithNotification in JCA-work-instance:AQ Adapter-0 - cause: Branch [oracle.oc4j.sql.xa.EmulatedXAResource@14d9865, Xid( Global Id 34.5f.1e.a8.ff.ff.ff.ff.cd.b9.38.7d.22.01.00.00.7a.02.00.00.00.00.00.00, Format Id 1330790740, Branch Id 7c.e5.55.76.00.00.00.00.00.00.00.00.00.00.00.01), oracle.oc4j.sql.xa.EmulatedXAResource@14d9865, state={PREPARED}, exception error code=] in transaction Global Transaction Xid( Global Id 34.5f.1e.a8.ff.ff.ff.ff.cd.b9.38.7d.22.01.00.00.7a.02.00.00.00.00.00.00, Format Id 1330790740), type=orabpel, state=COMMITTING, time in completion or recovering=0)
    ....

    thanks for the reply. I did look into that post, and couldn't found where to set that option either.
    However, my PC was rebooted a few times today (I didn't change anything with BPEL), and I just re-ran the test now, that problem disappeared! It is working fine now.

  • Flash can not parse this document.  What's up with this?

    I've never seen this one before.  I'm using CS5
    On windows 7
    I'm developing a component.  I have it in the Components panel.
    But I update it alot, and copy the shim to the prototype file quite often.
    Every now and then I get the error that the file cannot be opened.
    In the output panel is says Flash can not parse this document.
    I have lost access to one of my files.
    If I save as CS4 it always loads.
    So now I'm saving in both formats.
    I don't understand what is happening.
    Is this a bug?  I've checked for updates.
    I have the latest build for CS5 Flash Prof

    Did you use any special character like & ^ $ etc... in any of the components field? Flash CS4 was more lenient with special character compare to Flash CS5. One way to fix CS5 files is to change .fla extension to .zip. Unzip the file, go through the DOMDocument.xml file or xml file inside LIBRARY folder and remove the special character. After that double click the fla file you see inside the zip folder and Resave this file in Flash.
    Quynh
    Flash Pro, QE

  • Content of generated XML document to variable - Oracle ...

    Hello everybody,
    here is sample code which generates XML document:
    * This is a sample application program which is built using the
    * classes generated by the XML DTD Class Generator. The External DTD
    * File "Widl.dtd" or the XML document which "Widl.xml" which is compliant
    * to Widl.dtd is used to generate the classes. The application
    * SampleMain.java is used to generate the classes which takes the DTD
    * or XML document as input parameters to generate classes.
    import oracle.xml.classgen.CGNode;
    import oracle.xml.classgen.CGDocument;
    import oracle.xml.classgen.DTDClassGenerator;
    import oracle.xml.classgen.InvalidContentException;
    import oracle.xml.parser.v2.DTD;
    public class TestWidl
    public static void main (String args[])
    try
    WIDL w1 = new WIDL();
    DTD dtd = w1.getDTDNode();
    w1.setNAME("WIDL1");
    w1.setVERSION(WIDL.VERSION_1_0);
    SERVICE s1 = new SERVICE("Service1", "Service_URL");
    s1.setINPUT("File");
    s1.setOUTPUT("File");
    BINDING b1 = new BINDING("Binding1");
    b1.setTYPE(BINDING.TYPE_INPUT);
    BINDING b2 = new BINDING("Binding2");
    b2.setTYPE(BINDING.TYPE_OUTPUT);
    VARIABLE v1 = new VARIABLE("Variable1", VARIABLE.NULLOK_FALSE);
    v1.setTYPE(VARIABLE.TYPE_STRING);
    v1.setUSAGE(VARIABLE.USAGE_INTERNAL);
    v1.setVALUE("value");
    VARIABLE v2 = new VARIABLE("Variable2", VARIABLE.NULLOK_TRUE);
    v2.setTYPE(VARIABLE.TYPE_STRING1);
    v2.setUSAGE(VARIABLE.USAGE_HEADER);
    VARIABLE v3 = new VARIABLE("Variable3", VARIABLE.NULLOK_FALSE);
    v3.setTYPE(VARIABLE.TYPE_STRING2);
    v3.setUSAGE(VARIABLE.USAGE_FUNCTION);
    v3.setMASK("mask");
    CONDITION c1 = new CONDITION("CRef1", "CMatch1");
    c1.setSERVICE("Service1");
    c1.setTYPE(CONDITION.TYPE_SUCCESS);
    CONDITION c2 = new CONDITION("CRef2", "CMatch2");
    c2.setTYPE(CONDITION.TYPE_RETRY);
    CONDITION c3 = new CONDITION("CRef3", "CMatch3");
    c3.setSERVICE("Service3");
    c3.setTYPE(CONDITION.TYPE_FAILURE);
    REGION r1 = new REGION("Region1", "Start", "End");
    b1.addNode(r1);
    b1.addNode(v1);
    b1.addNode(c1);
    b1.addNode(v2);
    b2.addNode(c2);
    b2.addNode(v3);
    w1.addNode(s1);
    w1.addNode(b1);
    w1.addNode(b2);
    w1.validateContent();
    w1.print(System.out);
    catch (Exception e)
    System.out.println(e.toString());
    e.printStackTrace();
    I see the method w1.print(System.out) which shows content of xml to console. But how can I store xml to some String variable? Thank you in advance.
    Jan :)

    If there is a version of the "print" method that can write to a Writer, then:StringWriter sw = new StringWriter();
    w1.print(sw);
    String result = sw.toString();But if you can only write to an OutputStream then:ByteArrayOutputStream baos = new ByteArrayOutputStream();
    w1.print(baos);
    String result = new String(baos.toByteArray(), encoding);where "encoding" is a string containing the name of the encoding used to write the XML. Possibly you can control that via "w1.setENCODING(something)" or some other way.

  • Flash can not parse this document. - Tried everything: Searching online, Calling Adobe, Online Help

    I have tried everything in fixing this problem. I have searched online with no help. And Google does not fix everything.
    I have tried calling the phone number on the help site numerous times only to be uselessly helped once. I was on hold for a long time with each one only to be unsuccessful in fixing my problem.
    I tried submitting the form on the page when you sign in and 3 times so far I was told to go to this extremely unhelpful devnet, which was all the phone support told me to do which was no help, and they closed all of the support requests.
    Does anyone know how to fix these errors:
    Flash can not parse this document.
    An error occurred opening file '.fla'
    Failed to open document..fla.
    I have converted it to a zip and went through all the files and did not see any error. The only one I did was MobileSettings.xml, which is blank and a new CS5 made file is blank and gives the error as well.
    Does anyone know how to fix this?

    you may have a corrupt fla.  try creating a new directory that has no subdirectories.  move that fla to the new directory.  try and open the fla from the new directory.  if it fails, you have a corrupt fla and, in that situation, i believe the best you can do is to take your last working swf and decompile it to create a working fla.

  • Reproducible Error: Flash can not parse this document.

    I have a reproducible error: I am being forced to fix corrupted flash files that give the "Flash can not parse this document" error. But shortly after I fix the problem, the files are re-corrupted.
    Here is how the problem is reproduced: when I update a custom component that is used in other symbols in the library. When a new version of a custom component symbol added to the library, replacing an older version, the symbols that contained the old symbol are corrupted in the XML. This is tedious and time consuming to work around.
    Is there a way to avoid the problem?
    Has this BUG been reported in this context before?
    How do I report this problem?
    Kevin

    Adobe - Wishlist & Bug Report
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • [CS5] Flash can not parse this document..

    I sat with my flash document open for 12 hours straight actually.. and when I closed it and opened it again I got "Flash can not parse this document".
    So I googled for a solution, found that I could rename the .fla to .zip and unzip it and after 2 hours I found the XML-file that caused the problem, and I even commented out the lines in that XML-file, so I could re-zip it and rename it to .fla again and open it.
    Anyway this happened again and again.. and I got frustrated.
    I think I found out why this happened to me, I copied text from Photoshop into Flash CS5, and this made the document unable to open again after I closed it. It appears that the text I copied contained a "line break" or something, so I copied the text to notepad removed that character and then into flash, and this seems to have worked for.
    Anyone else had this problem?

    Hi,
    We had another user report about this issue where an ETX character in a TLF TextField was causing Flash to corrupt the FLA on save.  I will contact you privately to see if I can get your FLA file to investigate if it's the same issue.
    Thanks,
    Nivesh

  • Constant Problem: "Flash can not parse this document"

    Hi all,
    I have been having an issue with Flash cs5 over the last two weeks. I've tried the few "fixes" that are offered on some of the forums. Zipping the file up and taking apart the xml files, with no helpful results.
    Anyone have any ideas or solutions?
    I am losing lots of work at random times on many different files.
    I uusally get only this error message:
    Flash can not parse this document.
    But today I got this longer one:
    Flash can not parse this document.
    An error occurred opening file '/Users/brad/Desktop/mant episode 3-2c backup.fla'
    Failed to open document./Users/brad/Desktop/mant episode 3-2c backup.fla.
    The following JavaScript error(s) occurred:
    In file "/Users/brad/Library/Application Support/Adobe/Flash CS5/en_US/Configuration/Javascript/ObjectFindAndSelect.jsfl":
    Cannot find file /Users/brad/Desktop/mant episode 3-2c backup.fla.
    Flash can not parse this document.
    An error occurred opening file '/Users/brad/Desktop/mant episode 3-2c backup.fla'
    Failed to open document./Users/brad/Desktop/mant episode 3-2c backup.fla.
    The following JavaScript error(s) occurred:
    In file "/Users/brad/Library/Application Support/Adobe/Flash CS5/en_US/Configuration/Javascript/ObjectFindAndSelect.jsfl":
    Cannot find file /Users/brad/Desktop/mant episode 3-2c backup.fla.

    You may have already seen this, but there was another forum posting of a similar issue here:
    http://forums.adobe.com/message/2816038#2816038

  • Flash CS5 error: Flash can not parse this document

    The amount of times Flash CS has crashed on me and ive lost documents is unbelievable now. Yesterday i closed down Flash CS5 normally (no crash or anything) and today i load my file back up and it says in the output "Flash can not parse this document" with an error saying an error occurred opening file bla bla. I had a backup of the file too ALSO that does not work with the same problem. The last time this happened to me i was told it was because i had a document on the network so ive been working locally on my drive ever since and this problem arises again.
    The project i was working on was important and i want a solution to this problem please.

    Hi guswebb,
    We are currently looking into these issues. Can you please send the file with the bad UIScrollBar.xml to me at [email protected]? Please zip your file and change .zip extension to .zzz before attaching to email.
    Thanks,
    Quynh
    Flash Pro, QE

  • I'm getting a lot of 'Photoshop can not print this document' errors

    Has anyone experienced / solved this problem? the error just reads 'Photoshop can not print this document.' with no further information. Flattening the document resolves the problem, but I would like to think that there is a better solution.
    Thanks

    BOILERPLATE TEXT:
    If you give complete and detailed information about your setup and the issue at hand, such as your platform (Mac or Win), exact versions of your OS, of Photoshop and of Bridge, machine specs, such as total installed RAM, scratch file HDs, video card specs, what troubleshooting steps you have taken so far, what error message(s) you receive, what type and size of files you're working with; if having issues opening raw files also the exact camera make and model that generated them, etc., someone may be able to help you.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

Maybe you are looking for

  • Need a little help with an animated JButton.

    I have a nice little button that on mouse entry runs a morf animation from one picture to another then stops. On leaving the button it runs the animation in reverse. The animation is done with two GIF images loaded as Icons using ImageIcon. Now this

  • Image Manipulation

    A client came to me today, not knowing any form of coding, he asked me if for his front page, he could place the images anywhere he wanted in the article he submits to the front page, as in being able to click on an image and drag it to his liking wi

  • How to restrict number of characters for an input field

    Hi All, I have an input field. The max number of characters for this input field is 10. when a user enter more then 10 characters. it should prompt for an error or the input field should not allow to accpet the 11 character. how we do this in VC. nee

  • Eracom CSA 8000 and SUN PKCS#11 API

    I'm trying to use Eracom as a cryptographic accelerator for using with JSSE in establishment of SSL connections. I'm using its software version that I haven't installed the hardware but they both have the same functionalities and both uses PKCS11 as

  • Costing - in SAP PS

    Dear SAP PS Experts, We have a requirement that we need to do cost calculation based on certain rules. i.e. There are  equipments and each equipment has certan length and type. Each equipment incurrs cost based on length and type. e.g. one equipment