Package com.sun.tools.xjc.outline

Examples of com.sun.tools.xjc.outline.ClassOutline


   
    private void dumpChildren( JClassContainer cont ) throws IOException {
        Iterator itr = cont.classes();
        while(itr.hasNext()) {
            JDefinedClass cls = (JDefinedClass)itr.next();
            ClassOutline ci = classSet.get(cls);
            if(ci!=null)
                dump(ci);
        }
    }
View Full Code Here


      parentPackage.remove(clazz);

      // And also remove the class from model.
      for (Iterator<? extends ClassOutline> iter = outline.getClasses().iterator(); iter.hasNext();) {
        ClassOutline classOutline = iter.next();
        if (classOutline.implClass == clazz) {
          outline.getModel().beans().remove(classOutline.target);
          iter.remove();
          break;
        }
View Full Code Here

      // Parametrisations like "List<String>" or "List<Serialazable>" are not considered.
      // They are substituted as is and do not require moving of classes.
      if (fieldParametrisations.get(0) instanceof JDefinedClass) {
        fieldParametrisationClass = (JDefinedClass) fieldParametrisations.get(0);

        ClassOutline fieldParametrisationClassOutline = interfaceImplementations.get(fieldParametrisationClass
                    .fullName());

        if (fieldParametrisationClassOutline != null) {
          assert fieldParametrisationClassOutline.ref == fieldParametrisationClass;
View Full Code Here

    public String getUsage() {
        return "  -Xdv                 : Initialize fields mapped from elements with their default values";
    }

    private boolean containsDefaultValue(Outline outline, FieldOutline field) {
        ClassOutline fClass = null;
        for (ClassOutline classOutline : outline.getClasses()) {
            if (classOutline.implClass == field.getRawType()
                && !classOutline.implClass.isAbstract()) {
                fClass = classOutline;
                break;
            }
        }
        if (fClass == null) {
            return false;
        }
        for (FieldOutline f : fClass.getDeclaredFields()) {
            if (f.getPropertyInfo().getSchemaComponent() instanceof XSParticle) {
                XSParticle particle = (XSParticle)f.getPropertyInfo().getSchemaComponent();
                XSTerm term = particle.getTerm();
                if (term.isElementDecl() && term.asElementDecl().getDefaultValue() != null) {
                    return true;
View Full Code Here

    public String getUsage() {
        return "  -Xdv                 : Initialize fields mapped from elements with their default values";
    }

    private boolean containsDefaultValue(Outline outline, FieldOutline field) {
        ClassOutline fClass = null;
        for (ClassOutline classOutline : outline.getClasses()) {
            if (classOutline.implClass == field.getRawType()) {
                fClass = classOutline;
                break;
            }
        }
        if (fClass == null) {
            return false;
        }
        for (FieldOutline f : fClass.getDeclaredFields()) {
            if (f.getPropertyInfo().getSchemaComponent() instanceof XSParticle) {
                XSParticle particle = (XSParticle)f.getPropertyInfo().getSchemaComponent();
                XSTerm term = particle.getTerm();
                if (term.isElementDecl() && term.asElementDecl().getDefaultValue() != null) {
                    return true;
View Full Code Here

   
    private void dumpChildren( JClassContainer cont ) throws IOException {
        Iterator itr = cont.classes();
        while(itr.hasNext()) {
            JDefinedClass cls = (JDefinedClass)itr.next();
            ClassOutline ci = classSet.get(cls);
            if(ci!=null)
                dump(ci);
        }
    }
View Full Code Here

TOP

Related Classes of com.sun.tools.xjc.outline.ClassOutline

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.