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