protected void processClassOutline(ClassOutline classOutline) { final JDefinedClass theClass = classOutline.implClass; @SuppressWarnings("unused") final JMethod copyTo$copyTo = generateCopyTo$CopyTo(classOutline, theClass); @SuppressWarnings("unused") final JMethod copyable$copyTo = generateCopyable$CopyTo(classOutline, theClass); if (!classOutline.target.isAbstract()) { @SuppressWarnings("unused") final JMethod createCopy = generate$createCopy(classOutline, theClass); } }
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); } }
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 Result createClasses(Outline outline, CClassInfo bean) { JClassContainer parent = outline.getContainer( bean.parent(), Aspect.EXPOSED ); JDefinedClass impl = outline.getClassFactory().createClass( parent, JMod.PUBLIC|(parent.isPackage()?0:JMod.STATIC)|(bean.isAbstract()?JMod.ABSTRACT:0), bean.shortName, bean.getLocator() ); impl.annotate2(XmlAccessorTypeWriter.class).value(XmlAccessType.FIELD); return new Result(impl,impl); }
protected Result createClasses(Outline outline, CClassInfo bean) { JClassContainer parent = outline.getContainer( bean.parent(), Aspect.EXPOSED ); JDefinedClass impl = outline.getClassFactory().createClass( parent, JMod.PUBLIC|(parent.isPackage()?0:JMod.STATIC)|(bean.isAbstract()?JMod.ABSTRACT:0), bean.shortName, bean.getLocator() ); impl.annotate2(XmlAccessorTypeWriter.class).value(XmlAccessType.FIELD); return new Result(impl,impl); }
protected Result createClasses(Outline outline, CClassInfo bean) { JClassContainer parent = outline.getContainer( bean.parent(), Aspect.EXPOSED ); JDefinedClass impl = outline.getClassFactory().createClass( parent, JMod.PUBLIC|(parent.isPackage()?0:JMod.STATIC)|(bean.isAbstract()?JMod.ABSTRACT:0), bean.shortName, bean.getLocator() ); impl.annotate2(XmlAccessorTypeWriter.class).value(XmlAccessType.FIELD); return new Result(impl,impl); }
protected Result createClasses(Outline outline, CClassInfo bean) { JClassContainer parent = outline.getContainer( bean.parent(), Aspect.EXPOSED ); JDefinedClass impl = outline.getClassFactory().createClass( parent, JMod.PUBLIC|(parent.isPackage()?0:JMod.STATIC)|(bean.isAbstract()?JMod.ABSTRACT:0), bean.shortName, bean.getLocator() ); impl.annotate2(XmlAccessorTypeWriter.class).value(XmlAccessType.FIELD); return new Result(impl,impl); }
protected Result createClasses(Outline outline, CClassInfo bean) { JClassContainer parent = outline.getContainer( bean.parent(), Aspect.EXPOSED ); JDefinedClass impl = outline.getClassFactory().createClass( parent, JMod.PUBLIC|(parent.isPackage()?0:JMod.STATIC)|(bean.isAbstract()?JMod.ABSTRACT:0), bean.shortName, bean.getLocator() ); impl.annotate2(XmlAccessorTypeWriter.class).value(XmlAccessType.FIELD); return new Result(impl,impl); }
protected Result createClasses( Outline outline, CClassInfo bean ) { JClassContainer parent = outline.getContainer( bean.parent(), Aspect.EXPOSED ); JDefinedClass intf = outline.getClassFactory().createInterface( parent, bean.shortName, bean.getLocator() ); parent = outline.getContainer(bean.parent(), Aspect.IMPLEMENTATION); JDefinedClass impl = outline.getClassFactory().createClass( parent, JMod.PUBLIC|(parent.isPackage()?0:JMod.STATIC)|(bean.isAbstract()?JMod.ABSTRACT:0), bean.shortName+"Impl", bean.getLocator() ); impl.annotate2(XmlAccessorTypeWriter.class).value(XmlAccessType.FIELD); impl._implements(intf); return new Result(intf,impl); }
protected Result createClasses( Outline outline, CClassInfo bean ) { JClassContainer parent = outline.getContainer( bean.parent(), Aspect.EXPOSED ); JDefinedClass intf = outline.getClassFactory().createInterface( parent, bean.shortName, bean.getLocator() ); parent = outline.getContainer(bean.parent(), Aspect.IMPLEMENTATION); JDefinedClass impl = outline.getClassFactory().createClass( parent, JMod.PUBLIC|(parent.isPackage()?0:JMod.STATIC)|(bean.isAbstract()?JMod.ABSTRACT:0), bean.shortName+"Impl", bean.getLocator() ); impl.annotate2(XmlAccessorTypeWriter.class).value(XmlAccessType.FIELD); impl._implements(intf); return new Result(intf,impl); }
protected Result createClasses( Outline outline, CClassInfo bean ) { JClassContainer parent = outline.getContainer( bean.parent(), Aspect.EXPOSED ); JDefinedClass intf = outline.getClassFactory().createInterface( parent, bean.shortName, bean.getLocator() ); parent = outline.getContainer(bean.parent(), Aspect.IMPLEMENTATION); JDefinedClass impl = outline.getClassFactory().createClass( parent, JMod.PUBLIC|(parent.isPackage()?0:JMod.STATIC)|(bean.isAbstract()?JMod.ABSTRACT:0), bean.shortName+"Impl", bean.getLocator() ); impl.annotate2(XmlAccessorTypeWriter.class).value(XmlAccessType.FIELD); impl._implements(intf); return new Result(intf,impl); }
protected Result createClasses( Outline outline, CClassInfo bean ) { JClassContainer parent = outline.getContainer( bean.parent(), Aspect.EXPOSED ); JDefinedClass intf = outline.getClassFactory().createInterface( parent, bean.shortName, bean.getLocator() ); parent = outline.getContainer(bean.parent(), Aspect.IMPLEMENTATION); JDefinedClass impl = outline.getClassFactory().createClass( parent, JMod.PUBLIC|(parent.isPackage()?0:JMod.STATIC)|(bean.isAbstract()?JMod.ABSTRACT:0), bean.shortName+"Impl", bean.getLocator() ); impl.annotate2(XmlAccessorTypeWriter.class).value(XmlAccessType.FIELD); impl._implements(intf); return new Result(intf,impl); }
protected Result createClasses( Outline outline, CClassInfo bean ) { JClassContainer parent = outline.getContainer( bean.parent(), Aspect.EXPOSED ); JDefinedClass intf = outline.getClassFactory().createInterface( parent, bean.shortName, bean.getLocator() ); parent = outline.getContainer(bean.parent(), Aspect.IMPLEMENTATION); JDefinedClass impl = outline.getClassFactory().createClass( parent, JMod.PUBLIC|(parent.isPackage()?0:JMod.STATIC)|(bean.isAbstract()?JMod.ABSTRACT:0), bean.shortName+"Impl", bean.getLocator() ); impl.annotate2(XmlAccessorTypeWriter.class).value(XmlAccessType.FIELD); impl._implements(intf); return new Result(intf,impl); }
if(!cc.target.isAbstract()) { JMethod m = objectFactory.method( JMod.PUBLIC, sigType, "create" + cc.target.getSqueezedName() );
if(!cc.target.isAbstract()) { JMethod m = objectFactory.method( JMod.PUBLIC, sigType, "create" + cc.target.getSqueezedName() );
if(!cc.target.isAbstract()) { JMethod m = objectFactory.method( JMod.PUBLIC, sigType, "create" + cc.target.getSqueezedName() );
if (!classOutline.target.isAbstract()) { copy = body.decl(JMod.FINAL, theClass, "copy",