Logo Search packages:      
Sourcecode: jclic version File versions  Download package

org::jdom::Element::Element (  )  [inline, protected]

This protected constructor is provided in order to support an Element subclass that wants full control over variable initialization. It intentionally leaves all instance variables null, allowing a lightweight subclass implementation. The subclass is responsible for ensuring all the get and set methods on Element behave as documented.

When implementing an Element subclass which doesn't require full control over variable initialization, be aware that simply calling super() (or letting the compiler add the implicit super() call) will not initialize the instance variables which will cause many of the methods to throw a NullPointerException. Therefore, the constructor for these subclasses should call one of the public constructors so variable initialization is handled automatically.

Definition at line 128 of file Element.java.

{ }

Generated by  Doxygen 1.6.0   Back to index