schema.setAnnotationElements(annotationElements); schema.setUsings(usings).setEntityTypes(entityTypes).setComplexTypes(complexTypes).setAssociations(associations) .setEntityContainers(entityContainers); return schema;
schema.setAnnotationElements(annotationElements); schema.setUsings(usings).setEntityTypes(entityTypes).setComplexTypes(complexTypes).setAssociations(associations) .setEntityContainers(entityContainers); return schema;
schema.setAnnotationElements(annotationElements); schema.setUsings(usings).setEntityTypes(entityTypes).setComplexTypes(complexTypes).setAssociations(associations) .setEntityContainers(entityContainers); return schema;
public Schema build() { Schema s = new Schema(); s.setUsings(usings); s.setEntityTypes(entityTypes); s.setComplexTypes(complexTypes); s.setAssociations(new ArrayList<Association>(name2Associations.values())); s.setEntityContainers(entityContainers); s.setAnnotationAttributes(annotationAttributes); s.setAnnotationElements(annotationElements); s.setNamespace(namespace); return s; } }
public Schema build() { Schema s = new Schema(); s.setUsings(usings); s.setEntityTypes(entityTypes); s.setComplexTypes(complexTypes); s.setAssociations(new ArrayList<Association>(name2Associations.values())); s.setEntityContainers(entityContainers); s.setAnnotationAttributes(annotationAttributes); s.setAnnotationElements(annotationElements); s.setNamespace(namespace); return s; } }
public Schema build() { Schema s = new Schema(); s.setUsings(usings); s.setEntityTypes(entityTypes); s.setComplexTypes(complexTypes); s.setAssociations(new ArrayList<Association>(name2Associations.values())); s.setEntityContainers(entityContainers); s.setAnnotationAttributes(annotationAttributes); s.setAnnotationElements(annotationElements); s.setNamespace(namespace); return s; } }
private void includeComplexType(Schema targetSchema, IServiceInfo service, ComplexType sourceType) throws ODataException { List<ComplexType> types = targetSchema.getComplexTypes(); if (types != null) { for (ComplexType type : types) { if (type.getName().equals(sourceType.getName())) { throw new ODataException("complex type " + sourceType.getName() + " already defined"); } } } else { types = new ArrayList<ComplexType>(); } ComplexType newType = clone(sourceType); if (newType.getProperties() != null) { for (Property property : newType.getProperties()) { if (property instanceof ComplexProperty) { ((ComplexProperty) property).setType(new FullQualifiedName( targetSchema.getNamespace(), ((ComplexProperty) property).getType().getName())); } } } types.add(newType); targetSchema.setComplexTypes(types); }
schema.setComplexTypes(existingComplexTypes);
schema.setComplexTypes(existingComplexTypes);