01: /*
02: * Copyright 2002-2008 Andy Clark
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.cyberneko.html;
18:
19: import org.apache.xerces.xni.parser.XMLComponent;
20:
21: /**
22: * This interface extends the XNI <code>XMLComponent</code> interface
23: * to add methods that allow the preferred default values for features
24: * and properties to be queried.
25: *
26: * @author Andy Clark
27: *
28: * @version $Id: HTMLComponent.java,v 1.4 2005/02/14 03:56:54 andyc Exp $
29: */
30: public interface HTMLComponent extends XMLComponent {
31:
32: //
33: // HTMLComponent methods
34: //
35:
36: /**
37: * Returns the default state for a feature, or null if this
38: * component does not want to report a default value for this
39: * feature.
40: */
41: public Boolean getFeatureDefault(String featureId);
42:
43: /**
44: * Returns the default state for a property, or null if this
45: * component does not want to report a default value for this
46: * property.
47: */
48: public Object getPropertyDefault(String propertyId);
49:
50: } // interface HTMLComponent
|