comments
This commit is contained in:
parent
45e94fc6bc
commit
1385976b18
@ -11,7 +11,7 @@ import org.xml.sax.SAXException;
|
|||||||
import org.xml.sax.helpers.DefaultHandler;
|
import org.xml.sax.helpers.DefaultHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The actual handler class. Contains the necessary methods for parsing the SAX source.
|
* The actual SAX handler class. Contains the necessary methods for parsing the SAX source.
|
||||||
* Delegates the actual content parsing to {@link ElementHandler} objects.
|
* Delegates the actual content parsing to {@link ElementHandler} objects.
|
||||||
*/
|
*/
|
||||||
class DelegatorHandler extends DefaultHandler {
|
class DelegatorHandler extends DefaultHandler {
|
||||||
|
@ -8,16 +8,18 @@ import net.sf.openrocket.aerodynamics.WarningSet;
|
|||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An element handler that does not accept any content in the element except whitespace
|
* A singleton element handler that does not accept any content in the element
|
||||||
* text. All subelements are ignored and an error is produced of them. Any attributes
|
* except whitespace text. All subelements are ignored and a warning is produced
|
||||||
* are ignored.
|
* of them. It ignores any attributes.
|
||||||
|
* <p>
|
||||||
|
* This class can be used for elements that have no content but contain attributes.
|
||||||
*
|
*
|
||||||
* @author Sampo Niskanen <sampo.niskanen@iki.fi>
|
* @author Sampo Niskanen <sampo.niskanen@iki.fi>
|
||||||
*/
|
*/
|
||||||
public class NullElementHandler extends ElementHandler {
|
public class NullElementHandler extends ElementHandler {
|
||||||
public static final NullElementHandler INSTANCE = new NullElementHandler();
|
public static final NullElementHandler INSTANCE = new NullElementHandler();
|
||||||
|
|
||||||
private static final HashMap<String, String> EMPTY_MAP = new HashMap<String,String>();
|
private static final HashMap<String, String> EMPTY_MAP = new HashMap<String,String>();
|
||||||
|
|
||||||
private NullElementHandler() {
|
private NullElementHandler() {
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user