Tabnine Logo
JDefinedClass.annotate2
Code IndexAdd Tabnine to your IDE (free)

How to use
annotate2
method
in
com.sun.codemodel.JDefinedClass

Best Java code snippets using com.sun.codemodel.JDefinedClass.annotate2 (Showing top 20 results out of 315)

origin: org.glassfish.metro/webservices-tools

objectFactory.annotate2(XmlRegistryWriter.class);
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc

objectFactory.annotate2(XmlRegistryWriter.class);
origin: sun-jaxb/jaxb-xjc

objectFactory.annotate2(XmlRegistryWriter.class);
origin: apache/servicemix-bundles

objectFactory.annotate2(XmlRegistryWriter.class);
origin: org.andromda.thirdparty.jaxb2_commons/jaxb-xjc

objectFactory.annotate2(XmlRegistryWriter.class);
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc

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);
}
origin: org.glassfish.metro/webservices-tools

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);
}
origin: sun-jaxb/jaxb-xjc

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);
}
origin: org.andromda.thirdparty.jaxb2_commons/jaxb-xjc

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);
}
origin: apache/servicemix-bundles

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);
}
origin: org.glassfish.metro/webservices-tools

XmlTypeWriter xtw = cc.implClass.annotate2(XmlTypeWriter.class);
writeTypeName(cc.target.getTypeName(), xtw, mostUsedNamespaceURI);
    XmlSeeAlsoWriter saw = cc.implClass.annotate2(XmlSeeAlsoWriter.class);
    while (subclasses.hasNext()) {
      CClassInfo s = subclasses.next();
  XmlRootElementWriter xrew = cc.implClass.annotate2(XmlRootElementWriter.class);
  xrew.name(localPart);
  if (!namespaceURI.equals(mostUsedNamespaceURI)) // only generate if necessary
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc

XmlTypeWriter xtw = cc.implClass.annotate2(XmlTypeWriter.class);
writeTypeName(cc.target.getTypeName(), xtw, mostUsedNamespaceURI);
    XmlSeeAlsoWriter saw = cc.implClass.annotate2(XmlSeeAlsoWriter.class);
    while (subclasses.hasNext()) {
      CClassInfo s = subclasses.next();
  XmlRootElementWriter xrew = cc.implClass.annotate2(XmlRootElementWriter.class);
  xrew.name(localPart);
  if (!namespaceURI.equals(mostUsedNamespaceURI)) // only generate if necessary
origin: apache/servicemix-bundles

XmlTypeWriter xtw = cc.implClass.annotate2(XmlTypeWriter.class);
writeTypeName(cc.target.getTypeName(), xtw, mostUsedNamespaceURI);
    XmlSeeAlsoWriter saw = cc.implClass.annotate2(XmlSeeAlsoWriter.class);
    while (subclasses.hasNext()) {
      CClassInfo s = subclasses.next();
  XmlRootElementWriter xrew = cc.implClass.annotate2(XmlRootElementWriter.class);
  xrew.name(localPart);
  if (!namespaceURI.equals(mostUsedNamespaceURI)) // only generate if necessary
origin: sun-jaxb/jaxb-xjc

XmlTypeWriter xtw = cc.implClass.annotate2(XmlTypeWriter.class);
writeTypeName(cc.target.getTypeName(), xtw, mostUsedNamespaceURI);
    XmlSeeAlsoWriter saw = cc.implClass.annotate2(XmlSeeAlsoWriter.class);
    while (subclasses.hasNext()) {
      CClassInfo s = subclasses.next();
  XmlRootElementWriter xrew = cc.implClass.annotate2(XmlRootElementWriter.class);
  xrew.name(localPart);
  if(!namespaceURI.equals(mostUsedNamespaceURI)) // only generate if necessary
origin: org.andromda.thirdparty.jaxb2_commons/jaxb-xjc

XmlTypeWriter xtw = cc.implClass.annotate2(XmlTypeWriter.class);
writeTypeName(cc.target.getTypeName(), xtw, mostUsedNamespaceURI);
    XmlSeeAlsoWriter saw = cc.implClass.annotate2(XmlSeeAlsoWriter.class);
    while (subclasses.hasNext()) {
      CClassInfo s = subclasses.next();
  XmlRootElementWriter xrew = cc.implClass.annotate2(XmlRootElementWriter.class);
  xrew.name(localPart);
  if(!namespaceURI.equals(mostUsedNamespaceURI)) // only generate if necessary
origin: org.glassfish.metro/webservices-tools

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);
}
origin: apache/servicemix-bundles

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);
}
origin: sun-jaxb/jaxb-xjc

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);
}
origin: org.andromda.thirdparty.jaxb2_commons/jaxb-xjc

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);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc

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);
}
com.sun.codemodelJDefinedClassannotate2

Popular methods of JDefinedClass

  • method
  • _extends
  • field
  • _implements
  • name
    JClass name accessor. For example, for java.util.List, this method returns "List""
  • constructor
    Adds a constructor to this class.
  • fields
    Returns all the fields declred in this class. The returned Map is a read-only live view.
  • annotate
    Adding ability to annotate a class
  • fullName
    Gets the fully qualified name of this class.
  • methods
  • owner
  • javadoc
    Creates, if necessary, and returns the class javadoc for this JDefinedClass
  • owner,
  • javadoc,
  • _class,
  • getMethod,
  • _package,
  • dotclass,
  • enumConstant,
  • staticInvoke,
  • staticRef,
  • init

Popular in Java

  • Finding current android device location
  • putExtra (Intent)
  • addToBackStack (FragmentTransaction)
  • requestLocationUpdates (LocationManager)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Reference (javax.naming)
  • Join (org.hibernate.mapping)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now