gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-27 03:05:05 30 4
gpt4 key购买 nike

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

XSDModelGroupDefinition.isModelGroupDefinitionReference介绍

[英]Returns the value of the 'Model Group Definition Reference' attribute.

This concrete attribute is equivalent to

xsdModelGroupDefinition != xsdModelGroupDefinition. 
#getResolvedModelGroupDefinition()

An infoset feature will never return an instance for which this is the true since this is a concrete attribute that is used to represent a model group definition with a ref attribute.
[中]返回“模型组定义引用”属性的值。
这个具体属性相当于

xsdModelGroupDefinition != xsdModelGroupDefinition. 
#getResolvedModelGroupDefinition()

信息集功能永远不会返回其为true的实例,因为这是一个具体的属性,用于用ref属性表示模型组定义。

代码示例

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

(XSDModelGroupDefinition) particle.getContent();
if (grpDef.isModelGroupDefinitionReference()) {
  grpDef = grpDef.getResolvedModelGroupDefinition();

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

(XSDModelGroupDefinition) particle.getContent();
if (grpDef.isModelGroupDefinitionReference()) {
  grpDef = grpDef.getResolvedModelGroupDefinition();

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

protected void init()
{
 if (input instanceof XSDModelGroupDefinition)
 {
  XSDModelGroupDefinition group = (XSDModelGroupDefinition) input;
  isReference = group.isModelGroupDefinitionReference();
 }
}

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

public boolean isFocusAllowed()
{
 XSDModelGroupDefinition xsdModelGroupDefinition = (XSDModelGroupDefinition) target;
 if (xsdModelGroupDefinition.isModelGroupDefinitionReference())
 { 
  return false;
 }
 return true;
}

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

public Object caseXSDModelGroupDefinition(XSDModelGroupDefinition modelGroupDefinition)
{
 XSDConcreteComponent target = null;
 if (modelGroupDefinition.isModelGroupDefinitionReference())
 {
  target = modelGroupDefinition.getResolvedModelGroupDefinition();
 }
 return target;
}

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

public void visitModelGroupDefinition(XSDModelGroupDefinition modelGroupDef)
{
 if (modelGroupDef.isModelGroupDefinitionReference())
 {
  // if it's a reference we need to listen to the reference incase it changes
  thingsWeNeedToListenTo.add(modelGroupDef);      
 }    
 // listen to definition incase it changes
 XSDModelGroupDefinition resolvedModelGroupDef = modelGroupDef.getResolvedModelGroupDefinition();
 thingsWeNeedToListenTo.add(resolvedModelGroupDef);
 super.visitModelGroupDefinition(modelGroupDef);      
}

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

public String[] getActions(Object object)
{
 Collection list = new ArrayList();
 if (!getXSDModelGroupDefinition().isModelGroupDefinitionReference())
 {
  list.add(AddXSDElementAction.ID);
  list.add(AddXSDElementAction.REF_ID);
  list.add(BaseSelectionAction.SEPARATOR_ID);
  list.add(AddXSDModelGroupAction.SEQUENCE_ID);
  list.add(AddXSDModelGroupAction.CHOICE_ID);
 }
 
 list.add(DeleteXSDConcreteComponentAction.DELETE_XSD_COMPONENT_ID);
 
 if (getXSDModelGroupDefinition().isModelGroupDefinitionReference())
 {
  list.add(BaseSelectionAction.SEPARATOR_ID);
  list.add(BaseSelectionAction.SUBMENU_START_ID + Messages._UI_ACTION_SET_MULTIPLICITY);
  list.add(SetMultiplicityAction.REQUIRED_ID);
  list.add(SetMultiplicityAction.ZERO_OR_ONE_ID);
  list.add(SetMultiplicityAction.ZERO_OR_MORE_ID);
  list.add(SetMultiplicityAction.ONE_OR_MORE_ID);    
  list.add(BaseSelectionAction.SUBMENU_END_ID); 
 }
 
 list.add(BaseSelectionAction.SEPARATOR_ID);
 list.add(ShowPropertiesViewAction.ID);
 return (String [])list.toArray(new String[0]);
}

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

public String getText()
{
 XSDModelGroupDefinition xsdModelGroupDefinition = (XSDModelGroupDefinition) target;
 String result = xsdModelGroupDefinition.isModelGroupDefinitionReference() ? xsdModelGroupDefinition.getQName() : xsdModelGroupDefinition.getName();
 return result == null ? Messages._UI_LABEL_ABSENT : result;
}

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

public void visitModelGroupDefinition(XSDModelGroupDefinition modelGroupDef)
{
 if (!modelGroupDef.isModelGroupDefinitionReference())
 {
  if (modelGroupDef.getModelGroup() != null)
  {
   visitModelGroup(modelGroupDef.getModelGroup());
  }
 }
}

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

public Image getImage()
{
 XSDModelGroupDefinition xsdModelGroupDefinition = (XSDModelGroupDefinition) target;
 if (xsdModelGroupDefinition.isModelGroupDefinitionReference())
 {
  if (isReadOnly())
  {
   return MODEL_GROUP_REF_DISABLED_ICON;
  }
  return MODEL_GROUP_REF_ICON;
 }
 else
 {
  if (isReadOnly())
  {
   return MODEL_GROUP_DISABLED_ICON;
  }
  return MODEL_GROUP_ICON;
 }
}

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

@Override
public String getText(Object object)
{
 XSDModelGroupDefinition xsdModelGroupDefinition = ((XSDModelGroupDefinition)object);
 String result = 
  xsdModelGroupDefinition.isModelGroupDefinitionReference() ?
   xsdModelGroupDefinition.getQName() :
   xsdModelGroupDefinition.getName();
 return result == null ? XSDEditPlugin.INSTANCE.getString("_UI_Absent_label") : result;
}

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

/**
  * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
  * that can be created under this object.
  */
 @Override
 protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object)
 {
  super.collectNewChildDescriptors(newChildDescriptors, object);
  XSDModelGroupDefinition mgd = (XSDModelGroupDefinition) object;

  if (!mgd.isModelGroupDefinitionReference())
  {
   // annotation
   newChildDescriptors.add(createChildParameter(xsdPackage.getXSDModelGroupDefinition_Annotation(), xsdFactory.createXSDAnnotation()));

   // all, choice, and sequence model groups
   addModelGroupChildParameters(newChildDescriptors, xsdPackage.getXSDModelGroupDefinition_ModelGroup(), true, false);
  }
 }
}

