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

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

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

XSDComplexTypeDefinition.setDerivationMethod介绍

[英]Sets the value of the ' org.eclipse.xsd.XSDComplexTypeDefinition#getDerivationMethod' attribute.
[中]设置“组织”的值。日食xsd。XSDComplexTypeDefinition#GetDiversionMethod’属性。

代码示例

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

type.setTargetNamespace(featureType.getName().getNamespaceURI());
type.setName(featureType.getTypeName() + "Type");
type.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL);
type.setBaseTypeDefinition(schemaIndex.getTypeDefinition(gml.qName("AbstractFeatureType")));

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

definition.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL);

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

public void execute()
 {
  super.execute();
  try
  {
   beginRecording(complexType.getElement());
   if (derivation.equals(XSDConstants.EXTENSION_ELEMENT_TAG))
   {
    complexType.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL);
   }
   else if (derivation.equals(XSDConstants.RESTRICTION_ELEMENT_TAG))
   {
    complexType.setDerivationMethod(XSDDerivationMethod.RESTRICTION_LITERAL);
   }
  }
  finally
  {
   endRecording();
  }
 }
}

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

protected XSDComplexTypeDefinition createExtendedComplexTypeDefinition(XSDSchema schema, String name, String extension)
{
 XSDComplexTypeDefinition complexType = XSDFactory.eINSTANCE.createXSDComplexTypeDefinition();
 complexType.setName(name);
 complexType.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL);
 complexType.setBaseTypeDefinition(schema.resolveTypeDefinition(extension));
 return complexType;
}

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

protected XSDComplexTypeDefinition createExtendedComplexTypeDefinition(XSDSchema schema, String name, String extension)
{
 XSDComplexTypeDefinition complexType = XSDFactory.eINSTANCE.createXSDComplexTypeDefinition();
 complexType.setName(name);
 complexType.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL);
 complexType.setBaseTypeDefinition(schema.resolveTypeDefinition(extension));
 return complexType;
}

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

complexType.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL);

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

complexType.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL);

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

xsdComplexTypeDefinition.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL);
xsdComplexTypeDefinition.setBaseTypeDefinition(baseType);

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

xsdComplexTypeDefinition.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL);
xsdComplexTypeDefinition.setBaseTypeDefinition(baseType);

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

xsdComplexTypeDefinition.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL);
EClass superClass = superClasses.get(0);

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

xsdComplexTypeDefinition.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL);
EClass superClass = superClasses.get(0);

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

simpleRecursiveComplexTypeDefinition./*{@link XSDComplexTypeDefinition#getBlock */getBlock/*}*/().add(/*{@link */XSDProhibitedSubstitutions/*}*/.ALL_LITERAL);
simpleRecursiveComplexTypeDefinition./*{@link XSDComplexTypeDefinition#getLexicalFinal */getLexicalFinal/*}*/().add(/*{@link */XSDComplexFinal/*}*/.ALL_LITERAL);
simpleRecursiveComplexTypeDefinition./*{@link XSDComplexTypeDefinition#setDerivationMethod */setDerivationMethod/*}*/(/*{@link */XSDDerivationMethod/*}*/.RESTRICTION_LITERAL);
simpleRecursiveComplexTypeDefinition./*{@link XSDComplexTypeDefinition#setMixed */setMixed/*}*/(true);

代码示例来源:origin: org.geoserver/gs-wfs

complexType.setName(name + "Type");
complexType.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL);
complexType.setBaseTypeDefinition(
    schema.resolveComplexTypeDefinition(GML.NAMESPACE, "AbstractFeatureType"));

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

simpleRecursiveComplexTypeDefinition./*{@link XSDComplexTypeDefinition#getBlock */getBlock/*}*/().add(/*{@link */XSDProhibitedSubstitutions/*}*/.ALL_LITERAL);
simpleRecursiveComplexTypeDefinition./*{@link XSDComplexTypeDefinition#getLexicalFinal */getLexicalFinal/*}*/().add(/*{@link */XSDComplexFinal/*}*/.ALL_LITERAL);
simpleRecursiveComplexTypeDefinition./*{@link XSDComplexTypeDefinition#setDerivationMethod */setDerivationMethod/*}*/(/*{@link */XSDDerivationMethod/*}*/.RESTRICTION_LITERAL);
simpleRecursiveComplexTypeDefinition./*{@link XSDComplexTypeDefinition#setMixed */setMixed/*}*/(true);

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

simpleContentComplexTypeDefinition./*{@link XSDComplexTypeDefinition#setDerivationMethod */setDerivationMethod/*}*/(/*{@link */XSDDerivationMethod/*}*/.EXTENSION_LITERAL);

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

complexType.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL);
formatChild(complexType.getElement());

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

simpleContentComplexTypeDefinition./*{@link XSDComplexTypeDefinition#setDerivationMethod */setDerivationMethod/*}*/(/*{@link */XSDDerivationMethod/*}*/.EXTENSION_LITERAL);

代码示例来源:origin: org.geoserver/gs-wfs

xsdComplexType.setName(complexType.getName().getLocalPart() + "Type");
xsdComplexType.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL);
xsdComplexType.setBaseTypeDefinition(
    resolveTypeInSchema(schema, new NameImpl(gmlNamespace, baseType)));

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

xsdComplexTypeDefinition.setDerivationMethod(xsdSimpleTypeDefinition.getContents().isEmpty() ? XSDDerivationMethod.EXTENSION_LITERAL : XSDDerivationMethod.RESTRICTION_LITERAL);
xsdComplexTypeDefinition.setContent(xsdSimpleTypeDefinition);

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

xsdComplexTypeDefinition.setDerivationMethod(xsdSimpleTypeDefinition.getContents().isEmpty() ? XSDDerivationMethod.EXTENSION_LITERAL : XSDDerivationMethod.RESTRICTION_LITERAL);
xsdComplexTypeDefinition.setContent(xsdSimpleTypeDefinition);

相关文章

微信公众号

最新文章

更多