本文整理汇总了Java中com.sun.org.apache.xerces.internal.xs.XSAttributeGroupDefinition类的典型用法代码示例。如果您正苦于以下问题:Java XSAttributeGroupDefinition类的具体用法?Java XSAttributeGroupDefinition怎么用?Java XSAttributeGroupDefinition使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XSAttributeGroupDefinition类属于com.sun.org.apache.xerces.internal.xs包,在下文中一共展示了XSAttributeGroupDefinition类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: expandRelatedComponents
import com.sun.org.apache.xerces.internal.xs.XSAttributeGroupDefinition; //导入依赖的package包/类
private void expandRelatedComponents(XSObject component, Vector componentList, Map<String, Vector> dependencies) {
short componentType = component.getType();
switch (componentType) {
case XSConstants.TYPE_DEFINITION :
expandRelatedTypeComponents((XSTypeDefinition) component, componentList, component.getNamespace(), dependencies);
break;
case XSConstants.ATTRIBUTE_DECLARATION :
expandRelatedAttributeComponents((XSAttributeDeclaration) component, componentList, component.getNamespace(), dependencies);
break;
case XSConstants.ATTRIBUTE_GROUP :
expandRelatedAttributeGroupComponents((XSAttributeGroupDefinition) component, componentList, component.getNamespace(), dependencies);
case XSConstants.ELEMENT_DECLARATION :
expandRelatedElementComponents((XSElementDeclaration) component, componentList, component.getNamespace(), dependencies);
break;
case XSConstants.MODEL_GROUP_DEFINITION :
expandRelatedModelGroupDefinitionComponents((XSModelGroupDefinition) component, componentList, component.getNamespace(), dependencies);
case XSConstants.ATTRIBUTE_USE :
//expandRelatedAttributeUseComponents((XSAttributeUse)component, componentList, dependencies);
case XSConstants.NOTATION_DECLARATION :
case XSConstants.IDENTITY_CONSTRAINT :
default :
break;
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:25,代码来源:XSDHandler.java
示例2: getAttributeGroup
import com.sun.org.apache.xerces.internal.xs.XSAttributeGroupDefinition; //导入依赖的package包/类
/**
* Convenience method. Returns a top-level attribute group definition.
* @param name The name of the definition.
* @param namespace The namespace of the definition, otherwise null.
* @return A top-level attribute group definition or null if such
* definition does not exist.
*/
public XSAttributeGroupDefinition getAttributeGroup(String name,
String namespace) {
SchemaGrammar sg = (SchemaGrammar)fGrammarMap.get(null2EmptyString(namespace));
if (sg == null) {
return null;
}
return (XSAttributeGroupDefinition)sg.fGlobalAttrGrpDecls.get(name);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:16,代码来源:XSModelImpl.java
示例3: expandRelatedAttributeGroupComponents
import com.sun.org.apache.xerces.internal.xs.XSAttributeGroupDefinition; //导入依赖的package包/类
private void expandRelatedAttributeGroupComponents(XSAttributeGroupDefinition attrGroup, Vector componentList
, String namespace, Map<String, Vector> dependencies) {
expandRelatedAttributeUsesComponents(attrGroup.getAttributeUses(), componentList, namespace, dependencies);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:XSDHandler.java
示例4: getAttributeGroup
import com.sun.org.apache.xerces.internal.xs.XSAttributeGroupDefinition; //导入依赖的package包/类
/**
* Convenience method. Returns a top-level attribute group definition.
* @param name The name of the definition.
* @return A top-level attribute group definition or null if such
* definition does not exist.
*/
public XSAttributeGroupDefinition getAttributeGroup(String name) {
return getGlobalAttributeGroupDecl(name);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:SchemaGrammar.java
注:本文中的com.sun.org.apache.xerces.internal.xs.XSAttributeGroupDefinition类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论