javax.xml.bind.annotation.XmlAnyElement.lax()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(6.2k)|赞(0)|评价(0)|浏览(86)

本文整理了Java中javax.xml.bind.annotation.XmlAnyElement.lax()方法的一些代码示例,展示了XmlAnyElement.lax()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlAnyElement.lax()方法的具体详情如下:
包路径:javax.xml.bind.annotation.XmlAnyElement
类名称:XmlAnyElement
方法名:lax

XmlAnyElement.lax介绍

暂无

代码示例

代码示例来源:origin: com.sun.xml.bind/jaxb-impl

public ReferencePropertyInfoImpl(
  ClassInfoImpl<T,C,F,M> classInfo,
  PropertySeed<T,C,F,M> seed) {
  super(classInfo, seed);
  isMixed = seed.readAnnotation(XmlMixed.class) != null;
  XmlAnyElement xae = seed.readAnnotation(XmlAnyElement.class);
  if(xae==null) {
    wildcard = null;
    domHandler = null;
  } else {
    wildcard = xae.lax()?WildcardMode.LAX:WildcardMode.SKIP;
    domHandler = nav().asDecl(reader().getClassValue(xae,"value"));
  }
}

代码示例来源:origin: org.glassfish.jaxb/jaxb-runtime

public ReferencePropertyInfoImpl(
  ClassInfoImpl<T,C,F,M> classInfo,
  PropertySeed<T,C,F,M> seed) {
  super(classInfo, seed);
  isMixed = seed.readAnnotation(XmlMixed.class) != null;
  XmlAnyElement xae = seed.readAnnotation(XmlAnyElement.class);
  if(xae==null) {
    wildcard = null;
    domHandler = null;
  } else {
    wildcard = xae.lax()?WildcardMode.LAX:WildcardMode.SKIP;
    domHandler = nav().asDecl(reader().getClassValue(xae,"value"));
  }
}

代码示例来源:origin: stoicflame/enunciate

