extending a classes from another package?

E

elh.maayan

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,
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top