public String substitutionHeadName() { return core.substitutionHeadName(); }
/** * Called after all the {@link TypeInfo}s are collected into the {@link #owner}. */ /*package*/ void link() { // substitution head if(anno.substitutionHeadName().length()!=0) { QName name = new QName( anno.substitutionHeadNamespace(), anno.substitutionHeadName() ); substitutionHead = owner.getElementInfo(null,name); if(substitutionHead==null) { builder.reportError( new IllegalAnnotationException(Messages.NON_EXISTENT_ELEMENT_MAPPING.format( name.getNamespaceURI(),name.getLocalPart()), anno)); // recover by ignoring this substitution declaration } else substitutionHead.addSubstitutionMember(this); } else substitutionHead = null; super.link(); }
/** * Called after all the {@link TypeInfo}s are collected into the {@link #owner}. */ /*package*/ void link() { // substitution head if(anno.substitutionHeadName().length()!=0) { QName name = new QName( anno.substitutionHeadNamespace(), anno.substitutionHeadName() ); substitutionHead = owner.getElementInfo(null,name); if(substitutionHead==null) { builder.reportError( new IllegalAnnotationException(Messages.NON_EXISTENT_ELEMENT_MAPPING.format( name.getNamespaceURI(),name.getLocalPart()), anno)); // recover by ignoring this substitution declaration } else substitutionHead.addSubstitutionMember(this); } else substitutionHead = null; super.link(); }
public String substitutionHeadName() { return core.substitutionHeadName(); }
/** * Called after all the {@link TypeInfo}s are collected into the {@link #owner}. */ /*package*/ void link() { // substitution head if(anno.substitutionHeadName().length()!=0) { QName name = new QName( anno.substitutionHeadNamespace(), anno.substitutionHeadName() ); substitutionHead = owner.getElementInfo(null,name); if(substitutionHead==null) { builder.reportError( new IllegalAnnotationException(Messages.NON_EXISTENT_ELEMENT_MAPPING.format( name.getNamespaceURI(),name.getLocalPart()), anno)); // recover by ignoring this substitution declaration } else substitutionHead.addSubstitutionMember(this); } else substitutionHead = null; super.link(); }
public String substitutionHeadName() { return core.substitutionHeadName(); }
/** * Called after all the {@link TypeInfo}s are collected into the {@link #owner}. */ /*package*/ void link() { // substitution head if(anno.substitutionHeadName().length()!=0) { QName name = new QName( anno.substitutionHeadNamespace(), anno.substitutionHeadName() ); substitutionHead = owner.getElementInfo(null,name); if(substitutionHead==null) { builder.reportError( new IllegalAnnotationException(Messages.NON_EXISTENT_ELEMENT_MAPPING.format( name.getNamespaceURI(),name.getLocalPart()), anno)); // recover by ignoring this substitution declaration } else substitutionHead.addSubstitutionMember(this); } else substitutionHead = null; super.link(); }
public String substitutionHeadName() { return core.substitutionHeadName(); }
localName = elementDecl.name(); scopeClass = elementDecl.scope(); if (!elementDecl.substitutionHeadName().equals(EMPTY_STRING)) { String subHeadLocal = elementDecl.substitutionHeadName(); String subHeadNamespace = elementDecl.substitutionHeadNamespace(); if (subHeadNamespace.equals(XMLProcessor.DEFAULT)) {
/** * The name of the substitution head. * * @return The name of the substitution head. */ public String getSubstitutionHeadName() { String shn = elementDecl.substitutionHeadName(); if ("".equals(shn)) { shn = null; } return shn; }
localName = elementDecl.name(); scopeClass = elementDecl.scope(); if (!elementDecl.substitutionHeadName().equals(EMPTY_STRING)) { String subHeadLocal = elementDecl.substitutionHeadName(); String subHeadNamespace = elementDecl.substitutionHeadNamespace(); if (subHeadNamespace.equals(XMLProcessor.DEFAULT)) {
/** * The name of the substitution head. * * @return The name of the substitution head. */ public String getSubstitutionHeadName() { String shn = elementDecl.substitutionHeadName(); if ("".equals(shn)) { shn = null; } return shn; }
/** * The name of the substitution head. * * @return The name of the substitution head. */ public String getSubstitutionHeadName() { String shn = elementDecl.substitutionHeadName(); if ("".equals(shn)) { shn = null; } return shn; }
private Field lookupSubstitutionUncached(Class beanClass, Method elementMethodInObjectFactory) { XmlElementDecl xmlElementDecl = elementMethodInObjectFactory.getAnnotation(XmlElementDecl.class); if (xmlElementDecl == null) { return null; } final String substitutionHeadName = xmlElementDecl.substitutionHeadName(); return findField(beanClass, field -> { XmlElementRef xmlElementRef = field.getAnnotation(XmlElementRef.class); return xmlElementRef != null && xmlElementRef.name().equals(substitutionHeadName); }); }