Dear Monks,

I am in the design phase of an O.O. project and have had the idea of a sketchy concept called 'filtering'. I have done an internet search and found a couple of publications that detail 'filtering' as an object concept. Basically, filter objects consist of conditions that have to be met by the object bundle being filtered. Each filter 'cassette' (my term) specifies conditions relating to one of the objects of the 'bundle' (bundle:- I think that this is a commonly used OO word) being passed through the filter system. I am thinking of using an XML setup to hold the cassettes and the details relating to these cassettes.

I suspect that Java is the language that would most suite this. This partly because my reading of O.O. programming has centred on Java. And I don't really understand the conceptual differences between object orientation in Java and Perl. What I do understand is that Java uses interfaces whereas Perl does not. And Java regards more things as objects than Perl. And Perl does not have constructor classes (what Perl has instead of this I am not sure). That's about all.

My questions relating to this are: 1. Are there any other terms for 'filtering'? 2. Does anyone have examples of code relating to filtering? 3. Does anyone have examples of XML schema for storing Java or Perl objects? 3. What is the best information source detailing differences between Perl and Java with regard to object orientation?


In reply to Filter objects? by matth

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.