本文整理了Java中org.eclipse.xsd.XSDForm.getName()
方法的一些代码示例,展示了XSDForm.getName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSDForm.getName()
方法的具体详情如下:
包路径:org.eclipse.xsd.XSDForm
类名称:XSDForm
方法名:getName
暂无
代码示例来源:origin: org.eclipse/org.eclipse.xsd
/**
* Returns the '<em><b>Form</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static XSDForm getByName(String name)
{
for (int i = 0; i < VALUES_ARRAY.length; ++i)
{
XSDForm result = VALUES_ARRAY[i];
if (result.getName().equals(name))
{
return result;
}
}
return null;
}
代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd
/**
* Returns the '<em><b>Form</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param name the name.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static XSDForm getByName(String name)
{
for (int i = 0; i < VALUES_ARRAY.length; ++i)
{
XSDForm result = VALUES_ARRAY[i];
if (result.getName().equals(name))
{
return result;
}
}
return null;
}
代码示例来源:origin: org.eclipse.emf/org.eclipse.xsd.edit
@Override
public Object getPropertyDefaultValue(Object o)
{
return
XSDEditPlugin.INSTANCE.getString
("_UI_DefaultValue_label", new Object [] { ((XSDAttributeDeclaration)o).getSchema().getAttributeFormDefault().getName() });
}
});
代码示例来源:origin: org.eclipse.emf/org.eclipse.xsd.edit
@Override
public Object getPropertyDefaultValue(Object o)
{
return
XSDEditPlugin.INSTANCE.getString
("_UI_DefaultValue_label", new Object [] { ((XSDElementDeclaration)o).getSchema().getElementFormDefault().getName() });
}
});
代码示例来源:origin: org.eclipse/org.eclipse.xsd
@Override
protected void changeAttribute(EAttribute eAttribute)
{
super.changeAttribute(eAttribute);
if (!isAttributeDeclarationReference())
{
Element theElement = getElement();
if (theElement != null)
{
if (eAttribute == null || eAttribute == XSDPackage.Literals.XSD_FEATURE__FORM)
{
if (!(getScope() instanceof XSDSchema))
{
niceSetAttribute(theElement, XSDConstants.FORM_ATTRIBUTE, isSetForm() ? getForm().getName() : null);
}
}
}
if (eAttribute == XSDPackage.Literals.XSD_FEATURE__FORM)
{
patchTargetNamespaceAttribute();
}
}
}
代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd
@Override
protected void changeAttribute(EAttribute eAttribute)
{
super.changeAttribute(eAttribute);
if (!isAttributeDeclarationReference())
{
Element theElement = getElement();
if (theElement != null)
{
if (eAttribute == null || eAttribute == XSDPackage.Literals.XSD_FEATURE__FORM)
{
if (!(getScope() instanceof XSDSchema))
{
niceSetAttribute(theElement, XSDConstants.FORM_ATTRIBUTE, isSetForm() ? getForm().getName() : null);
}
}
}
if (eAttribute == XSDPackage.Literals.XSD_FEATURE__FORM)
{
patchTargetNamespaceAttribute();
}
}
}
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
if (elementFormQualified.equals(XSDForm.QUALIFIED_LITERAL.getName()))
else if (elementFormQualified.equals(XSDForm.UNQUALIFIED_LITERAL.getName()))
if (attributeFormQualified.equals(XSDForm.QUALIFIED_LITERAL.getName()))
else if (attributeFormQualified.equals(XSDForm.UNQUALIFIED_LITERAL.getName()))
代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd
niceSetAttribute(theElement, XSDConstants.FORM_ATTRIBUTE, isSetForm() ? getForm().getName() : null);
代码示例来源:origin: org.eclipse/org.eclipse.xsd
(theElement,
XSDConstants.ATTRIBUTEFORMDEFAULT_ATTRIBUTE,
isSetAttributeFormDefault() ? getAttributeFormDefault().getName() : null);
if (eAttribute != null)
(theElement,
XSDConstants.ELEMENTFORMDEFAULT_ATTRIBUTE,
isSetElementFormDefault() ? getElementFormDefault().getName() : null);
if (eAttribute != null)
代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd
(theElement,
XSDConstants.ATTRIBUTEFORMDEFAULT_ATTRIBUTE,
isSetAttributeFormDefault() ? getAttributeFormDefault().getName() : null);
if (eAttribute != null)
(theElement,
XSDConstants.ELEMENTFORMDEFAULT_ATTRIBUTE,
isSetElementFormDefault() ? getElementFormDefault().getName() : null);
if (eAttribute != null)
代码示例来源:origin: org.eclipse/org.eclipse.xsd
niceSetAttribute(theElement, XSDConstants.FORM_ATTRIBUTE, isSetForm() ? getForm().getName() : null);
内容来源于网络,如有侵权,请联系作者删除!