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

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

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

XSDComplexTypeDefinition.getElement介绍

暂无

代码示例

代码示例来源: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/org.eclipse.wst.xsd.ui

UpdateAttributeValueCommand command = new UpdateAttributeValueCommand(complexType.getElement(), XSDConstants.BLOCK_ATTRIBUTE, value);
command.setDeleteIfEmpty(true);
getCommandStack().execute(command);
UpdateAttributeValueCommand command = new UpdateAttributeValueCommand(complexType.getElement(), XSDConstants.FINAL_ATTRIBUTE, value);
command.setDeleteIfEmpty(true);
getCommandStack().execute(command);
 complexType.getElement().removeAttribute(XSDConstants.ABSTRACT_ATTRIBUTE);
else
 complexType.getElement().removeAttribute(XSDConstants.MIXED_ATTRIBUTE);
else

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

String blockAttValue = complexType.getElement().getAttribute(XSDConstants.BLOCK_ATTRIBUTE);
if (blockAttValue != null)
String finalAttValue = complexType.getElement().getAttribute(XSDConstants.FINAL_ATTRIBUTE);
if (finalAttValue != null)
if (complexType.getElement().hasAttribute(XSDConstants.ABSTRACT_ATTRIBUTE))
if (complexType.getElement().hasAttribute(XSDConstants.MIXED_ATTRIBUTE))

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

beginRecording(xsdComplexTypeDefinition.getElement());
attributeGroup.setName(getNewName("AttributeGroup")); //$NON-NLS-1$

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

public void execute()
{
 try
 {
  beginRecording(input.getElement());
  XSDWildcard anyAttribute = XSDFactory.eINSTANCE.createXSDWildcard();
  if (xsdComplexTypeDefinition != null)
  {
   xsdComplexTypeDefinition.setAttributeWildcardContent(anyAttribute);
   formatChild(xsdComplexTypeDefinition.getElement());
  }
  else if (xsdAttributeGroupDefinition != null)
  {
   xsdAttributeGroupDefinition.setAttributeWildcardContent(anyAttribute);
   formatChild(xsdAttributeGroupDefinition.getElement());
  }
  addedXSDConcreteComponent = anyAttribute;
 }
 finally
 {
  endRecording();
 }
}

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

beginRecording(xsdComplexTypeDefinition.getElement());
if (!isReference)
 formatChild(xsdComplexTypeDefinition.getElement());

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

formatChild(complexType.getElement());

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

formatChild(xsdComplexTypeDefinition.getElement());

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

getGenericType(xsdComplexTypeDefinition, xsdComplexTypeDefinition.getElement(), eClass, getEcoreAttribute(xsdComplexTypeDefinition, "extends"));
  if (genericSuperType != null && genericSuperType.getEClassifier() instanceof EClass)
  xsdComplexTypeDefinition.getDerivationMethod() == XSDDerivationMethod.RESTRICTION_LITERAL;
for (EGenericType eGenericType : getGenericTypes(xsdComplexTypeDefinition, xsdComplexTypeDefinition.getElement(), eClass, getEcoreAttribute(xsdComplexTypeDefinition, "implements")))

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

getGenericType(xsdComplexTypeDefinition, xsdComplexTypeDefinition.getElement(), eClass, getEcoreAttribute(xsdComplexTypeDefinition, "extends"));
  if (genericSuperType != null && genericSuperType.getEClassifier() instanceof EClass)
  xsdComplexTypeDefinition.getDerivationMethod() == XSDDerivationMethod.RESTRICTION_LITERAL;
for (EGenericType eGenericType : getGenericTypes(xsdComplexTypeDefinition, xsdComplexTypeDefinition.getElement(), eClass, getEcoreAttribute(xsdComplexTypeDefinition, "implements")))

相关文章

微信公众号

最新文章

更多