本文整理汇总了Java中com.sun.org.apache.xerces.internal.xni.parser.XMLComponent类的典型用法代码示例。如果您正苦于以下问题:Java XMLComponent类的具体用法?Java XMLComponent怎么用?Java XMLComponent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XMLComponent类属于com.sun.org.apache.xerces.internal.xni.parser包,在下文中一共展示了XMLComponent类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: addComponent
import com.sun.org.apache.xerces.internal.xni.parser.XMLComponent; //导入依赖的package包/类
protected void addComponent(XMLComponent component) {
// don't add a component more than once
if (fComponents.contains(component)) {
return;
}
fComponents.add(component);
// register component's recognized features
String[] recognizedFeatures = component.getRecognizedFeatures();
addRecognizedFeatures(recognizedFeatures);
// register component's recognized properties
String[] recognizedProperties = component.getRecognizedProperties();
addRecognizedProperties(recognizedProperties);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:18,代码来源:DOMConfigurationImpl.java
示例2: setFeatureDefaults
import com.sun.org.apache.xerces.internal.xni.parser.XMLComponent; //导入依赖的package包/类
/** Sets feature defaults for the given component on this configuration. */
private void setFeatureDefaults(final XMLComponent component,
final String [] recognizedFeatures, XSGrammarPoolContainer grammarContainer) {
if (recognizedFeatures != null) {
for (int i = 0; i < recognizedFeatures.length; ++i) {
String featureId = recognizedFeatures[i];
Boolean state = grammarContainer.getFeature(featureId);
if (state == null) {
state = component.getFeatureDefault(featureId);
}
if (state != null) {
// Do not overwrite values already set on the configuration.
if (!fFeatures.containsKey(featureId)) {
fFeatures.put(featureId, state);
// For newly added components who recognize this feature
// but did not offer a default value, we need to make
// sure these components will get an opportunity to read
// the value before parsing begins.
fConfigUpdated = true;
}
}
}
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:25,代码来源:XMLSchemaValidatorComponentManager.java
示例3: setPropertyDefaults
import com.sun.org.apache.xerces.internal.xni.parser.XMLComponent; //导入依赖的package包/类
/** Sets property defaults for the given component on this configuration. */
private void setPropertyDefaults(final XMLComponent component, final String [] recognizedProperties) {
if (recognizedProperties != null) {
for (int i = 0; i < recognizedProperties.length; ++i) {
String propertyId = recognizedProperties[i];
Object value = component.getPropertyDefault(propertyId);
if (value != null) {
// Do not overwrite values already set on the configuration.
if (!fProperties.containsKey(propertyId)) {
fProperties.put(propertyId, value);
// For newly added components who recognize this property
// but did not offer a default value, we need to make
// sure these components will get an opportunity to read
// the value before parsing begins.
fConfigUpdated = true;
}
}
}
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:21,代码来源:XMLSchemaValidatorComponentManager.java
示例4: reset
import com.sun.org.apache.xerces.internal.xni.parser.XMLComponent; //导入依赖的package包/类
/**
* reset all XML 1.0 components before parsing and namespace context
*/
protected void reset() throws XNIException {
int count = fComponents.size();
for (int i = 0; i < count; i++) {
XMLComponent c = (XMLComponent) fComponents.get(i);
c.reset(this);
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:XML11NonValidatingConfiguration.java
示例5: resetCommon
import com.sun.org.apache.xerces.internal.xni.parser.XMLComponent; //导入依赖的package包/类
/**
* reset all common components before parsing
*/
protected void resetCommon() throws XNIException {
// reset common components
int count = fCommonComponents.size();
for (int i = 0; i < count; i++) {
XMLComponent c = (XMLComponent) fCommonComponents.get(i);
c.reset(this);
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:XML11NonValidatingConfiguration.java
示例6: resetXML11
import com.sun.org.apache.xerces.internal.xni.parser.XMLComponent; //导入依赖的package包/类
/**
* reset all components before parsing and namespace context
*/
protected void resetXML11() throws XNIException {
// reset every component
int count = fXML11Components.size();
for (int i = 0; i < count; i++) {
XMLComponent c = (XMLComponent) fXML11Components.get(i);
c.reset(this);
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:XML11NonValidatingConfiguration.java
示例7: addComponent
import com.sun.org.apache.xerces.internal.xni.parser.XMLComponent; //导入依赖的package包/类
/**
* Adds a component to the parser configuration. This method will
* also add all of the component's recognized features and properties
* to the list of default recognized features and properties.
*
* @param component The component to add.
*/
protected void addComponent(XMLComponent component) {
// don't add a component more than once
if (fComponents.contains(component)) {
return;
}
fComponents.add(component);
addRecognizedParamsAndSetDefaults(component);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:18,代码来源:XML11NonValidatingConfiguration.java
示例8: addCommonComponent
import com.sun.org.apache.xerces.internal.xni.parser.XMLComponent; //导入依赖的package包/类
/**
* Adds common component to the parser configuration. This method will
* also add all of the component's recognized features and properties
* to the list of default recognized features and properties.
*
* @param component The component to add.
*/
protected void addCommonComponent(XMLComponent component) {
// don't add a component more than once
if (fCommonComponents.contains(component)) {
return;
}
fCommonComponents.add(component);
addRecognizedParamsAndSetDefaults(component);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:18,代码来源:XML11NonValidatingConfiguration.java
示例9: addXML11Component
import com.sun.org.apache.xerces.internal.xni.parser.XMLComponent; //导入依赖的package包/类
/**
* Adds an XML 1.1 component to the parser configuration. This method will
* also add all of the component's recognized features and properties
* to the list of default recognized features and properties.
*
* @param component The component to add.
*/
protected void addXML11Component(XMLComponent component) {
// don't add a component more than once
if (fXML11Components.contains(component)) {
return;
}
fXML11Components.add(component);
addRecognizedParamsAndSetDefaults(component);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:18,代码来源:XML11NonValidatingConfiguration.java
示例10: addComponent
import com.sun.org.apache.xerces.internal.xni.parser.XMLComponent; //导入依赖的package包/类
/**
* Adds a component to the parser configuration. This method will
* also add all of the component's recognized features and properties
* to the list of default recognized features and properties.
*
* @param component The component to add.
*/
protected void addComponent(XMLComponent component) {
// don't add a component more than once
if (fComponents.contains(component)) {
return;
}
fComponents.add(component);
// register component's recognized features
String[] recognizedFeatures = component.getRecognizedFeatures();
addRecognizedFeatures(recognizedFeatures);
// register component's recognized properties
String[] recognizedProperties = component.getRecognizedProperties();
addRecognizedProperties(recognizedProperties);
// set default values
if (recognizedFeatures != null) {
for (int i = 0; i < recognizedFeatures.length; i++) {
String featureId = recognizedFeatures[i];
Boolean state = component.getFeatureDefault(featureId);
if (state != null) {
super.setFeature(featureId, state.booleanValue());
}
}
}
if (recognizedProperties != null) {
for (int i = 0; i < recognizedProperties.length; i++) {
String propertyId = recognizedProperties[i];
Object value = component.getPropertyDefault(propertyId);
if (value != null) {
super.setProperty(propertyId, value);
}
}
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:45,代码来源:BasicParserConfiguration.java
示例11: setFeature
import com.sun.org.apache.xerces.internal.xni.parser.XMLComponent; //导入依赖的package包/类
/**
* Set the state of a feature.
*
* Set the state of any feature in a SAX2 parser. The parser
* might not recognize the feature, and if it does recognize
* it, it might not be able to fulfill the request.
*
* @param featureId The unique identifier (URI) of the feature.
* @param state The requested state of the feature (true or false).
*
* @exception com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException If the
* requested feature is not known.
*/
public void setFeature(String featureId, boolean state)
throws XMLConfigurationException {
// forward to every component
int count = fComponents.size();
for (int i = 0; i < count; i++) {
XMLComponent c = (XMLComponent) fComponents.get(i);
c.setFeature(featureId, state);
}
// save state if noone "objects"
super.setFeature(featureId, state);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:27,代码来源:BasicParserConfiguration.java
示例12: setProperty
import com.sun.org.apache.xerces.internal.xni.parser.XMLComponent; //导入依赖的package包/类
/**
* setProperty
*
* @param propertyId
* @param value
*/
public void setProperty(String propertyId, Object value)
throws XMLConfigurationException {
// forward to every component
int count = fComponents.size();
for (int i = 0; i < count; i++) {
XMLComponent c = (XMLComponent) fComponents.get(i);
c.setProperty(propertyId, value);
}
// store value if noone "objects"
super.setProperty(propertyId, value);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:21,代码来源:BasicParserConfiguration.java
示例13: reset
import com.sun.org.apache.xerces.internal.xni.parser.XMLComponent; //导入依赖的package包/类
/**
* reset all components before parsing and namespace context
*/
protected void reset() throws XNIException {
// reset every component
int count = fComponents.size();
for (int i = 0; i < count; i++) {
XMLComponent c = (XMLComponent) fComponents.get(i);
c.reset(this);
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:14,代码来源:BasicParserConfiguration.java
示例14: IntegratedParserConfiguration
import com.sun.org.apache.xerces.internal.xni.parser.XMLComponent; //导入依赖的package包/类
/**
* Constructs a parser configuration using the specified symbol table,
* grammar pool, and parent settings.
* <p>
* <strong>REVISIT:</strong>
* Grammar pool will be updated when the new validation engine is
* implemented.
*
* @param symbolTable The symbol table to use.
* @param grammarPool The grammar pool to use.
* @param parentSettings The parent settings.
*/
public IntegratedParserConfiguration(SymbolTable symbolTable,
XMLGrammarPool grammarPool,
XMLComponentManager parentSettings) {
super(symbolTable, grammarPool, parentSettings);
// create components
fNonNSScanner = new XMLDocumentScannerImpl();
fNonNSDTDValidator = new XMLDTDValidator();
// add components
addComponent((XMLComponent)fNonNSScanner);
addComponent((XMLComponent)fNonNSDTDValidator);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:27,代码来源:IntegratedParserConfiguration.java
注:本文中的com.sun.org.apache.xerces.internal.xni.parser.XMLComponent类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论