type.setTargetNamespace(featureType.getName().getNamespaceURI()); type.setName(featureType.getTypeName() + "Type"); type.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL); type.setBaseTypeDefinition(schemaIndex.getTypeDefinition(gml.qName("AbstractFeatureType")));
definition.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL);
public void execute() { super.execute(); try { beginRecording(complexType.getElement()); if (derivation.equals(XSDConstants.EXTENSION_ELEMENT_TAG)) { complexType.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL); } else if (derivation.equals(XSDConstants.RESTRICTION_ELEMENT_TAG)) { complexType.setDerivationMethod(XSDDerivationMethod.RESTRICTION_LITERAL); } } finally { endRecording(); } } }
protected XSDComplexTypeDefinition createExtendedComplexTypeDefinition(XSDSchema schema, String name, String extension) { XSDComplexTypeDefinition complexType = XSDFactory.eINSTANCE.createXSDComplexTypeDefinition(); complexType.setName(name); complexType.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL); complexType.setBaseTypeDefinition(schema.resolveTypeDefinition(extension)); return complexType; }
protected XSDComplexTypeDefinition createExtendedComplexTypeDefinition(XSDSchema schema, String name, String extension) { XSDComplexTypeDefinition complexType = XSDFactory.eINSTANCE.createXSDComplexTypeDefinition(); complexType.setName(name); complexType.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL); complexType.setBaseTypeDefinition(schema.resolveTypeDefinition(extension)); return complexType; }
complexType.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL);
complexType.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL);
xsdComplexTypeDefinition.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL); xsdComplexTypeDefinition.setBaseTypeDefinition(baseType);
xsdComplexTypeDefinition.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL); xsdComplexTypeDefinition.setBaseTypeDefinition(baseType);
xsdComplexTypeDefinition.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL); EClass superClass = superClasses.get(0);
xsdComplexTypeDefinition.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL); EClass superClass = superClasses.get(0);
simpleRecursiveComplexTypeDefinition./*{@link XSDComplexTypeDefinition#getBlock */getBlock/*}*/().add(/*{@link */XSDProhibitedSubstitutions/*}*/.ALL_LITERAL); simpleRecursiveComplexTypeDefinition./*{@link XSDComplexTypeDefinition#getLexicalFinal */getLexicalFinal/*}*/().add(/*{@link */XSDComplexFinal/*}*/.ALL_LITERAL); simpleRecursiveComplexTypeDefinition./*{@link XSDComplexTypeDefinition#setDerivationMethod */setDerivationMethod/*}*/(/*{@link */XSDDerivationMethod/*}*/.RESTRICTION_LITERAL); simpleRecursiveComplexTypeDefinition./*{@link XSDComplexTypeDefinition#setMixed */setMixed/*}*/(true);
complexType.setName(name + "Type"); complexType.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL); complexType.setBaseTypeDefinition( schema.resolveComplexTypeDefinition(GML.NAMESPACE, "AbstractFeatureType"));
simpleRecursiveComplexTypeDefinition./*{@link XSDComplexTypeDefinition#getBlock */getBlock/*}*/().add(/*{@link */XSDProhibitedSubstitutions/*}*/.ALL_LITERAL); simpleRecursiveComplexTypeDefinition./*{@link XSDComplexTypeDefinition#getLexicalFinal */getLexicalFinal/*}*/().add(/*{@link */XSDComplexFinal/*}*/.ALL_LITERAL); simpleRecursiveComplexTypeDefinition./*{@link XSDComplexTypeDefinition#setDerivationMethod */setDerivationMethod/*}*/(/*{@link */XSDDerivationMethod/*}*/.RESTRICTION_LITERAL); simpleRecursiveComplexTypeDefinition./*{@link XSDComplexTypeDefinition#setMixed */setMixed/*}*/(true);
simpleContentComplexTypeDefinition./*{@link XSDComplexTypeDefinition#setDerivationMethod */setDerivationMethod/*}*/(/*{@link */XSDDerivationMethod/*}*/.EXTENSION_LITERAL);
complexType.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL); formatChild(complexType.getElement());
simpleContentComplexTypeDefinition./*{@link XSDComplexTypeDefinition#setDerivationMethod */setDerivationMethod/*}*/(/*{@link */XSDDerivationMethod/*}*/.EXTENSION_LITERAL);
xsdComplexType.setName(complexType.getName().getLocalPart() + "Type"); xsdComplexType.setDerivationMethod(XSDDerivationMethod.EXTENSION_LITERAL); xsdComplexType.setBaseTypeDefinition( resolveTypeInSchema(schema, new NameImpl(gmlNamespace, baseType)));
xsdComplexTypeDefinition.setDerivationMethod(xsdSimpleTypeDefinition.getContents().isEmpty() ? XSDDerivationMethod.EXTENSION_LITERAL : XSDDerivationMethod.RESTRICTION_LITERAL); xsdComplexTypeDefinition.setContent(xsdSimpleTypeDefinition);
xsdComplexTypeDefinition.setDerivationMethod(xsdSimpleTypeDefinition.getContents().isEmpty() ? XSDDerivationMethod.EXTENSION_LITERAL : XSDDerivationMethod.RESTRICTION_LITERAL); xsdComplexTypeDefinition.setContent(xsdSimpleTypeDefinition);