java类javax.xml.bind.annotation.XmlNsForm的实例源码

ReferencePropertyInfoImpl.java 文件源码 项目:OpenJSharp 阅读 23 收藏 0 点赞 0 评论 0
private String getEffectiveNamespaceFor(XmlElementRef r) {
    String nsUri = r.namespace();

    XmlSchema xs = reader().getPackageAnnotation( XmlSchema.class, parent.getClazz(), this );
    if(xs!=null && xs.attributeFormDefault()== XmlNsForm.QUALIFIED) {
        // JAX-RPC doesn't want the default namespace URI swapping to take effect to
        // local "unqualified" elements. UGLY.
        if(nsUri.length()==0)
            nsUri = parent.builder.defaultNsUri;
    }

    return nsUri;
}
TypeInfoSetImpl.java 文件源码 项目:OpenJSharp 阅读 28 收藏 0 点赞 0 评论 0
public final XmlNsForm getElementFormDefault(String nsUri) {
    for (ClassInfoImpl<T, C, F, M> ci : beans().values()) {
        XmlSchema xs = reader.getPackageAnnotation( XmlSchema.class, ci.getClazz(), null );
        if(xs==null)
            continue;

        if(!xs.namespace().equals(nsUri))
            continue;

        XmlNsForm xnf = xs.elementFormDefault();
        if(xnf!=XmlNsForm.UNSET)
            return xnf;
    }
    return XmlNsForm.UNSET;
}
TypeInfoSetImpl.java 文件源码 项目:OpenJSharp 阅读 32 收藏 0 点赞 0 评论 0
public final XmlNsForm getAttributeFormDefault(String nsUri) {
    for (ClassInfoImpl<T,C,F,M> ci : beans().values()) {
        XmlSchema xs = reader.getPackageAnnotation( XmlSchema.class, ci.getClazz(), null );
        if(xs==null)
            continue;

        if(!xs.namespace().equals(nsUri))
            continue;

        XmlNsForm xnf = xs.attributeFormDefault();
        if(xnf!=XmlNsForm.UNSET)
            return xnf;
    }
    return XmlNsForm.UNSET;
}
ReferencePropertyInfoImpl.java 文件源码 项目:openjdk-jdk10 阅读 25 收藏 0 点赞 0 评论 0
private String getEffectiveNamespaceFor(XmlElementRef r) {
    String nsUri = r.namespace();

    XmlSchema xs = reader().getPackageAnnotation( XmlSchema.class, parent.getClazz(), this );
    if(xs!=null && xs.attributeFormDefault()== XmlNsForm.QUALIFIED) {
        // JAX-RPC doesn't want the default namespace URI swapping to take effect to
        // local "unqualified" elements. UGLY.
        if(nsUri.length()==0)
            nsUri = parent.builder.defaultNsUri;
    }

    return nsUri;
}
TypeInfoSetImpl.java 文件源码 项目:openjdk-jdk10 阅读 24 收藏 0 点赞 0 评论 0
public final XmlNsForm getElementFormDefault(String nsUri) {
    for (ClassInfoImpl<T, C, F, M> ci : beans().values()) {
        XmlSchema xs = reader.getPackageAnnotation( XmlSchema.class, ci.getClazz(), null );
        if(xs==null)
            continue;

        if(!xs.namespace().equals(nsUri))
            continue;

        XmlNsForm xnf = xs.elementFormDefault();
        if(xnf!=XmlNsForm.UNSET)
            return xnf;
    }
    return XmlNsForm.UNSET;
}
TypeInfoSetImpl.java 文件源码 项目:openjdk-jdk10 阅读 27 收藏 0 点赞 0 评论 0
public final XmlNsForm getAttributeFormDefault(String nsUri) {
    for (ClassInfoImpl<T,C,F,M> ci : beans().values()) {
        XmlSchema xs = reader.getPackageAnnotation( XmlSchema.class, ci.getClazz(), null );
        if(xs==null)
            continue;

        if(!xs.namespace().equals(nsUri))
            continue;

        XmlNsForm xnf = xs.attributeFormDefault();
        if(xnf!=XmlNsForm.UNSET)
            return xnf;
    }
    return XmlNsForm.UNSET;
}
ReferencePropertyInfoImpl.java 文件源码 项目:openjdk9 阅读 22 收藏 0 点赞 0 评论 0
private String getEffectiveNamespaceFor(XmlElementRef r) {
    String nsUri = r.namespace();

    XmlSchema xs = reader().getPackageAnnotation( XmlSchema.class, parent.getClazz(), this );
    if(xs!=null && xs.attributeFormDefault()== XmlNsForm.QUALIFIED) {
        // JAX-RPC doesn't want the default namespace URI swapping to take effect to
        // local "unqualified" elements. UGLY.
        if(nsUri.length()==0)
            nsUri = parent.builder.defaultNsUri;
    }

    return nsUri;
}
TypeInfoSetImpl.java 文件源码 项目:openjdk9 阅读 21 收藏 0 点赞 0 评论 0
public final XmlNsForm getElementFormDefault(String nsUri) {
    for (ClassInfoImpl<T, C, F, M> ci : beans().values()) {
        XmlSchema xs = reader.getPackageAnnotation( XmlSchema.class, ci.getClazz(), null );
        if(xs==null)
            continue;

        if(!xs.namespace().equals(nsUri))
            continue;

        XmlNsForm xnf = xs.elementFormDefault();
        if(xnf!=XmlNsForm.UNSET)
            return xnf;
    }
    return XmlNsForm.UNSET;
}
TypeInfoSetImpl.java 文件源码 项目:openjdk9 阅读 26 收藏 0 点赞 0 评论 0
public final XmlNsForm getAttributeFormDefault(String nsUri) {
    for (ClassInfoImpl<T,C,F,M> ci : beans().values()) {
        XmlSchema xs = reader.getPackageAnnotation( XmlSchema.class, ci.getClazz(), null );
        if(xs==null)
            continue;

        if(!xs.namespace().equals(nsUri))
            continue;

        XmlNsForm xnf = xs.attributeFormDefault();
        if(xnf!=XmlNsForm.UNSET)
            return xnf;
    }
    return XmlNsForm.UNSET;
}
ReferencePropertyInfoImpl.java 文件源码 项目:lookaside_java-1.8.0-openjdk 阅读 25 收藏 0 点赞 0 评论 0
private String getEffectiveNamespaceFor(XmlElementRef r) {
    String nsUri = r.namespace();

    XmlSchema xs = reader().getPackageAnnotation( XmlSchema.class, parent.getClazz(), this );
    if(xs!=null && xs.attributeFormDefault()== XmlNsForm.QUALIFIED) {
        // JAX-RPC doesn't want the default namespace URI swapping to take effect to
        // local "unqualified" elements. UGLY.
        if(nsUri.length()==0)
            nsUri = parent.builder.defaultNsUri;
    }

    return nsUri;
}
TypeInfoSetImpl.java 文件源码 项目:lookaside_java-1.8.0-openjdk 阅读 31 收藏 0 点赞 0 评论 0
public final XmlNsForm getElementFormDefault(String nsUri) {
    for (ClassInfoImpl<T, C, F, M> ci : beans().values()) {
        XmlSchema xs = reader.getPackageAnnotation( XmlSchema.class, ci.getClazz(), null );
        if(xs==null)
            continue;

        if(!xs.namespace().equals(nsUri))
            continue;

        XmlNsForm xnf = xs.elementFormDefault();
        if(xnf!=XmlNsForm.UNSET)
            return xnf;
    }
    return XmlNsForm.UNSET;
}
TypeInfoSetImpl.java 文件源码 项目:lookaside_java-1.8.0-openjdk 阅读 26 收藏 0 点赞 0 评论 0
public final XmlNsForm getAttributeFormDefault(String nsUri) {
    for (ClassInfoImpl<T,C,F,M> ci : beans().values()) {
        XmlSchema xs = reader.getPackageAnnotation( XmlSchema.class, ci.getClazz(), null );
        if(xs==null)
            continue;

        if(!xs.namespace().equals(nsUri))
            continue;

        XmlNsForm xnf = xs.attributeFormDefault();
        if(xnf!=XmlNsForm.UNSET)
            return xnf;
    }
    return XmlNsForm.UNSET;
}
ReferencePropertyInfoImpl.java 文件源码 项目:infobip-open-jdk-8 阅读 25 收藏 0 点赞 0 评论 0
private String getEffectiveNamespaceFor(XmlElementRef r) {
    String nsUri = r.namespace();

    XmlSchema xs = reader().getPackageAnnotation( XmlSchema.class, parent.getClazz(), this );
    if(xs!=null && xs.attributeFormDefault()== XmlNsForm.QUALIFIED) {
        // JAX-RPC doesn't want the default namespace URI swapping to take effect to
        // local "unqualified" elements. UGLY.
        if(nsUri.length()==0)
            nsUri = parent.builder.defaultNsUri;
    }

    return nsUri;
}
TypeInfoSetImpl.java 文件源码 项目:infobip-open-jdk-8 阅读 28 收藏 0 点赞 0 评论 0
public final XmlNsForm getElementFormDefault(String nsUri) {
    for (ClassInfoImpl<T, C, F, M> ci : beans().values()) {
        XmlSchema xs = reader.getPackageAnnotation( XmlSchema.class, ci.getClazz(), null );
        if(xs==null)
            continue;

        if(!xs.namespace().equals(nsUri))
            continue;

        XmlNsForm xnf = xs.elementFormDefault();
        if(xnf!=XmlNsForm.UNSET)
            return xnf;
    }
    return XmlNsForm.UNSET;
}
TypeInfoSetImpl.java 文件源码 项目:infobip-open-jdk-8 阅读 27 收藏 0 点赞 0 评论 0
public final XmlNsForm getAttributeFormDefault(String nsUri) {
    for (ClassInfoImpl<T,C,F,M> ci : beans().values()) {
        XmlSchema xs = reader.getPackageAnnotation( XmlSchema.class, ci.getClazz(), null );
        if(xs==null)
            continue;

        if(!xs.namespace().equals(nsUri))
            continue;

        XmlNsForm xnf = xs.attributeFormDefault();
        if(xnf!=XmlNsForm.UNSET)
            return xnf;
    }
    return XmlNsForm.UNSET;
}
ReferencePropertyInfoImpl.java 文件源码 项目:cxf-plus 阅读 25 收藏 0 点赞 0 评论 0
private String getEffectiveNamespaceFor(XmlElementRef r) {
    String nsUri = r.namespace();

    XmlSchema xs = reader().getPackageAnnotation( XmlSchema.class, parent.getClazz(), this );
    if(xs!=null && xs.attributeFormDefault()== XmlNsForm.QUALIFIED) {
        // JAX-RPC doesn't want the default namespace URI swapping to take effect to
        // local "unqualified" elements. UGLY.
        if(nsUri.length()==0)
            nsUri = parent.builder.defaultNsUri;
    }

    return nsUri;
}
TypeInfoSetImpl.java 文件源码 项目:cxf-plus 阅读 32 收藏 0 点赞 0 评论 0
public final XmlNsForm getElementFormDefault(String nsUri) {
    for (ClassInfoImpl<T, C, F, M> ci : beans().values()) {
        XmlSchema xs = reader.getPackageAnnotation( XmlSchema.class, ci.getClazz(), null );
        if(xs==null)
            continue;

        if(!xs.namespace().equals(nsUri))
            continue;

        XmlNsForm xnf = xs.elementFormDefault();
        if(xnf!=XmlNsForm.UNSET)
            return xnf;
    }
    return XmlNsForm.UNSET;
}
TypeInfoSetImpl.java 文件源码 项目:cxf-plus 阅读 99 收藏 0 点赞 0 评论 0
public final XmlNsForm getAttributeFormDefault(String nsUri) {
    for (ClassInfoImpl<T,C,F,M> ci : beans().values()) {
        XmlSchema xs = reader.getPackageAnnotation( XmlSchema.class, ci.getClazz(), null );
        if(xs==null)
            continue;

        if(!xs.namespace().equals(nsUri))
            continue;

        XmlNsForm xnf = xs.attributeFormDefault();
        if(xnf!=XmlNsForm.UNSET)
            return xnf;
    }
    return XmlNsForm.UNSET;
}
PlusWrapperClassGenerator.java 文件源码 项目:cxf-plus 阅读 31 收藏 0 点赞 0 评论 0
private void generatePackageInfo(String className, String ns, Class clz) {
ClassWriter cw = createClassWriter();
      String classFileName = periodToSlashes(className);
      cw.visit(Opcodes.V1_5, Opcodes.ACC_ABSTRACT + Opcodes.ACC_INTERFACE, classFileName, null,
               "java/lang/Object", null);

      boolean q = qualified;
      SchemaInfo si = interfaceInfo.getService().getSchema(ns);
      if (si != null) {
          q = si.isElementFormQualified();
      }
      AnnotationVisitor av0 = cw.visitAnnotation("Ljavax/xml/bind/annotation/XmlSchema;", true);
      av0.visit("namespace", ns);
      av0.visitEnum("elementFormDefault",
                    getClassCode(XmlNsForm.class),
                    q ? "QUALIFIED" : "UNQUALIFIED");
      av0.visitEnd();

      if (clz.getPackage() != null && clz.getPackage().getAnnotations() != null) {
          for (Annotation ann : clz.getPackage().getAnnotations()) {
              if (ann instanceof XmlJavaTypeAdapters) {
                  av0 = cw.visitAnnotation("Ljavax/xml/bind/annotation/adapters/XmlJavaTypeAdapters;",
                                           true);
                  generateXmlJavaTypeAdapters(av0, (XmlJavaTypeAdapters)ann);
                  av0.visitEnd();
              } else if (ann instanceof XmlJavaTypeAdapter) {
                  av0 = cw.visitAnnotation("Ljavax/xml/bind/annotation/adapters/XmlJavaTypeAdapter;",
                                           true);
                  generateXmlJavaTypeAdapter(av0, (XmlJavaTypeAdapter)ann);
                  av0.visitEnd();
              }
          }
      }
      cw.visitEnd();

      loadClass(className, clz, cw.toByteArray());
  }