public AnyElement(javax.lang.model.element.Element delegate, TypeDefinition typeDef, EnunciateJaxbContext context) {
 super(delegate, context.getContext().getProcessingEnvironment());
 XmlAnyElement info = delegate.getAnnotation(XmlAnyElement.class);
 if (info == null) {
  throw new EnunciateException("No @XmlAnyElement annotation.");
 }
 
 this.lax = info.lax();
 ArrayList<ElementRef> elementRefs = new ArrayList<ElementRef>();
 XmlElementRefs elementRefInfo = delegate.getAnnotation(XmlElementRefs.class);
 if (elementRefInfo != null && elementRefInfo.value() != null) {
  for (XmlElementRef elementRef : elementRefInfo.value()) {
   elementRefs.add(new ElementRef(delegate, typeDef, elementRef, context));
  }
 }
 refs = Collections.unmodifiableList(elementRefs);
 this.facets.addAll(Facet.gatherFacets(delegate, context.getContext()));
 this.facets.addAll(typeDef.getFacets());
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-core

public AnyElement(MemberDeclaration delegate, TypeDefinition typeDef) {
 super(delegate);
 XmlAnyElement info = delegate.getAnnotation(XmlAnyElement.class);
 if (info == null) {
  throw new IllegalStateException("No @XmlAnyElement annotation.");
 }
 
 this.lax = info.lax();
 ArrayList<ElementRef> elementRefs = new ArrayList<ElementRef>();
 XmlElementRefs elementRefInfo = delegate.getAnnotation(XmlElementRefs.class);
 if (elementRefInfo != null && elementRefInfo.value() != null) {
  for (XmlElementRef elementRef : elementRefInfo.value()) {
   elementRefs.add(new ElementRef(delegate, typeDef, elementRef));
  }
 }
 refs = Collections.<ElementRef>unmodifiableList(elementRefs);
 this.facets.addAll(Facet.gatherFacets(delegate));
 this.facets.addAll(typeDef.getFacets());
}

代码示例来源:origin: com.webcohesion.enunciate/enunciate-jaxb

public AnyElement(javax.lang.model.element.Element delegate, TypeDefinition typeDef, EnunciateJaxbContext context) {
 super(delegate, context.getContext().getProcessingEnvironment());
 XmlAnyElement info = delegate.getAnnotation(XmlAnyElement.class);
 if (info == null) {
  throw new EnunciateException("No @XmlAnyElement annotation.");
 }
 
 this.lax = info.lax();
 ArrayList<ElementRef> elementRefs = new ArrayList<ElementRef>();
 XmlElementRefs elementRefInfo = delegate.getAnnotation(XmlElementRefs.class);
 if (elementRefInfo != null && elementRefInfo.value() != null) {
  for (XmlElementRef elementRef : elementRefInfo.value()) {
   elementRefs.add(new ElementRef(delegate, typeDef, elementRef, context));
  }
 }
 refs = Collections.unmodifiableList(elementRefs);
 this.facets.addAll(Facet.gatherFacets(delegate, context.getContext()));
 this.facets.addAll(typeDef.getFacets());
}

代码示例来源:origin: apache/servicemix-bundles

public ReferencePropertyInfoImpl(
  ClassInfoImpl<T,C,F,M> classInfo,
  PropertySeed<T,C,F,M> seed) {
  super(classInfo, seed);
  isMixed = seed.readAnnotation(XmlMixed.class) != null;
  XmlAnyElement xae = seed.readAnnotation(XmlAnyElement.class);
  if(xae==null) {
    wildcard = null;
    domHandler = null;
  } else {
    wildcard = xae.lax()?WildcardMode.LAX:WildcardMode.SKIP;
    domHandler = nav().asDecl(reader().getClassValue(xae,"value"));
  }
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl

public ReferencePropertyInfoImpl(
  ClassInfoImpl<T,C,F,M> classInfo,
  PropertySeed<T,C,F,M> seed) {
  super(classInfo, seed);
  isMixed = seed.readAnnotation(XmlMixed.class) != null;
  XmlAnyElement xae = seed.readAnnotation(XmlAnyElement.class);
  if(xae==null) {
    wildcard = null;
    domHandler = null;
  } else {
    wildcard = xae.lax()?WildcardMode.LAX:WildcardMode.SKIP;
    domHandler = nav().asDecl(reader().getClassValue(xae,"value"));
  }
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.moxy

property.setDomHandlerClassName(anyElement.value().getName());
    property.setLax(anyElement.lax());
    info.setAnyElementPropertyName(propertyName);
    property.setDomHandlerClassName(anyElement.value().getName());
  property.setLax(anyElement.lax());
  info.setAnyElementPropertyName(propertyName);
} else if (helper.isAnnotationPresent(javaHasAnnotations, org.eclipse.persistence.oxm.annotations.XmlTransformation.class) || helper.isAnnotationPresent(javaHasAnnotations, org.eclipse.persistence.oxm.annotations.XmlReadTransformer.class) || helper.isAnnotationPresent(javaHasAnnotations, org.eclipse.persistence.oxm.annotations.XmlWriteTransformer.class) || helper.isAnnotationPresent(javaHasAnnotations, XmlWriteTransformers.class)) {

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

property.setDomHandlerClassName(anyElement.value().getName());
    property.setLax(anyElement.lax());
    info.setAnyElementPropertyName(propertyName);
    property.setDomHandlerClassName(anyElement.value().getName());
  property.setLax(anyElement.lax());
  info.setAnyElementPropertyName(propertyName);
} else if (helper.isAnnotationPresent(javaHasAnnotations, org.eclipse.persistence.oxm.annotations.XmlTransformation.class) || helper.isAnnotationPresent(javaHasAnnotations, org.eclipse.persistence.oxm.annotations.XmlReadTransformer.class) || helper.isAnnotationPresent(javaHasAnnotations, org.eclipse.persistence.oxm.annotations.XmlWriteTransformer.class) || helper.isAnnotationPresent(javaHasAnnotations, XmlWriteTransformers.class)) {

相关文章

微信公众号

最新文章

更多