/** * 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); }
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; }
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; }
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 i = xsdFactory.createXSDInclude(); i.setSchemaLocation(""); newChildDescriptors.add(createChildParameter(schemaContents, i));
@Override public XSDConcreteComponent cloneConcreteComponent(boolean deep, boolean shareDOM) { XSDIncludeImpl clonedInclude = (XSDIncludeImpl)getXSDFactory().createXSDInclude(); clonedInclude.isReconciling = true; clonedInclude.setSchemaLocation(getSchemaLocation()); if (deep) { if (getAnnotation() != null) { clonedInclude.setAnnotation((XSDAnnotation)getAnnotation().cloneConcreteComponent(deep, shareDOM)); } } if (shareDOM && getElement() != null) { clonedInclude.setElement(getElement()); } clonedInclude.isReconciling = shareDOM; return clonedInclude; } }
directive = XSDFactory.eINSTANCE.createXSDInclude(); directive = XSDFactory.eINSTANCE.createXSDInclude();
@Override public XSDConcreteComponent cloneConcreteComponent(boolean deep, boolean shareDOM) { XSDIncludeImpl clonedInclude = (XSDIncludeImpl)getXSDFactory().createXSDInclude(); clonedInclude.isReconciling = true; clonedInclude.setSchemaLocation(getSchemaLocation()); if (deep) { if (getAnnotation() != null) { clonedInclude.setAnnotation((XSDAnnotation)getAnnotation().cloneConcreteComponent(deep, shareDOM)); } } if (shareDOM && getElement() != null) { clonedInclude.setElement(getElement()); } clonedInclude.isReconciling = shareDOM; return clonedInclude; } }