public CPropertyInfo createElementPropertyInfo(String propertyName, XSComponent source, TypeUse propertyType, QName propertyQName, CollectionMode collectionMode, CCustomizations customizations) { final CNonElement propertyTypeInfo = propertyType.getInfo(); final CElementPropertyInfo propertyInfo = new CElementPropertyInfo( propertyName, collectionMode, propertyTypeInfo.idUse(), propertyTypeInfo.getExpectedMimeType(), source, customizations, null, true); final CTypeRef typeRef = new CTypeRef(propertyTypeInfo, propertyQName, propertyTypeInfo.getTypeName(), false, null); propertyInfo.setAdapter(propertyType.getAdapterUse()); propertyInfo.getTypes().add(typeRef); return propertyInfo; }
public CPropertyInfo createElementPropertyInfo(String propertyName, XSComponent source, TypeUse propertyType, QName propertyQName, CollectionMode collectionMode, CCustomizations customizations) { final CNonElement propertyTypeInfo = propertyType.getInfo(); final CElementPropertyInfo propertyInfo = new CElementPropertyInfo( propertyName, collectionMode, propertyTypeInfo.idUse(), propertyTypeInfo.getExpectedMimeType(), source, customizations, null, true); final CTypeRef typeRef = new CTypeRef(propertyTypeInfo, propertyQName, propertyTypeInfo.getTypeName(), false, null); propertyInfo.setAdapter(propertyType.getAdapterUse()); propertyInfo.getTypes().add(typeRef); return propertyInfo; }
public CPropertyInfo onElement( CElementPropertyInfo propertyInfo) { final CElementPropertyInfo elementPropertyInfo = new CElementPropertyInfo( propertyInfo.getName(true), propertyInfo.isCollection() ? CollectionMode.REPEATED_ELEMENT : CollectionMode.NOT_REPEATED, propertyInfo.id(), propertyInfo .getExpectedMimeType(), propertyInfo.getSchemaComponent(), new CCustomizations(), (Locator) null, false); elementPropertyInfo.getTypes().addAll( context.getGetTypes().getTypes(context, propertyInfo)); return elementPropertyInfo; }
public CPropertyInfo onElement( CElementPropertyInfo propertyInfo) { final CElementPropertyInfo elementPropertyInfo = new CElementPropertyInfo( propertyInfo.getName(true), propertyInfo.isCollection() ? CollectionMode.REPEATED_ELEMENT : CollectionMode.NOT_REPEATED, propertyInfo.id(), propertyInfo .getExpectedMimeType(), propertyInfo.getSchemaComponent(), new CCustomizations(), (Locator) null, false); elementPropertyInfo.getTypes().addAll( context.getGetTypes().getTypes(context, propertyInfo)); return elementPropertyInfo; }
final CElementPropertyInfo itemPropertyInfo = new CElementPropertyInfo( propertyInfo.getName(true) + ((CClassInfo) propertyInfo.parent()).model
private Void onRepeated(DPattern p,boolean optional) { RawTypeSet rts = RawTypeSetBuilder.build(compiler, p, optional? Multiplicity.STAR : Multiplicity.PLUS); if(rts.canBeTypeRefs==RawTypeSet.Mode.SHOULD_BE_TYPEREF) { CElementPropertyInfo prop = new CElementPropertyInfo( calcName(p),REPEATED_ELEMENT,ID.NONE,null,null,null,p.getLocation(),!optional); rts.addTo(prop); clazz.addProperty(prop); } else { CReferencePropertyInfo prop = new CReferencePropertyInfo( calcName(p),true,!optional,false/*TODO*/,null,null,p.getLocation(), false, false, false); rts.addTo(prop); clazz.addProperty(prop); } return null; }
private Void onRepeated(DPattern p,boolean optional) { RawTypeSet rts = RawTypeSetBuilder.build(compiler, p, optional? Multiplicity.STAR : Multiplicity.PLUS); if(rts.canBeTypeRefs==RawTypeSet.Mode.SHOULD_BE_TYPEREF) { CElementPropertyInfo prop = new CElementPropertyInfo( calcName(p),REPEATED_ELEMENT,ID.NONE,null,null,null,p.getLocation(),!optional); rts.addTo(prop); clazz.addProperty(prop); } else { CReferencePropertyInfo prop = new CReferencePropertyInfo( calcName(p),true,!optional,false/*TODO*/,null,null,p.getLocation(), false, false, false); rts.addTo(prop); clazz.addProperty(prop); } return null; }
private Void onRepeated(DPattern p,boolean optional) { RawTypeSet rts = RawTypeSetBuilder.build(compiler, p, optional? Multiplicity.STAR : Multiplicity.PLUS); if(rts.canBeTypeRefs==RawTypeSet.Mode.SHOULD_BE_TYPEREF) { CElementPropertyInfo prop = new CElementPropertyInfo( calcName(p),REPEATED_ELEMENT,ID.NONE,null,null,null,p.getLocation(),!optional); rts.addTo(prop); clazz.addProperty(prop); } else { CReferencePropertyInfo prop = new CReferencePropertyInfo( calcName(p),true,!optional,false/*TODO*/,null,null,p.getLocation(), false, false, false); rts.addTo(prop); clazz.addProperty(prop); } return null; }
private Void onRepeated(DPattern p,boolean optional) { RawTypeSet rts = RawTypeSetBuilder.build(compiler, p, optional? Multiplicity.STAR : Multiplicity.PLUS); if(rts.canBeTypeRefs==RawTypeSet.Mode.SHOULD_BE_TYPEREF) { CElementPropertyInfo prop = new CElementPropertyInfo( calcName(p),REPEATED_ELEMENT,ID.NONE,null,null,null,p.getLocation(),!optional); rts.addTo(prop); clazz.addProperty(prop); } else { CReferencePropertyInfo prop = new CReferencePropertyInfo( calcName(p),true,!optional,false/*TODO*/,null,null,p.getLocation(), false, false, false); rts.addTo(prop); clazz.addProperty(prop); } return null; }
private Void onRepeated(DPattern p,boolean optional) { RawTypeSet rts = RawTypeSetBuilder.build(compiler, p, optional? Multiplicity.STAR : Multiplicity.PLUS); if(rts.canBeTypeRefs==RawTypeSet.Mode.SHOULD_BE_TYPEREF) { CElementPropertyInfo prop = new CElementPropertyInfo( calcName(p),REPEATED_ELEMENT,ID.NONE,null,null,null,p.getLocation(),!optional); rts.addTo(prop); clazz.addProperty(prop); } else { CReferencePropertyInfo prop = new CReferencePropertyInfo( calcName(p),true,!optional,false/*TODO*/,null,null,p.getLocation(), false, false, false); rts.addTo(prop); clazz.addProperty(prop); } return null; }
new CElementPropertyInfo( name, types.getCollectionMode(), types.id(),
new CElementPropertyInfo( name, types.getCollectionMode(), types.id(),
new CElementPropertyInfo( name, types.getCollectionMode(), types.id(),
new CElementPropertyInfo( name, types.getCollectionMode(), types.id(),
new CElementPropertyInfo( name, types.getCollectionMode(), types.id(),
public void initContentType(TypeUse contentType, @Nullable XSElementDecl source, XmlString defaultValue) { assert this.property==null; // must not be called twice this.property = new CElementPropertyInfo("Value", contentType.isCollection()?REPEATED_VALUE:NOT_REPEATED, contentType.idUse(), contentType.getExpectedMimeType(), source,null,getLocator(),true); this.property.setAdapter(contentType.getAdapterUse()); BIInlineBinaryData.handle(source,property); property.getTypes().add(new CTypeRef(contentType.getInfo(),tagName,CTypeRef.getSimpleTypeName(source), true,defaultValue)); this.type = NavigatorImpl.createParameterizedType( NavigatorImpl.theInstance.ref(JAXBElement.class), getContentInMemoryType() ); BIFactoryMethod factoryMethod = Ring.get(BGMBuilder.class).getBindInfo(source).get(BIFactoryMethod.class); if(factoryMethod!=null) { factoryMethod.markAsAcknowledged(); this.squeezedName = factoryMethod.name; } }
public void initContentType(TypeUse contentType, @Nullable XSElementDecl source, XmlString defaultValue) { assert this.property==null; // must not be called twice this.property = new CElementPropertyInfo("Value", contentType.isCollection()?REPEATED_VALUE:NOT_REPEATED, contentType.idUse(), contentType.getExpectedMimeType(), source,null,getLocator(),true); this.property.setAdapter(contentType.getAdapterUse()); BIInlineBinaryData.handle(source,property); property.getTypes().add(new CTypeRef(contentType.getInfo(),tagName,CTypeRef.getSimpleTypeName(source), true,defaultValue)); this.type = NavigatorImpl.createParameterizedType( NavigatorImpl.theInstance.ref(JAXBElement.class), getContentInMemoryType() ); BIFactoryMethod factoryMethod = Ring.get(BGMBuilder.class).getBindInfo(source).get(BIFactoryMethod.class); if(factoryMethod!=null) { factoryMethod.markAsAcknowledged(); this.squeezedName = factoryMethod.name; } }
public void initContentType(TypeUse contentType, @Nullable XSElementDecl source, XmlString defaultValue) { assert this.property==null; // must not be called twice this.property = new CElementPropertyInfo("Value", contentType.isCollection()?REPEATED_VALUE:NOT_REPEATED, contentType.idUse(), contentType.getExpectedMimeType(), source,null,getLocator(),true); this.property.setAdapter(contentType.getAdapterUse()); BIInlineBinaryData.handle(source,property); property.getTypes().add(new CTypeRef(contentType.getInfo(),tagName,CTypeRef.getSimpleTypeName(source), true,defaultValue)); this.type = NavigatorImpl.createParameterizedType( NavigatorImpl.theInstance.ref(JAXBElement.class), getContentInMemoryType() ); BIFactoryMethod factoryMethod = Ring.get(BGMBuilder.class).getBindInfo(source).get(BIFactoryMethod.class); if(factoryMethod!=null) { factoryMethod.markAsAcknowledged(); this.squeezedName = factoryMethod.name; } }
public void initContentType(TypeUse contentType, @Nullable XSElementDecl source, XmlString defaultValue) { assert this.property==null; // must not be called twice this.property = new CElementPropertyInfo("Value", contentType.isCollection()?REPEATED_VALUE:NOT_REPEATED, contentType.idUse(), contentType.getExpectedMimeType(), source,null,getLocator(),true); this.property.setAdapter(contentType.getAdapterUse()); BIInlineBinaryData.handle(source,property); property.getTypes().add(new CTypeRef(contentType.getInfo(),tagName,CTypeRef.getSimpleTypeName(source), true,defaultValue)); this.type = NavigatorImpl.createParameterizedType( NavigatorImpl.theInstance.ref(JAXBElement.class), getContentInMemoryType() ); BIFactoryMethod factoryMethod = Ring.get(BGMBuilder.class).getBindInfo(source).get(BIFactoryMethod.class); if(factoryMethod!=null) { factoryMethod.markAsAcknowledged(); this.squeezedName = factoryMethod.name; } }
public void initContentType(TypeUse contentType, @Nullable XSElementDecl source, XmlString defaultValue) { assert this.property==null; // must not be called twice this.property = new CElementPropertyInfo("Value", contentType.isCollection()?REPEATED_VALUE:NOT_REPEATED, contentType.idUse(), contentType.getExpectedMimeType(), source,null,getLocator(),true); this.property.setAdapter(contentType.getAdapterUse()); BIInlineBinaryData.handle(source,property); property.getTypes().add(new CTypeRef(contentType.getInfo(),tagName,CTypeRef.getSimpleTypeName(source), true,defaultValue)); this.type = NavigatorImpl.createParameterizedType( NavigatorImpl.theInstance.ref(JAXBElement.class), getContentInMemoryType() ); BIFactoryMethod factoryMethod = Ring.get(BGMBuilder.class).getBindInfo(source).get(BIFactoryMethod.class); if(factoryMethod!=null) { factoryMethod.markAsAcknowledged(); this.squeezedName = factoryMethod.name; } }