public String getName() { return core.getName(); }
public final String getName() { return seed.getName(); }
private QName calcXmlName(String uri,String local) { // compute the default TODO.checkSpec(); if(local.length()==0 || local.equals("##default")) local = seed.getName(); if(uri.equals("##default")) { XmlSchema xs = reader().getPackageAnnotation( XmlSchema.class, parent.getClazz(), this ); // JAX-RPC doesn't want the default namespace URI swapping to take effect to // local "unqualified" elements. UGLY. if(xs!=null) { switch(xs.elementFormDefault()) { case QUALIFIED: QName typeName = parent.getTypeName(); if(typeName!=null) uri = typeName.getNamespaceURI(); else uri = xs.namespace(); if(uri.length()==0) uri = parent.builder.defaultNsUri; break; case UNQUALIFIED: case UNSET: uri = ""; } } else { uri = ""; } } return new QName(uri.intern(),local.intern()); }
public final String getName() { return seed.getName(); }
public String getName() { return core.getName(); }
public ERPropertyInfoImpl(ClassInfoImpl<TypeT, ClassDeclT, FieldT, MethodT> classInfo, PropertySeed<TypeT, ClassDeclT, FieldT, MethodT> propertySeed) { super(classInfo, propertySeed); XmlElementWrapper e = seed.readAnnotation(XmlElementWrapper.class); boolean nil = false; boolean required = false; if(!isCollection()) { xmlName = null; if(e!=null) classInfo.builder.reportError(new IllegalAnnotationException( Messages.XML_ELEMENT_WRAPPER_ON_NON_COLLECTION.format( nav().getClassName(parent.getClazz())+'.'+seed.getName()), e )); } else { if(e!=null) { xmlName = calcXmlName(e); nil = e.nillable(); required = e.required(); } else xmlName = null; } wrapperNillable = nil; wrapperRequired = required; }
parent.builder.reportError(new IllegalAnnotationException( Messages.MUTUALLY_EXCLUSIVE_ANNOTATIONS.format( nav().getClassName(parent.getClazz())+'#'+seed.getName(), xe.annotationType().getName(), xes.annotationType().getName()), xe, xes ));
nav().getClassName(getClazz())+'#'+seed.getName(), err.get(0).annotationType().getName(), err.get(1).annotationType().getName()), err.get(0), err.get(1) ));
parent.builder.reportError(new IllegalAnnotationException( Messages.MUTUALLY_EXCLUSIVE_ANNOTATIONS.format( nav().getClassName(parent.getClazz())+'#'+seed.getName(), ref.annotationType().getName(), refs.annotationType().getName()), ref, refs )); parent.builder.reportError(new IllegalAnnotationException( Messages.MUTUALLY_EXCLUSIVE_ANNOTATIONS.format( nav().getClassName(parent.getClazz())+'#'+seed.getName(), ref.annotationType().getName(), refs.annotationType().getName()), ref, refs ));
private QName calcXmlName(String uri,String local) { // compute the default TODO.checkSpec(); if(local.length()==0 || local.equals("##default")) local = seed.getName(); if(uri.equals("##default")) { XmlSchema xs = reader().getPackageAnnotation( XmlSchema.class, parent.getClazz(), this ); // JAX-RPC doesn't want the default namespace URI swapping to take effect to // local "unqualified" elements. UGLY. if(xs!=null) { switch(xs.elementFormDefault()) { case QUALIFIED: QName typeName = parent.getTypeName(); if(typeName!=null) uri = typeName.getNamespaceURI(); else uri = xs.namespace(); if(uri.length()==0) uri = parent.builder.defaultNsUri; break; case UNQUALIFIED: case UNSET: uri = ""; } } else { uri = ""; } } return new QName(uri.intern(),local.intern()); }
public final String getName() { return seed.getName(); }
public String getName() { return core.getName(); }
public String getName() { return core.getName(); }
public final String getName() { return seed.getName(); }
public ERPropertyInfoImpl(ClassInfoImpl<TypeT, ClassDeclT, FieldT, MethodT> classInfo, PropertySeed<TypeT, ClassDeclT, FieldT, MethodT> propertySeed) { super(classInfo, propertySeed); XmlElementWrapper e = seed.readAnnotation(XmlElementWrapper.class); boolean nil = false; boolean required = false; if(!isCollection()) { xmlName = null; if(e!=null) classInfo.builder.reportError(new IllegalAnnotationException( Messages.XML_ELEMENT_WRAPPER_ON_NON_COLLECTION.format( nav().getClassName(parent.getClazz())+'.'+seed.getName()), e )); } else { if(e!=null) { xmlName = calcXmlName(e); nil = e.nillable(); required = e.required(); } else xmlName = null; } wrapperNillable = nil; wrapperRequired = required; }
parent.builder.reportError(new IllegalAnnotationException( Messages.MUTUALLY_EXCLUSIVE_ANNOTATIONS.format( nav().getClassName(parent.getClazz())+'#'+seed.getName(), xe.annotationType().getName(), xes.annotationType().getName()), xe, xes ));
nav().getClassName(getClazz())+'#'+seed.getName(), err.get(0).annotationType().getName(), err.get(1).annotationType().getName()), err.get(0), err.get(1) ));
parent.builder.reportError(new IllegalAnnotationException( Messages.MUTUALLY_EXCLUSIVE_ANNOTATIONS.format( nav().getClassName(parent.getClazz())+'#'+seed.getName(), ref.annotationType().getName(), refs.annotationType().getName()), ref, refs )); parent.builder.reportError(new IllegalAnnotationException( Messages.MUTUALLY_EXCLUSIVE_ANNOTATIONS.format( nav().getClassName(parent.getClazz())+'#'+seed.getName(), ref.annotationType().getName(), refs.annotationType().getName()), ref, refs ));
public ERPropertyInfoImpl(ClassInfoImpl<TypeT, ClassDeclT, FieldT, MethodT> classInfo, PropertySeed<TypeT, ClassDeclT, FieldT, MethodT> propertySeed) { super(classInfo, propertySeed); XmlElementWrapper e = seed.readAnnotation(XmlElementWrapper.class); boolean nil = false; boolean required = false; if(!isCollection()) { xmlName = null; if(e!=null) classInfo.builder.reportError(new IllegalAnnotationException( Messages.XML_ELEMENT_WRAPPER_ON_NON_COLLECTION.format( nav().getClassName(parent.getClazz())+'.'+seed.getName()), e )); } else { if(e!=null) { xmlName = calcXmlName(e); nil = e.nillable(); required = e.required(); } else xmlName = null; } wrapperNillable = nil; wrapperRequired = required; }
public ERPropertyInfoImpl(ClassInfoImpl<TypeT, ClassDeclT, FieldT, MethodT> classInfo, PropertySeed<TypeT, ClassDeclT, FieldT, MethodT> propertySeed) { super(classInfo, propertySeed); XmlElementWrapper e = seed.readAnnotation(XmlElementWrapper.class); boolean nil = false; boolean required = false; if(!isCollection()) { xmlName = null; if(e!=null) classInfo.builder.reportError(new IllegalAnnotationException( Messages.XML_ELEMENT_WRAPPER_ON_NON_COLLECTION.format( nav().getClassName(parent.getClazz())+'.'+seed.getName()), e )); } else { if(e!=null) { xmlName = calcXmlName(e); nil = e.nillable(); required = e.required(); } else xmlName = null; } wrapperNillable = nil; wrapperRequired = required; }