public NType getContentInMemoryType() { if(getProperty().getAdapter()==null) { NType itemType = getContentType().getType(); if(!property.isCollection()) return itemType; return NavigatorImpl.createParameterizedType(List.class,itemType); } else { return getProperty().getAdapter().customType; } }
public NType getContentInMemoryType() { if(getProperty().getAdapter()==null) { NType itemType = getContentType().getType(); if(!property.isCollection()) return itemType; return NavigatorImpl.createParameterizedType(List.class,itemType); } else { return getProperty().getAdapter().customType; } }
public NType getContentInMemoryType() { if(getProperty().getAdapter()==null) { NType itemType = getContentType().getType(); if(!property.isCollection()) return itemType; return NavigatorImpl.createParameterizedType(List.class,itemType); } else { return getProperty().getAdapter().customType; } }
public NType getContentInMemoryType() { if(getProperty().getAdapter()==null) { NType itemType = getContentType().getType(); if(!property.isCollection()) return itemType; return NavigatorImpl.createParameterizedType(List.class,itemType); } else { return getProperty().getAdapter().customType; } }
public NType getContentInMemoryType() { if(getProperty().getAdapter()==null) { NType itemType = getContentType().getType(); if(!property.isCollection()) return itemType; return NavigatorImpl.createParameterizedType(List.class,itemType); } else { return getProperty().getAdapter().customType; } }
protected JClass getDeclaredType() { final CElementPropertyInfo property = getElementInfo().getProperty(); if (property.getAdapter() == null) { @SuppressWarnings("unused") final CNonElement type = property.ref().iterator().next(); final JClass declaredType = (JClass) getType().toType( outline.parent(), Aspect.EXPOSED); return declaredType; } else { return (JClass) property.getAdapter().customType.toType(outline.parent(), Aspect.EXPOSED); } }
protected JClass getDeclaredType() { final CElementPropertyInfo property = getElementInfo().getProperty(); if (property.getAdapter() == null) { @SuppressWarnings("unused") final CNonElement type = property.ref().iterator().next(); final JClass declaredType = (JClass) getType().toType( outline.parent(), Aspect.EXPOSED); return declaredType; } else { return (JClass) property.getAdapter().customType.toType(outline.parent(), Aspect.EXPOSED); } }
protected CTypeRef toTypeRef(CElementPropertyInfo ep) { assert !target.isCollection(); CAdapter a = target.getProperty().getAdapter(); if(a!=null && ep!=null) ep.setAdapter(a); return new CTypeRef(target.getContentType(),decl); }
protected CTypeRef toTypeRef(CElementPropertyInfo ep) { assert !target.isCollection(); CAdapter a = target.getProperty().getAdapter(); if(a!=null && ep!=null) ep.setAdapter(a); return new CTypeRef(target.getContentType(),decl); }
protected CTypeRef toTypeRef(CElementPropertyInfo ep) { assert !target.isCollection(); CAdapter a = target.getProperty().getAdapter(); if(a!=null && ep!=null) ep.setAdapter(a); return new CTypeRef(target.getContentType(),decl); }
protected CTypeRef toTypeRef(CElementPropertyInfo ep) { assert !target.isCollection(); CAdapter a = target.getProperty().getAdapter(); if(a!=null && ep!=null) ep.setAdapter(a); return new CTypeRef(target.getContentType(),decl); }
protected CTypeRef toTypeRef(CElementPropertyInfo ep) { assert !target.isCollection(); CAdapter a = target.getProperty().getAdapter(); if(a!=null && ep!=null) ep.setAdapter(a); return new CTypeRef(target.getContentType(),decl); }
public final List<Property> calcDrilldown() { CElementPropertyInfo p = clazz.getProperty(); if(p.getAdapter()!=null) return null; // if adapted, avoid drill down if(p.isCollection()) // things like <xs:element name="foo" type="xs:NMTOKENS" /> is not eligible. return null; CTypeInfo typeClass = p.ref().get(0); if(!(typeClass instanceof CClassInfo)) // things like <xs:element name="foo" type="xs:string" /> is not eligible. return null; CClassInfo ci = (CClassInfo)typeClass; // if the type is abstract we can't use it. if(ci.isAbstract()) return null; // the 'all' compositor doesn't qualify if(!ci.isOrdered()) return null; return buildDrilldown(ci); } }
public final List<Property> calcDrilldown() { CElementPropertyInfo p = clazz.getProperty(); if(p.getAdapter()!=null) return null; // if adapted, avoid drill down if(p.isCollection()) // things like <xs:element name="foo" type="xs:NMTOKENS" /> is not eligible. return null; CTypeInfo typeClass = p.ref().get(0); if(!(typeClass instanceof CClassInfo)) // things like <xs:element name="foo" type="xs:string" /> is not eligible. return null; CClassInfo ci = (CClassInfo)typeClass; // if the type is abstract we can't use it. if(ci.isAbstract()) return null; // the 'all' compositor doesn't qualify if(!ci.isOrdered()) return null; return buildDrilldown(ci); } }
public final List<Property> calcDrilldown() { CElementPropertyInfo p = clazz.getProperty(); if(p.getAdapter()!=null) return null; // if adapted, avoid drill down if(p.isCollection()) // things like <xs:element name="foo" type="xs:NMTOKENS" /> is not eligible. return null; CTypeInfo typeClass = p.ref().get(0); if(!(typeClass instanceof CClassInfo)) // things like <xs:element name="foo" type="xs:string" /> is not eligible. return null; CClassInfo ci = (CClassInfo)typeClass; // if the type is abstract we can't use it. if(ci.isAbstract()) return null; // the 'all' compositor doesn't qualify if(!ci.isOrdered()) return null; return buildDrilldown(ci); } }
protected ElementMappingImpl(JAXBModelImpl parent, CElementInfo elementInfo) { super(parent,elementInfo); TypeUse t = clazz.getContentType(); if(clazz.getProperty().isCollection()) t = TypeUseFactory.makeCollection(t); CAdapter a = clazz.getProperty().getAdapter(); if(a!=null) t = TypeUseFactory.adapt(t,a); taa = new TypeAndAnnotationImpl(parent.outline,t); }
protected ElementMappingImpl(JAXBModelImpl parent, CElementInfo elementInfo) { super(parent,elementInfo); TypeUse t = clazz.getContentType(); if(clazz.getProperty().isCollection()) t = TypeUseFactory.makeCollection(t); CAdapter a = clazz.getProperty().getAdapter(); if(a!=null) t = TypeUseFactory.adapt(t,a); taa = new TypeAndAnnotationImpl(parent.outline,t); }
protected ElementMappingImpl(JAXBModelImpl parent, CElementInfo elementInfo) { super(parent,elementInfo); TypeUse t = clazz.getContentType(); if(clazz.getProperty().isCollection()) t = TypeUseFactory.makeCollection(t); CAdapter a = clazz.getProperty().getAdapter(); if(a!=null) t = TypeUseFactory.adapt(t,a); taa = new TypeAndAnnotationImpl(parent.outline,t); }
protected ElementMappingImpl(JAXBModelImpl parent, CElementInfo elementInfo) { super(parent,elementInfo); TypeUse t = clazz.getContentType(); if(clazz.getProperty().isCollection()) t = TypeUseFactory.makeCollection(t); CAdapter a = clazz.getProperty().getAdapter(); if(a!=null) t = TypeUseFactory.adapt(t,a); taa = new TypeAndAnnotationImpl(parent.outline,t); }
protected ElementMappingImpl(JAXBModelImpl parent, CElementInfo elementInfo) { super(parent,elementInfo); TypeUse t = clazz.getContentType(); if(clazz.getProperty().isCollection()) t = TypeUseFactory.makeCollection(t); CAdapter a = clazz.getProperty().getAdapter(); if(a!=null) t = TypeUseFactory.adapt(t,a); taa = new TypeAndAnnotationImpl(parent.outline,t); }