extending a classes from another package?

Discussion in 'Java' started by elh.maayan@gmail.com, May 2, 2007.

  1. Guest

    hi..

    i'm buidling a small framwork that wraps around xml Element objects
    (in xom) i have these packages:
    com.product.xml
    AbstractElement
    AbstractValueContainer
    VallueException
    com.product.xmlValues
    StringValue
    ListValues
    NumericValues

    each of the values extends AbstractElement

    now some of these values classes should recieve other Value Classes
    in their setters, but internally extract their internal XmlElement and
    append it their own. my problem ,is that on one hand i wanna expose
    the getInternalElement method only the value classes, but on the other
    hand i don't want to make it public. so it's either protected or
    package level,
    , May 2, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Anthony Williams
    Replies:
    8
    Views:
    552
    Anthony Williams
    Feb 24, 2004
  2. Carfield Yim
    Replies:
    1
    Views:
    1,397
    Andrew Thompson
    May 31, 2004
  3. Ding
    Replies:
    1
    Views:
    509
    Andrew Thompson
    Jul 1, 2004
  4. Christian Bongiorno
    Replies:
    5
    Views:
    531
    Chris Uppal
    Aug 30, 2004
  5. Carl Banks
    Replies:
    2
    Views:
    289
    Carl Banks
    Mar 11, 2009
Loading...

Share This Page