ReferencePropertyInfoImpl.java 文件源码 项目:OLD-OpenJDK8 阅读 26 收藏 0 点赞 0 评论 0
private String getEffectiveNamespaceFor(XmlElementRef r) {
    String nsUri = r.namespace();

    XmlSchema xs = reader().getPackageAnnotation( XmlSchema.class, parent.getClazz(), this );
    if(xs!=null && xs.attributeFormDefault()== XmlNsForm.QUALIFIED) {
        // JAX-RPC doesn't want the default namespace URI swapping to take effect to
        // local "unqualified" elements. UGLY.
        if(nsUri.length()==0)
            nsUri = parent.builder.defaultNsUri;
    }

    return nsUri;
}
TypeInfoSetImpl.java 文件源码 项目:OLD-OpenJDK8 阅读 27 收藏 0 点赞 0 评论 0
public final XmlNsForm getElementFormDefault(String nsUri) {
    for (ClassInfoImpl<T, C, F, M> ci : beans().values()) {
        XmlSchema xs = reader.getPackageAnnotation( XmlSchema.class, ci.getClazz(), null );
        if(xs==null)
            continue;

        if(!xs.namespace().equals(nsUri))
            continue;

        XmlNsForm xnf = xs.elementFormDefault();
        if(xnf!=XmlNsForm.UNSET)
            return xnf;
    }
    return XmlNsForm.UNSET;
}
TypeInfoSetImpl.java 文件源码 项目:OLD-OpenJDK8 阅读 24 收藏 0 点赞 0 评论 0
public final XmlNsForm getAttributeFormDefault(String nsUri) {
    for (ClassInfoImpl<T,C,F,M> ci : beans().values()) {
        XmlSchema xs = reader.getPackageAnnotation( XmlSchema.class, ci.getClazz(), null );
        if(xs==null)
            continue;

        if(!xs.namespace().equals(nsUri))
            continue;

        XmlNsForm xnf = xs.attributeFormDefault();
        if(xnf!=XmlNsForm.UNSET)
            return xnf;
    }
    return XmlNsForm.UNSET;
}
ReferencePropertyInfoImpl.java 文件源码 项目:openjdk-icedtea7 阅读 28 收藏 0 点赞 0 评论 0
private String getEffectiveNamespaceFor(XmlElementRef r) {
    String nsUri = r.namespace();

    XmlSchema xs = reader().getPackageAnnotation( XmlSchema.class, parent.getClazz(), this );
    if(xs!=null && xs.attributeFormDefault()== XmlNsForm.QUALIFIED) {
        // JAX-RPC doesn't want the default namespace URI swapping to take effect to
        // local "unqualified" elements. UGLY.
        if(nsUri.length()==0)
            nsUri = parent.builder.defaultNsUri;
    }

    return nsUri;
}
TypeInfoSetImpl.java 文件源码 项目:openjdk-icedtea7 阅读 24 收藏 0 点赞 0 评论 0
public final XmlNsForm getElementFormDefault(String nsUri) {
    for (ClassInfoImpl<T, C, F, M> ci : beans().values()) {
        XmlSchema xs = reader.getPackageAnnotation( XmlSchema.class, ci.getClazz(), null );
        if(xs==null)
            continue;

        if(!xs.namespace().equals(nsUri))
            continue;

        XmlNsForm xnf = xs.elementFormDefault();
        if(xnf!=XmlNsForm.UNSET)
            return xnf;
    }
    return XmlNsForm.UNSET;
}
TypeInfoSetImpl.java 文件源码 项目:openjdk-icedtea7 阅读 28 收藏 0 点赞 0 评论 0
public final XmlNsForm getAttributeFormDefault(String nsUri) {
    for (ClassInfoImpl<T,C,F,M> ci : beans().values()) {
        XmlSchema xs = reader.getPackageAnnotation( XmlSchema.class, ci.getClazz(), null );
        if(xs==null)
            continue;

        if(!xs.namespace().equals(nsUri))
            continue;

        XmlNsForm xnf = xs.attributeFormDefault();
        if(xnf!=XmlNsForm.UNSET)
            return xnf;
    }
    return XmlNsForm.UNSET;
}
XmlSchemaQuick.java 文件源码 项目:OpenJSharp 阅读 49 收藏 0 点赞 0 评论 0
public XmlNsForm elementFormDefault() {
    return core.elementFormDefault();
}
XmlSchemaQuick.java 文件源码 项目:OpenJSharp 阅读 27 收藏 0 点赞 0 评论 0
public XmlNsForm attributeFormDefault() {
    return core.attributeFormDefault();
}
Model.java 文件源码 项目:OpenJSharp 阅读 59 收藏 0 点赞 0 评论 0
public XmlNsForm getElementFormDefault(String nsUri) {
    throw new UnsupportedOperationException();
}
Model.java 文件源码 项目:OpenJSharp 阅读 32 收藏 0 点赞 0 评论 0
public XmlNsForm getAttributeFormDefault(String nsUri) {
    throw new UnsupportedOperationException();
}
Model.java 文件源码 项目:openjdk-jdk10 阅读 84 收藏 0 点赞 0 评论 0
public XmlNsForm getElementFormDefault(String nsUri) {
    throw new UnsupportedOperationException();
}


问题


面经


文章

微信
公众号

扫码关注公众号