26 import java.util.Map;
27 import java.util.Set;
28
29 import com.sun.org.apache.xerces.internal.impl.Constants;
30 import com.sun.org.apache.xerces.internal.xni.parser.XMLComponentManager;
31 import com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException;
32
33 /**
34 * This class implements the basic operations for managing parser
35 * configuration features and properties. This utility class can
36 * be used as a base class for parser configurations or separately
37 * to encapsulate a number of parser settings as a component
38 * manager.
39 * <p>
40 * This class can be constructed with a "parent" settings object
41 * (in the form of an <code>XMLComponentManager</code>) that allows
42 * parser configuration settings to be "chained" together.
43 *
44 * @author Andy Clark, IBM
45 *
46 * @version $Id: ParserConfigurationSettings.java,v 1.6 2010-11-01 04:40:14 joehw Exp $
47 */
48 public class ParserConfigurationSettings
49 implements XMLComponentManager {
50
51 protected static final String PARSER_SETTINGS =
52 Constants.XERCES_FEATURE_PREFIX + Constants.PARSER_SETTINGS;
53
54 //
55 // Data
56 //
57
58 // data
59
60 /** Recognized properties. */
61 protected Set<String> fRecognizedProperties;
62
63 /** Properties. */
64 protected Map<String, Object> fProperties;
65
66 /** Recognized features. */
|
26 import java.util.Map;
27 import java.util.Set;
28
29 import com.sun.org.apache.xerces.internal.impl.Constants;
30 import com.sun.org.apache.xerces.internal.xni.parser.XMLComponentManager;
31 import com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException;
32
33 /**
34 * This class implements the basic operations for managing parser
35 * configuration features and properties. This utility class can
36 * be used as a base class for parser configurations or separately
37 * to encapsulate a number of parser settings as a component
38 * manager.
39 * <p>
40 * This class can be constructed with a "parent" settings object
41 * (in the form of an <code>XMLComponentManager</code>) that allows
42 * parser configuration settings to be "chained" together.
43 *
44 * @author Andy Clark, IBM
45 *
46 */
47 public class ParserConfigurationSettings
48 implements XMLComponentManager {
49
50 protected static final String PARSER_SETTINGS =
51 Constants.XERCES_FEATURE_PREFIX + Constants.PARSER_SETTINGS;
52
53 //
54 // Data
55 //
56
57 // data
58
59 /** Recognized properties. */
60 protected Set<String> fRecognizedProperties;
61
62 /** Properties. */
63 protected Map<String, Object> fProperties;
64
65 /** Recognized features. */
|