gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-18 14:28:40 28 4
gpt4 key购买 nike

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

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);

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com