本文整理了Java中org.eclipse.xsd.XSDComplexTypeDefinition.getDerivationMethod()
方法的一些代码示例,展示了XSDComplexTypeDefinition.getDerivationMethod()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSDComplexTypeDefinition.getDerivationMethod()
方法的具体详情如下:
包路径:org.eclipse.xsd.XSDComplexTypeDefinition
类名称: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;
内容来源于网络,如有侵权,请联系作者删除!