< prev index next >

src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/reflect/Accessor.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 54,70 **** import org.xml.sax.SAXException; /** * Accesses a particular property of a bean. ! * <p/> ! * <p/> * This interface encapsulates the access to the actual data store. * The intention is to generate implementations for a particular bean * and a property to improve the performance. ! * <p/> ! * <p/> * Accessor can be used as a receiver. Upon receiving an object * it sets that to the field. * * @author Kohsuke Kawaguchi (kk@kohsuke.org) * @see Accessor.FieldReflection --- 54,70 ---- import org.xml.sax.SAXException; /** * Accesses a particular property of a bean. ! * <p> ! * <p> * This interface encapsulates the access to the actual data store. * The intention is to generate implementations for a particular bean * and a property to improve the performance. ! * <p> ! * <p> * Accessor can be used as a receiver. Upon receiving an object * it sets that to the field. * * @author Kohsuke Kawaguchi (kk@kohsuke.org) * @see Accessor.FieldReflection
*** 117,146 **** public abstract void set(BeanT bean, ValueT value) throws AccessorException; /** * Sets the value without adapting the value. ! * <p/> * This ugly entry point is only used by JAX-WS. * See {@link JAXBRIContext#getElementPropertyAccessor} */ public Object getUnadapted(BeanT bean) throws AccessorException { return get(bean); } /** * Returns true if this accessor wraps an adapter. ! * <p/> * This method needs to be used with care, but it helps some optimization. */ public boolean isAdapted() { return false; } /** * Sets the value without adapting the value. ! * <p/> * This ugly entry point is only used by JAX-WS. * See {@link JAXBRIContext#getElementPropertyAccessor} */ public void setUnadapted(BeanT bean, Object value) throws AccessorException { set(bean, (ValueT) value); --- 117,146 ---- public abstract void set(BeanT bean, ValueT value) throws AccessorException; /** * Sets the value without adapting the value. ! * <p> * This ugly entry point is only used by JAX-WS. * See {@link JAXBRIContext#getElementPropertyAccessor} */ public Object getUnadapted(BeanT bean) throws AccessorException { return get(bean); } /** * Returns true if this accessor wraps an adapter. ! * <p> * This method needs to be used with care, but it helps some optimization. */ public boolean isAdapted() { return false; } /** * Sets the value without adapting the value. ! * <p> * This ugly entry point is only used by JAX-WS. * See {@link JAXBRIContext#getElementPropertyAccessor} */ public void setUnadapted(BeanT bean, Object value) throws AccessorException { set(bean, (ValueT) value);
*** 392,403 **** } } /** * A version of {@link GetterSetterReflection} that doesn't have any setter. ! * <p/> ! * <p/> * This provides a user-friendly error message. */ public static class GetterOnlyReflection<BeanT, ValueT> extends GetterSetterReflection<BeanT, ValueT> { public GetterOnlyReflection(Method getter) { super(getter, null); --- 392,403 ---- } } /** * A version of {@link GetterSetterReflection} that doesn't have any setter. ! * <p> ! * <p> * This provides a user-friendly error message. */ public static class GetterOnlyReflection<BeanT, ValueT> extends GetterSetterReflection<BeanT, ValueT> { public GetterOnlyReflection(Method getter) { super(getter, null);
*** 409,420 **** } } /** * A version of {@link GetterSetterReflection} thaat doesn't have any getter. ! * <p/> ! * <p/> * This provides a user-friendly error message. */ public static class SetterOnlyReflection<BeanT, ValueT> extends GetterSetterReflection<BeanT, ValueT> { public SetterOnlyReflection(Method setter) { super(null, setter); --- 409,420 ---- } } /** * A version of {@link GetterSetterReflection} thaat doesn't have any getter. ! * <p> ! * <p> * This provides a user-friendly error message. */ public static class SetterOnlyReflection<BeanT, ValueT> extends GetterSetterReflection<BeanT, ValueT> { public SetterOnlyReflection(Method setter) { super(null, setter);
< prev index next >