public SingleTypePropertyInfoImpl(ClassInfoImpl<T,C,F,M> classInfo, PropertySeed<T,C,F,M> seed) { super(classInfo, seed); if(this instanceof RuntimePropertyInfo) { Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor(); if(getAdapter()!=null && !isCollection()) // adapter for a single-value property is handled by accessor. // adapter for a collection property is handled by lister. rawAcc = rawAcc.adapt(((RuntimePropertyInfo)this).getAdapter()); this.acc = rawAcc; } else this.acc = null; }
public NonElement<T,C> getTarget() { if(type==null) { assert parent.builder!=null : "this method must be called during the build stage"; type = parent.builder.getTypeInfo(getIndividualType(),this); } return type; }
public List<? extends NonElement<T,C>> ref() { return Collections.singletonList(getTarget()); }
public void link() { super.link(); if (!(NonElement.ANYTYPE_NAME.equals(type.getTypeName()) || type.isSimpleType() || id()==ID.IDREF)) { parent.builder.reportError(new IllegalAnnotationException( Messages.SIMPLE_TYPE_IS_REQUIRED.format(), seed )); } if(!isCollection() && seed.hasAnnotation(XmlList.class)) { parent.builder.reportError(new IllegalAnnotationException( Messages.XMLLIST_ON_SINGLE_PROPERTY.format(), this )); } }
public void link() { super.link(); if (!(NonElement.ANYTYPE_NAME.equals(type.getTypeName()) || type.isSimpleType() || id()==ID.IDREF)) { parent.builder.reportError(new IllegalAnnotationException( Messages.SIMPLE_TYPE_IS_REQUIRED.format(), seed )); } if(!isCollection() && seed.hasAnnotation(XmlList.class)) { parent.builder.reportError(new IllegalAnnotationException( Messages.XMLLIST_ON_SINGLE_PROPERTY.format(), this )); } }
public SingleTypePropertyInfoImpl(ClassInfoImpl<T,C,F,M> classInfo, PropertySeed<T,C,F,M> seed) { super(classInfo, seed); if(this instanceof RuntimePropertyInfo) { Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor(); if(getAdapter()!=null && !isCollection()) // adapter for a single-value property is handled by accessor. // adapter for a collection property is handled by lister. rawAcc = rawAcc.adapt(((RuntimePropertyInfo)this).getAdapter()); this.acc = rawAcc; } else this.acc = null; }
public void link() { super.link(); if (!(NonElement.ANYTYPE_NAME.equals(type.getTypeName()) || type.isSimpleType() || id()==ID.IDREF)) { parent.builder.reportError(new IllegalAnnotationException( Messages.SIMPLE_TYPE_IS_REQUIRED.format(), seed )); } if(!isCollection() && seed.hasAnnotation(XmlList.class)) { parent.builder.reportError(new IllegalAnnotationException( Messages.XMLLIST_ON_SINGLE_PROPERTY.format(), this )); } }
public NonElement<T,C> getTarget() { if(type==null) { assert parent.builder!=null : "this method must be called during the build stage"; type = parent.builder.getTypeInfo(getIndividualType(),this); } return type; }
public List<? extends NonElement<T,C>> ref() { return Collections.singletonList(getTarget()); }
public SingleTypePropertyInfoImpl(ClassInfoImpl<T,C,F,M> classInfo, PropertySeed<T,C,F,M> seed) { super(classInfo, seed); if(this instanceof RuntimePropertyInfo) { Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor(); if(getAdapter()!=null && !isCollection()) // adapter for a single-value property is handled by accessor. // adapter for a collection property is handled by lister. rawAcc = rawAcc.adapt(((RuntimePropertyInfo)this).getAdapter()); this.acc = rawAcc; } else this.acc = null; }
public void link() { super.link(); if (!(NonElement.ANYTYPE_NAME.equals(type.getTypeName()) || type.isSimpleType() || id()==ID.IDREF)) { parent.builder.reportError(new IllegalAnnotationException( Messages.SIMPLE_TYPE_IS_REQUIRED.format(), seed )); } if(!isCollection() && seed.hasAnnotation(XmlList.class)) { parent.builder.reportError(new IllegalAnnotationException( Messages.XMLLIST_ON_SINGLE_PROPERTY.format(), this )); } }
public NonElement<T,C> getTarget() { if(type==null) { assert parent.builder!=null : "this method must be called during the build stage"; type = parent.builder.getTypeInfo(getIndividualType(),this); } return type; }
public List<? extends NonElement<T,C>> ref() { return Collections.singletonList(getTarget()); }
public SingleTypePropertyInfoImpl(ClassInfoImpl<T,C,F,M> classInfo, PropertySeed<T,C,F,M> seed) { super(classInfo, seed); if(this instanceof RuntimePropertyInfo) { Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor(); if(getAdapter()!=null && !isCollection()) // adapter for a single-value property is handled by accessor. // adapter for a collection property is handled by lister. rawAcc = rawAcc.adapt(((RuntimePropertyInfo)this).getAdapter()); this.acc = rawAcc; } else this.acc = null; }
public NonElement<T,C> getTarget() { if(type==null) { assert parent.builder!=null : "this method must be called during the build stage"; type = parent.builder.getTypeInfo(getIndividualType(),this); } return type; }
public List<? extends NonElement<T,C>> ref() { return Collections.singletonList(getTarget()); }