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

x33g5p2x  于2022-02-03 转载在 其他  
字(5.5k)|赞(0)|评价(0)|浏览(116)

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

XSDInclude介绍

[英]A representation of the model object 'Include'.

The following features are supported:

  • org.eclipse.xsd.XSDInclude#getAnnotation
    [中]模型对象Include的表示形式。
    支持以下功能:
    *组织。日食xsd。XSD包括#getAnnotation

代码示例

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

XSDInclude include = (XSDInclude) content;
if (!added.contains(include.getSchemaLocation())) {
  includes.add(include);
  added.add(include.getSchemaLocation());
  if (include.getIncorporatedSchema() != null) {
    queue.addLast(include.getIncorporatedSchema());
  } else {
    if (LOGGER.isLoggable(Level.FINE)) {

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

file = findSchemaFile( include.getSchemaLocation() );
if( include.getSchema() != null ) {
  namespaces.add(include.getSchema().getTargetNamespace());	
logger.log( Level.SEVERE, "Could not find: " + include.getSchemaLocation() + " to copy." );

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

file = findSchemaFile( include.getSchemaLocation() );
logger.log( Level.SEVERE, "Could not find: " + include.getSchemaLocation() + " to copy." );

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

public XSDSchema included(XSDInclude xsdInclude)
 XSDSchema includingSchema = xsdInclude.getSchema();
 xsdInclude.setResolvedSchema(this);
 getReferencingDirectives().add(xsdInclude);
 if (getTargetNamespace() == null || getTargetNamespace().equals(includingSchema.getTargetNamespace()))

代码示例来源:origin: org.geoserver/gs-wfs

/**
 * Add include statement to schema.
 *
 * @param schema Output schema
 * @param factory XSD factory used to produce schema
 * @param schemaLocation The schema location to be included
 */
private void addInclude(XSDSchema schema, XSDFactory factory, String schemaLocation) {
  XSDInclude xsdInclude = factory.createXSDInclude();
  xsdInclude.setSchemaLocation(schemaLocation);
  schema.getContents().add(xsdInclude);
}

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

((XSDInclude)component).setAnnotation(xsdAnnotation);

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

xsdAnnotation = xsdComp.getAnnotation();
if (createIfNotExist && xsdAnnotation == null)
 xsdComp.setAnnotation(xsdAnnotation);

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

public static XSDInclude createInclude(Node node)
{
 if (XSDConstants.nodeType(node) == XSDConstants.INCLUDE_ELEMENT)
 {
  XSDInclude xsdInclude = XSDFactory.eINSTANCE.createXSDInclude();
  xsdInclude.setElement((Element)node);
  return xsdInclude;
 }
 return null;
}

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

@Override
public String getText(Object object)
{
 XSDInclude xsdInclude = ((XSDInclude)object);
 String result = xsdInclude.getSchemaLocation();
 return result == null ? "" : result;
}

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

public XSDSchema included(XSDInclude xsdInclude)
 XSDSchema includingSchema = xsdInclude.getSchema();
 xsdInclude.setResolvedSchema(this);
 getReferencingDirectives().add(xsdInclude);
 if (getTargetNamespace() == null || getTargetNamespace().equals(includingSchema.getTargetNamespace()))

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

public void execute()
 {
  try
  {
   super.execute();
   // Add this after if we don't have a DOM Node yet
   beginRecording(xsdSchema.getElement());
   XSDInclude xsdInclude = XSDFactory.eINSTANCE.createXSDInclude();
   xsdInclude.setSchemaLocation(""); //$NON-NLS-1$
   xsdSchema.getContents().add(findNextPositionToInsert(), xsdInclude);
   addedXSDConcreteComponent = xsdInclude;
   formatChild(xsdSchema.getElement());
  }
  finally
  {
   endRecording();
  }
 }
}

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

((XSDInclude)component).setAnnotation(xsdAnnotation);

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

public static XSDInclude createInclude(Node node)
{
 if (XSDConstants.nodeType(node) == XSDConstants.INCLUDE_ELEMENT)
 {
  XSDInclude xsdInclude = XSDFactory.eINSTANCE.createXSDInclude();
  xsdInclude.setElement((Element)node);
  return xsdInclude;
 }
 return null;
}

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

XSDInclude include = (XSDInclude) content;
if (!added.contains(include.getSchemaLocation())) {
  includes.add(include);
  added.add(include.getSchemaLocation());
  if (include.getIncorporatedSchema() != null) {
    queue.addLast(include.getIncorporatedSchema());
  } else {
    if (LOGGER.isLoggable(Level.FINE)) {

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

i.remove();
XSDRedefine xsdRedefineReplaced = XSDFactory.eINSTANCE.createXSDRedefine();
xsdRedefineReplaced.setSchemaLocation(((XSDInclude)component).getSchemaLocation());
i.add(xsdRedefineReplaced);
redefinedSchema.isReconciling = false;

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

i.setSchemaLocation("");
newChildDescriptors.add(createChildParameter(schemaContents, i));

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

XSDInclude include = (XSDInclude) content;
if (!added.contains(include.getSchemaLocation())) {
  XSDSchema incorporated = include.getIncorporatedSchema();
  if ( incorporated != null ) {
    includes.add(include);
    added.add(include.getSchemaLocation());
    queue.addLast( incorporated );    
    String msg = "Could not find included schema: " + include.getSchemaLocation(); 
    LOGGER.warning(msg);

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

i.remove();
XSDRedefine xsdRedefineReplaced = XSDFactory.eINSTANCE.createXSDRedefine();
xsdRedefineReplaced.setSchemaLocation(((XSDInclude)component).getSchemaLocation());
i.add(xsdRedefineReplaced);
redefinedSchema.isReconciling = false;

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

XSDInclude include = (XSDInclude) content;
if (!added.contains(include.getSchemaLocation())) {
  includes.add(include);
  added.add(include.getSchemaLocation());
  if (include.getIncorporatedSchema() != null) {
    queue.addLast(include.getIncorporatedSchema());
  } else {
    if (LOGGER.isLoggable(Level.FINE)) {

相关文章