@Override public void link() { // make sure we've computed constants getConstants(); 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(); }
/** * Called after all the {@link com.sun.xml.bind.v2.model.core.TypeInfo}s are collected into the {@link #owner}. */ @Override /*package*/ void link() { getProperties(); // make sure properties!=null // property name collision cehck Map<String,PropertyInfoImpl> names = new HashMap<String,PropertyInfoImpl>(); for( PropertyInfoImpl<T,C,F,M> p : properties ) { p.link(); PropertyInfoImpl old = names.put(p.getName(),p); if(old!=null) { builder.reportError(new IllegalAnnotationException( Messages.PROPERTY_COLLISION.format(p.getName()), p, old )); } } super.link(); }
@Override public void link() { // make sure we've computed constants getConstants(); 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(); }
/** * Called after all the {@link com.sun.xml.bind.v2.model.core.TypeInfo}s are collected into the {@link #owner}. */ @Override /*package*/ void link() { getProperties(); // make sure properties!=null // property name collision cehck Map<String,PropertyInfoImpl> names = new HashMap<String,PropertyInfoImpl>(); for( PropertyInfoImpl<T,C,F,M> p : properties ) { p.link(); PropertyInfoImpl old = names.put(p.getName(),p); if(old!=null) { builder.reportError(new IllegalAnnotationException( Messages.PROPERTY_COLLISION.format(p.getName()), p, old )); } } super.link(); }
@Override public void link() { // make sure we've computed constants getConstants(); super.link(); }
@Override public void link() { // make sure we've computed constants getConstants(); 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(); }
/** * 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}. */ @Override /*package*/ void link() { getProperties(); // make sure properties!=null // property name collision cehck Map<String,PropertyInfoImpl> names = new HashMap<String,PropertyInfoImpl>(); for( PropertyInfoImpl<T,C,F,M> p : properties ) { p.link(); PropertyInfoImpl old = names.put(p.getName(),p); if(old!=null) { builder.reportError(new IllegalAnnotationException( Messages.PROPERTY_COLLISION.format(p.getName()), p, old )); } } super.link(); }
/** * Called after all the {@link com.sun.xml.bind.v2.model.core.TypeInfo}s are collected into the {@link #owner}. */ @Override /*package*/ void link() { getProperties(); // make sure properties!=null // property name collision cehck Map<String,PropertyInfoImpl> names = new HashMap<String,PropertyInfoImpl>(); for( PropertyInfoImpl<T,C,F,M> p : properties ) { p.link(); PropertyInfoImpl old = names.put(p.getName(),p); if(old!=null) { builder.reportError(new IllegalAnnotationException( Messages.PROPERTY_COLLISION.format(p.getName()), p, old )); } } super.link(); }