org.eclipse.xsd.XSDComplexTypeDefinition.getDerivationMethod()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(131)

本文整理了Java中org.eclipse.xsd.XSDComplexTypeDefinition.getDerivationMethod()方法的一些代码示例,展示了XSDComplexTypeDefinition.getDerivationMethod()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSDComplexTypeDefinition.getDerivationMethod()方法的具体详情如下:
包路径:org.eclipse.xsd.XSDComplexTypeDefinition
类名称:XSDComplexTypeDefinition
方法名:getDerivationMethod

XSDComplexTypeDefinition.getDerivationMethod介绍

[英]Returns the value of the 'Derivation Method' attribute. The default value is "restriction". The literals are from the enumeration org.eclipse.xsd.XSDDerivationMethod.

This represents the derivation method infoset property.
[中]返回“派生方法”属性的值。默认值为[$0$]。文本来自枚举组织。日食xsd。XSDDerivationMethod。
这表示derivation methodinfoset属性。

代码示例

代码示例来源:origin: geotools/geotools

XSDComplexTypeDefinition complexTypeDef = (XSDComplexTypeDefinition) typeDef;
XSDContentTypeCategory category = complexTypeDef.getContentTypeCategory();
XSDDerivationMethod derivMethod = complexTypeDef.getDerivationMethod();

代码示例来源:origin: org.geotools/gt-complex

XSDComplexTypeDefinition complexTypeDef = (XSDComplexTypeDefinition) typeDef;
XSDContentTypeCategory category = complexTypeDef.getContentTypeCategory();
XSDDerivationMethod derivMethod = complexTypeDef.getDerivationMethod();

代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd

protected int getRequiredChildElementNodeType()
{
 XSDComplexTypeDefinition xsdComplexTypeDefinition =
  getContainer() instanceof XSDComplexTypeDefinition ? 
   (XSDComplexTypeDefinition)getContainer() :
   null;
 XSDSimpleTypeDefinition theBaseTypeDefinition = getBaseTypeDefinition();
 if (getItemTypeDefinition() != null && (theBaseTypeDefinition == null || XSDConstants.isURType(theBaseTypeDefinition)))
 {
  return XSDConstants.LIST_ELEMENT;
 }
 else if (!getMemberTypeDefinitions().isEmpty() && (theBaseTypeDefinition == null || XSDConstants.isURType(theBaseTypeDefinition)))
 {
  return XSDConstants.UNION_ELEMENT;
 }
 else
 {
  return
   xsdComplexTypeDefinition == null || XSDDerivationMethod.EXTENSION_LITERAL != xsdComplexTypeDefinition.getDerivationMethod() ? 
    XSDConstants.RESTRICTION_ELEMENT :
    XSDConstants.EXTENSION_ELEMENT;
 }
}

代码示例来源:origin: org.eclipse/org.eclipse.xsd

protected int getRequiredChildElementNodeType()
{
 XSDComplexTypeDefinition xsdComplexTypeDefinition =
  getContainer() instanceof XSDComplexTypeDefinition ? 
   (XSDComplexTypeDefinition)getContainer() :
   null;
 XSDSimpleTypeDefinition theBaseTypeDefinition = getBaseTypeDefinition();
 if (getItemTypeDefinition() != null && (theBaseTypeDefinition == null || XSDConstants.isURType(theBaseTypeDefinition)))
 {
  return XSDConstants.LIST_ELEMENT;
 }
 else if (!getMemberTypeDefinitions().isEmpty() && (theBaseTypeDefinition == null || XSDConstants.isURType(theBaseTypeDefinition)))
 {
  return XSDConstants.UNION_ELEMENT;
 }
 else
 {
  return
   xsdComplexTypeDefinition == null || XSDDerivationMethod.EXTENSION_LITERAL != xsdComplexTypeDefinition.getDerivationMethod() ? 
    XSDConstants.RESTRICTION_ELEMENT :
    XSDConstants.EXTENSION_ELEMENT;
 }
}

代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui

int derivationMethod = complexType.getDerivationMethod().getValue();
if (derivationMethod == XSDDerivationMethod.EXTENSION)

代码示例来源:origin: org.eclipse.emf/org.eclipse.xsd.edit

((XSDComplexTypeDefinition) std.eContainer()).getDerivationMethod() != XSDDerivationMethod.EXTENSION_LITERAL)

代码示例来源:origin: org.eclipse.emf/org.eclipse.xsd.edit

contentType == XSDContentTypeCategory.MIXED_LITERAL) &&
!(ctd.getBaseTypeDefinition() == anyTypeDefinition &&
 ctd.getDerivationMethod() == XSDDerivationMethod.RESTRICTION_LITERAL))

代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd

else if (XSDConstants.isURType(baseTypeDefinition) && xsdComplexTypeDefinition.getDerivationMethod() == XSDDerivationMethod.EXTENSION_LITERAL)
  xsdComplexTypeDefinition.getDerivationMethod() == XSDDerivationMethod.RESTRICTION_LITERAL;

代码示例来源:origin: org.eclipse/org.eclipse.xsd

xsdComplexTypeDefinition.getDerivationMethod() == XSDDerivationMethod.RESTRICTION_LITERAL;

相关文章

微信公众号

最新文章

更多