gpt4 book ai didi

org.eclipse.xsd.XSDForm类的使用及代码示例

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

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

XSDForm介绍

[英]A representation of the literals of the enumeration 'Form'.
[中]枚举“Form”的文本的表示形式。

代码示例

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

xsd.setElementFormDefault(XSDForm.get(XSDForm.QUALIFIED));

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

/**
 * Returns the '<em><b>Form</b></em>' literal with the specified literal value.
 * <!-- begin-user-doc --> 
 * <!-- end-user-doc --> 
 * @generated
 */
public static XSDForm get(String literal)
{
 for (int i = 0; i < VALUES_ARRAY.length; ++i)
 {
  XSDForm result = VALUES_ARRAY[i];
  if (result.toString().equals(literal))
  {
   return result;
  }
 }
 return null;
}

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

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setForm(XSDForm newForm)
{
 XSDForm oldForm = FORM_EFLAG_VALUES[(eFlags & FORM_EFLAG) >>> FORM_EFLAG_OFFSET];
 if (newForm == null) newForm = FORM_EDEFAULT;
 eFlags = eFlags & ~FORM_EFLAG | newForm.ordinal() << FORM_EFLAG_OFFSET;
 boolean oldFormESet = (eFlags & FORM_ESETFLAG) != 0;
 eFlags |= FORM_ESETFLAG;
 if (eNotificationRequired())
  eNotify(new ENotificationImpl(this, Notification.SET, XSDPackage.XSD_FEATURE__FORM, oldForm, newForm, !oldFormESet));
}

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

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setAttributeFormDefault(XSDForm newAttributeFormDefault)
{
 XSDForm oldAttributeFormDefault = ATTRIBUTE_FORM_DEFAULT_EFLAG_VALUES[(eFlags & ATTRIBUTE_FORM_DEFAULT_EFLAG) >>> ATTRIBUTE_FORM_DEFAULT_EFLAG_OFFSET];
 if (newAttributeFormDefault == null) newAttributeFormDefault = ATTRIBUTE_FORM_DEFAULT_EDEFAULT;
 eFlags = eFlags & ~ATTRIBUTE_FORM_DEFAULT_EFLAG | newAttributeFormDefault.ordinal() << ATTRIBUTE_FORM_DEFAULT_EFLAG_OFFSET;
 boolean oldAttributeFormDefaultESet = (eFlags & ATTRIBUTE_FORM_DEFAULT_ESETFLAG) != 0;
 eFlags |= ATTRIBUTE_FORM_DEFAULT_ESETFLAG;
 if (eNotificationRequired())
  eNotify(new ENotificationImpl(this, Notification.SET, XSDPackage.XSD_SCHEMA__ATTRIBUTE_FORM_DEFAULT, oldAttributeFormDefault, newAttributeFormDefault, !oldAttributeFormDefaultESet));
}

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

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public XSDForm createXSDFormFromString(EDataType eDataType, String initialValue)
{
 XSDForm result = XSDForm.get(initialValue);
 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
 return result;
}

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

/**
 * Returns the '<em><b>Form</b></em>' literal with the specified literal value.
 * <!-- begin-user-doc --> 
 * <!-- end-user-doc --> 
 * @param literal the literal.
 * @return the matching enumerator or <code>null</code>.
 * @generated
 */
public static XSDForm get(String literal)
{
 for (int i = 0; i < VALUES_ARRAY.length; ++i)
 {
  XSDForm result = VALUES_ARRAY[i];
  if (result.toString().equals(literal))
  {
   return result;
  }
 }
 return null;
}

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

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setElementFormDefault(XSDForm newElementFormDefault)
{
 XSDForm oldElementFormDefault = ELEMENT_FORM_DEFAULT_EFLAG_VALUES[(eFlags & ELEMENT_FORM_DEFAULT_EFLAG) >>> ELEMENT_FORM_DEFAULT_EFLAG_OFFSET];
 if (newElementFormDefault == null) newElementFormDefault = ELEMENT_FORM_DEFAULT_EDEFAULT;
 eFlags = eFlags & ~ELEMENT_FORM_DEFAULT_EFLAG | newElementFormDefault.ordinal() << ELEMENT_FORM_DEFAULT_EFLAG_OFFSET;
 boolean oldElementFormDefaultESet = (eFlags & ELEMENT_FORM_DEFAULT_ESETFLAG) != 0;
 eFlags |= ELEMENT_FORM_DEFAULT_ESETFLAG;
 if (eNotificationRequired())
  eNotify(new ENotificationImpl(this, Notification.SET, XSDPackage.XSD_SCHEMA__ELEMENT_FORM_DEFAULT, oldElementFormDefault, newElementFormDefault, !oldElementFormDefaultESet));
}

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

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public XSDForm createXSDFormFromString(EDataType eDataType, String initialValue)
{
 XSDForm result = XSDForm.get(initialValue);
 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
 return result;
}

代码示例来源: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.geoserver/gs-wfs

schema.setSchemaForSchemaQNamePrefix("xsd");
schema.getQNamePrefixToNamespaceMap().put("xsd", XSDConstants.SCHEMA_FOR_SCHEMA_URI_2001);
schema.setElementFormDefault(XSDForm.get(XSDForm.QUALIFIED));

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

XSDForm newAttributeFormDefault = XSDForm.get(changedElement.getAttributeNS(null, XSDConstants.ATTRIBUTEFORMDEFAULT_ATTRIBUTE));
if (!isSetAttributeFormDefault() || newAttributeFormDefault != getAttributeFormDefault())
XSDForm newElementFormDefault = XSDForm.get(changedElement.getAttributeNS(null, XSDConstants.ELEMENTFORMDEFAULT_ATTRIBUTE));
if (!isSetElementFormDefault() || newElementFormDefault != getElementFormDefault())

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

XSDForm newAttributeFormDefault = XSDForm.get(changedElement.getAttributeNS(null, XSDConstants.ATTRIBUTEFORMDEFAULT_ATTRIBUTE));
if (!isSetAttributeFormDefault() || newAttributeFormDefault != getAttributeFormDefault())
XSDForm newElementFormDefault = XSDForm.get(changedElement.getAttributeNS(null, XSDConstants.ELEMENTFORMDEFAULT_ATTRIBUTE));
if (!isSetElementFormDefault() || newElementFormDefault != getElementFormDefault())

代码示例来源: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.geoserver/gs-wfs

schema.setElementFormDefault(XSDForm.get(XSDForm.QUALIFIED));

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

XSDForm newForm = XSDForm.get(changedElement.getAttributeNS(null, XSDConstants.FORM_ATTRIBUTE));
if (!isSetForm() || newForm != getForm())

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