代码示例来源:origin: org.geotools/gt2-xml-core

if (grpDef.isModelGroupDefinitionReference()) {
  grpDef = grpDef.getResolvedModelGroupDefinition();

代码示例来源:origin: org.geotools/gt2-xml-xsd

.getContent();
if (grpDef.isModelGroupDefinitionReference()) {
  grpDef = grpDef.getResolvedModelGroupDefinition();

代码示例来源:origin: org.geotools.xsd/gt-core

if (grpDef.isModelGroupDefinitionReference()) {
  grpDef = grpDef.getResolvedModelGroupDefinition();

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

if (((XSDModelGroupDefinition) selected).isModelGroupDefinitionReference())

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

public void visitModelGroupDefinition(XSDModelGroupDefinition modelGroupDef)
{
 if (!modelGroupDef.isModelGroupDefinitionReference())
 {
  if (modelGroupDef.getModelGroup() != null)
  {
   visitModelGroup(modelGroupDef.getModelGroup());
  }
 }
 else
 {
  XSDModelGroup modelGroup = modelGroupDef.getResolvedModelGroupDefinition().getModelGroup();
  if (modelGroup != null)
  {
   visitModelGroup(modelGroup);
  }
 }
}

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

if (elementDecl.isModelGroupDefinitionReference())

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

((XSDAttributeDeclaration) child).isAttributeDeclarationReference()) ||
(child instanceof XSDModelGroupDefinition &&
 ((XSDModelGroupDefinition) child).isModelGroupDefinitionReference()) ||
(child instanceof XSDAttributeGroupDefinition &&
 ((XSDAttributeGroupDefinition)

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