本文整理汇总了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;
}
}
示例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);
}
示例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);
}
示例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);
}