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)) {
file = findSchemaFile( include.getSchemaLocation() ); if( include.getSchema() != null ) { namespaces.add(include.getSchema().getTargetNamespace()); logger.log( Level.SEVERE, "Could not find: " + include.getSchemaLocation() + " to copy." );
file = findSchemaFile( include.getSchemaLocation() ); logger.log( Level.SEVERE, "Could not find: " + include.getSchemaLocation() + " to copy." );
public XSDSchema included(XSDInclude xsdInclude) XSDSchema includingSchema = xsdInclude.getSchema(); xsdInclude.setResolvedSchema(this); getReferencingDirectives().add(xsdInclude); if (getTargetNamespace() == null || getTargetNamespace().equals(includingSchema.getTargetNamespace()))
/** * 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); }
((XSDInclude)component).setAnnotation(xsdAnnotation);
xsdAnnotation = xsdComp.getAnnotation(); if (createIfNotExist && xsdAnnotation == null) xsdComp.setAnnotation(xsdAnnotation);
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; }
@Override public String getText(Object object) { XSDInclude xsdInclude = ((XSDInclude)object); String result = xsdInclude.getSchemaLocation(); return result == null ? "" : result; }
public XSDSchema included(XSDInclude xsdInclude) XSDSchema includingSchema = xsdInclude.getSchema(); xsdInclude.setResolvedSchema(this); getReferencingDirectives().add(xsdInclude); if (getTargetNamespace() == null || getTargetNamespace().equals(includingSchema.getTargetNamespace()))
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(); } } }
((XSDInclude)component).setAnnotation(xsdAnnotation);
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; }
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)) {
i.remove(); XSDRedefine xsdRedefineReplaced = XSDFactory.eINSTANCE.createXSDRedefine(); xsdRedefineReplaced.setSchemaLocation(((XSDInclude)component).getSchemaLocation()); i.add(xsdRedefineReplaced); redefinedSchema.isReconciling = false;
i.setSchemaLocation(""); newChildDescriptors.add(createChildParameter(schemaContents, i));
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);
i.remove(); XSDRedefine xsdRedefineReplaced = XSDFactory.eINSTANCE.createXSDRedefine(); xsdRedefineReplaced.setSchemaLocation(((XSDInclude)component).getSchemaLocation()); i.add(xsdRedefineReplaced); redefinedSchema.isReconciling = false;
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)) {