this.readOnly = readOnly;
}
- public Object getValue(ELContext context, Object base, Object property)
+ @Override
+ public Object getValue(ELContext context, Object base, Object property)
throws NullPointerException, PropertyNotFoundException, ELException {
if (context == null) {
throw new NullPointerException();
return null;
}
- public Class<?> getType(ELContext context, Object base, Object property)
+ @Override
+ public Class<?> getType(ELContext context, Object base, Object property)
throws NullPointerException, PropertyNotFoundException, ELException {
if (context == null) {
throw new NullPointerException();
return null;
}
- public void setValue(ELContext context, Object base, Object property,
+ @Override
+ public void setValue(ELContext context, Object base, Object property,
Object value) throws NullPointerException,
PropertyNotFoundException, PropertyNotWritableException,
ELException {
}
}
- public boolean isReadOnly(ELContext context, Object base, Object property)
+ @Override
+ public boolean isReadOnly(ELContext context, Object base, Object property)
throws NullPointerException, PropertyNotFoundException, ELException {
if (context == null) {
throw new NullPointerException();
return this.readOnly;
}
- public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base) {
+ @Override
+ public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base) {
if (base != null && base.getClass().isArray()) {
FeatureDescriptor[] descs = new FeatureDescriptor[Array.getLength(base)];
for (int i = 0; i < descs.length; i++) {
return null;
}
- public Class<?> getCommonPropertyType(ELContext context, Object base) {
+ @Override
+ public Class<?> getCommonPropertyType(ELContext context, Object base) {
if (base != null && base.getClass().isArray()) {
return Integer.class;
}
this.readOnly = readOnly;
}
- public Object getValue(ELContext context, Object base, Object property)
+ @Override
+ public Object getValue(ELContext context, Object base, Object property)
throws NullPointerException, PropertyNotFoundException, ELException {
if (context == null) {
throw new NullPointerException();
}
}
- public Class<?> getType(ELContext context, Object base, Object property)
+ @Override
+ public Class<?> getType(ELContext context, Object base, Object property)
throws NullPointerException, PropertyNotFoundException, ELException {
if (context == null) {
throw new NullPointerException();
return this.property(context, base, property).getPropertyType();
}
- public void setValue(ELContext context, Object base, Object property,
+ @Override
+ public void setValue(ELContext context, Object base, Object property,
Object value) throws NullPointerException,
PropertyNotFoundException, PropertyNotWritableException,
ELException {
}
}
- public boolean isReadOnly(ELContext context, Object base, Object property)
+ @Override
+ public boolean isReadOnly(ELContext context, Object base, Object property)
throws NullPointerException, PropertyNotFoundException, ELException {
if (context == null) {
throw new NullPointerException();
|| this.property(context, base, property).isReadOnly();
}
- public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base) {
+ @Override
+ public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base) {
if (context == null) {
throw new NullPointerException();
}
return null;
}
- public Class<?> getCommonPropertyType(ELContext context, Object base) {
+ @Override
+ public Class<?> getCommonPropertyType(ELContext context, Object base) {
if (context == null) {
throw new NullPointerException();
}
this.resolvers[this.size++] = elResolver;
}
+ @Override
public Object getValue(ELContext context, Object base, Object property)
throws NullPointerException, PropertyNotFoundException, ELException {
context.setPropertyResolved(false);
return null;
}
+ @Override
public void setValue(ELContext context, Object base, Object property,
Object value) throws NullPointerException,
PropertyNotFoundException, PropertyNotWritableException,
}
}
+ @Override
public boolean isReadOnly(ELContext context, Object base, Object property)
throws NullPointerException, PropertyNotFoundException, ELException {
context.setPropertyResolved(false);
return false;
}
+ @Override
public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base) {
return new FeatureIterator(context, base, this.resolvers, this.size);
}
+ @Override
public Class<?> getCommonPropertyType(ELContext context, Object base) {
int sz = this.size;
Class<?> commonType = null, type = null;
return commonType;
}
+ @Override
public Class<?> getType(ELContext context, Object base, Object property)
throws NullPointerException, PropertyNotFoundException, ELException {
context.setPropertyResolved(false);
*/
public abstract class Expression implements Serializable {
+ @Override
public abstract boolean equals(Object obj);
+ @Override
public abstract int hashCode();
public abstract String getExpressionString();
this.readOnly = readOnly;
}
- public Object getValue(ELContext context, Object base, Object property)
+ @Override
+ public Object getValue(ELContext context, Object base, Object property)
throws NullPointerException, PropertyNotFoundException, ELException {
if (context == null) {
throw new NullPointerException();
return null;
}
- public Class<?> getType(ELContext context, Object base, Object property)
+ @Override
+ public Class<?> getType(ELContext context, Object base, Object property)
throws NullPointerException, PropertyNotFoundException, ELException {
if (context == null) {
throw new NullPointerException();
return null;
}
- public void setValue(ELContext context, Object base, Object property,
+ @Override
+ public void setValue(ELContext context, Object base, Object property,
Object value) throws NullPointerException,
PropertyNotFoundException, PropertyNotWritableException,
ELException {
}
}
- public boolean isReadOnly(ELContext context, Object base, Object property)
+ @Override
+ public boolean isReadOnly(ELContext context, Object base, Object property)
throws NullPointerException, PropertyNotFoundException, ELException {
if (context == null) {
throw new NullPointerException();
return this.readOnly;
}
- public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base) {
+ @Override
+ public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base) {
if (base instanceof List) {
FeatureDescriptor[] descs = new FeatureDescriptor[((List) base).size()];
for (int i = 0; i < descs.length; i++) {
return null;
}
- public Class<?> getCommonPropertyType(ELContext context, Object base) {
+ @Override
+ public Class<?> getCommonPropertyType(ELContext context, Object base) {
if (base != null && base instanceof List) {
return Integer.class;
}
this.readOnly = readOnly;
}
- public Object getValue(ELContext context, Object base, Object property)
+ @Override
+ public Object getValue(ELContext context, Object base, Object property)
throws NullPointerException, PropertyNotFoundException, ELException {
if (context == null) {
throw new NullPointerException();
return null;
}
- public Class<?> getType(ELContext context, Object base, Object property)
+ @Override
+ public Class<?> getType(ELContext context, Object base, Object property)
throws NullPointerException, PropertyNotFoundException, ELException {
if (context == null) {
throw new NullPointerException();
return null;
}
- public void setValue(ELContext context, Object base, Object property,
+ @Override
+ public void setValue(ELContext context, Object base, Object property,
Object value) throws NullPointerException,
PropertyNotFoundException, PropertyNotWritableException,
ELException {
}
}
- public boolean isReadOnly(ELContext context, Object base, Object property)
+ @Override
+ public boolean isReadOnly(ELContext context, Object base, Object property)
throws NullPointerException, PropertyNotFoundException, ELException {
if (context == null) {
throw new NullPointerException();
return this.readOnly;
}
- public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base) {
+ @Override
+ public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base) {
if (base instanceof Map) {
Iterator itr = ((Map) base).keySet().iterator();
List<FeatureDescriptor> feats = new ArrayList<FeatureDescriptor>();
return null;
}
- public Class<?> getCommonPropertyType(ELContext context, Object base) {
+ @Override
+ public Class<?> getCommonPropertyType(ELContext context, Object base) {
if (base instanceof Map) {
return Object.class;
}
super();
}
- public Object getValue(ELContext context, Object base, Object property)
+ @Override
+ public Object getValue(ELContext context, Object base, Object property)
throws NullPointerException, PropertyNotFoundException, ELException {
if (context == null) {
throw new NullPointerException();
return null;
}
- public Class<?> getType(ELContext context, Object base, Object property)
+ @Override
+ public Class<?> getType(ELContext context, Object base, Object property)
throws NullPointerException, PropertyNotFoundException, ELException {
if (context == null) {
throw new NullPointerException();
return null;
}
- public void setValue(ELContext context, Object base, Object property,
+ @Override
+ public void setValue(ELContext context, Object base, Object property,
Object value) throws NullPointerException,
PropertyNotFoundException, PropertyNotWritableException,
ELException {
}
}
- public boolean isReadOnly(ELContext context, Object base, Object property)
+ @Override
+ public boolean isReadOnly(ELContext context, Object base, Object property)
throws NullPointerException, PropertyNotFoundException, ELException {
if (context == null) {
throw new NullPointerException();
return true;
}
- public Iterator getFeatureDescriptors(ELContext context, Object base) {
+ @Override
+ public Iterator getFeatureDescriptors(ELContext context, Object base) {
if (base instanceof ResourceBundle) {
List<FeatureDescriptor> feats = new ArrayList<FeatureDescriptor>();
Enumeration e = ((ResourceBundle) base).getKeys();
return null;
}
- public Class<?> getCommonPropertyType(ELContext context, Object base) {
+ @Override
+ public Class<?> getCommonPropertyType(ELContext context, Object base) {
if (base instanceof ResourceBundle) {
return String.class;
}
*
*/
+ @Override
public Object clone() {
try {
return super.clone();
*
* @see javax.servlet.Servlet#service
*/
+ @Override
public void service(ServletRequest req, ServletResponse res)
throws ServletException, IOException {
// SERVLET RESPONSE interface methods
+ @Override
public void setContentLength(int len) {
super.setContentLength(len);
didSetContentLength = true;
}
+ @Override
public ServletOutputStream getOutputStream() throws IOException {
return noBody;
}
+ @Override
public PrintWriter getWriter() throws UnsupportedEncodingException {
if (writer == null) {
return contentLength;
}
+ @Override
public void write(int b) {
contentLength++;
}
+ @Override
public void write(byte buf[], int offset, int len)
throws IOException
{
/** Return the session that changed. */
+ @Override
public HttpSession getSession () {
return super.getSession();
}
* @exception IOException If an I/O error occurs
*/
+ @Override
abstract public void flush() throws IOException;
/**
* @exception IOException If an I/O error occurs
*/
+ @Override
abstract public void close() throws IOException;
/**
super();
}
+ @Override
public Object getValue(ELContext context, Object base, Object property)
throws NullPointerException, PropertyNotFoundException, ELException {
if (context == null) {
return null;
}
+ @Override
public Class<?> getType(ELContext context, Object base, Object property)
throws NullPointerException, PropertyNotFoundException, ELException {
if (context == null) {
return null;
}
+ @Override
public void setValue(ELContext context, Object base, Object property,
Object value) throws NullPointerException,
PropertyNotFoundException, PropertyNotWritableException,
}
}
+ @Override
public boolean isReadOnly(ELContext context, Object base, Object property)
throws NullPointerException, PropertyNotFoundException, ELException {
if (context == null) {
return false;
}
+ @Override
public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base) {
List<FeatureDescriptor> feats = new ArrayList<FeatureDescriptor>(
SCOPE_NAMES.length);
return feats.iterator();
}
+ @Override
public Class<String> getCommonPropertyType(ELContext context, Object base) {
if (base == null) {
return String.class;
public Map<String,Object> getApplicationScope() {
if (this.applicationScope == null) {
this.applicationScope = new ScopeMap<Object>() {
+ @Override
protected void setAttribute(String name, Object value) {
page.getServletContext().setAttribute(name, value);
}
+ @Override
protected void removeAttribute(String name) {
page.getServletContext().removeAttribute(name);
}
+ @Override
protected Enumeration<String> getAttributeNames() {
return page.getServletContext().getAttributeNames();
}
+ @Override
protected Object getAttribute(String name) {
return page.getServletContext().getAttribute(name);
}
public Map<String,Cookie> getCookie() {
if (this.cookie == null) {
this.cookie = new ScopeMap<Cookie>() {
+ @Override
protected Enumeration<String> getAttributeNames() {
Cookie[] c = ((HttpServletRequest) page.getRequest())
.getCookies();
return null;
}
+ @Override
protected Cookie getAttribute(String name) {
Cookie[] c = ((HttpServletRequest) page.getRequest())
.getCookies();
public Map<String,String> getHeader() {
if (this.header == null) {
this.header = new ScopeMap<String>() {
+ @Override
protected Enumeration<String> getAttributeNames() {
return ((HttpServletRequest) page.getRequest())
.getHeaderNames();
}
+ @Override
protected String getAttribute(String name) {
return ((HttpServletRequest) page.getRequest())
.getHeader(name);
public Map<String,String[]> getHeaderValues() {
if (this.headerValues == null) {
this.headerValues = new ScopeMap<String[]>() {
+ @Override
protected Enumeration<String> getAttributeNames() {
return ((HttpServletRequest) page.getRequest())
.getHeaderNames();
}
+ @Override
protected String[] getAttribute(String name) {
Enumeration<String> e =
((HttpServletRequest) page.getRequest())
public Map<String,String> getInitParam() {
if (this.initParam == null) {
this.initParam = new ScopeMap<String>() {
+ @Override
protected Enumeration<String> getAttributeNames() {
return page.getServletContext().getInitParameterNames();
}
+ @Override
protected String getAttribute(String name) {
return page.getServletContext().getInitParameter(name);
}
public Map<String,Object> getPageScope() {
if (this.pageScope == null) {
this.pageScope = new ScopeMap<Object>() {
+ @Override
protected void setAttribute(String name, Object value) {
page.setAttribute(name, value);
}
+ @Override
protected void removeAttribute(String name) {
page.removeAttribute(name);
}
+ @Override
protected Enumeration<String> getAttributeNames() {
return page.getAttributeNamesInScope(
PageContext.PAGE_SCOPE);
}
+ @Override
protected Object getAttribute(String name) {
return page.getAttribute(name);
}
public Map<String,String> getParam() {
if (this.param == null) {
this.param = new ScopeMap<String>() {
+ @Override
protected Enumeration<String> getAttributeNames() {
return page.getRequest().getParameterNames();
}
+ @Override
protected String getAttribute(String name) {
return page.getRequest().getParameter(name);
}
public Map<String,String[]> getParamValues() {
if (this.paramValues == null) {
this.paramValues = new ScopeMap<String[]>() {
+ @Override
protected String[] getAttribute(String name) {
return page.getRequest().getParameterValues(name);
}
+ @Override
protected Enumeration<String> getAttributeNames() {
return page.getRequest().getParameterNames();
}
public Map<String,Object> getRequestScope() {
if (this.requestScope == null) {
this.requestScope = new ScopeMap<Object>() {
+ @Override
protected void setAttribute(String name, Object value) {
page.getRequest().setAttribute(name, value);
}
+ @Override
protected void removeAttribute(String name) {
page.getRequest().removeAttribute(name);
}
+ @Override
protected Enumeration<String> getAttributeNames() {
return page.getRequest().getAttributeNames();
}
+ @Override
protected Object getAttribute(String name) {
return page.getRequest().getAttribute(name);
}
public Map<String,Object> getSessionScope() {
if (this.sessionScope == null) {
this.sessionScope = new ScopeMap<Object>() {
+ @Override
protected void setAttribute(String name, Object value) {
((HttpServletRequest) page.getRequest()).getSession()
.setAttribute(name, value);
}
+ @Override
protected void removeAttribute(String name) {
HttpSession session = page.getSession();
if (session != null) {
}
}
+ @Override
protected Enumeration<String> getAttributeNames() {
HttpSession session = page.getSession();
if (session != null) {
return null;
}
+ @Override
protected Object getAttribute(String name) {
HttpSession session = page.getSession();
if (session != null) {
throw new UnsupportedOperationException();
}
+ @Override
public final Set<Map.Entry<String,V>> entrySet() {
Enumeration<String> e = getAttributeNames();
Set<Map.Entry<String, V>> set = new HashSet<Map.Entry<String, V>>();
return null;
}
+ @Override
public boolean equals(Object obj) {
return (obj != null && this.hashCode() == obj.hashCode());
}
+ @Override
public int hashCode() {
return this.key.hashCode();
}
return null;
}
+ @Override
public final V put(String key, V value) {
if (key == null) {
throw new NullPointerException();
super();
}
- public Object getValue(ELContext context, Object base, Object property)
+ @Override
+ public Object getValue(ELContext context, Object base, Object property)
throws NullPointerException, PropertyNotFoundException, ELException {
if (context == null) {
throw new NullPointerException();
return null;
}
- public Class<Object> getType(ELContext context, Object base, Object property)
+ @Override
+ public Class<Object> getType(ELContext context, Object base, Object property)
throws NullPointerException, PropertyNotFoundException, ELException {
if (context == null) {
throw new NullPointerException();
return null;
}
- public void setValue(ELContext context, Object base, Object property,
+ @Override
+ public void setValue(ELContext context, Object base, Object property,
Object value) throws NullPointerException,
PropertyNotFoundException, PropertyNotWritableException,
ELException {
}
}
- public boolean isReadOnly(ELContext context, Object base, Object property)
+ @Override
+ public boolean isReadOnly(ELContext context, Object base, Object property)
throws NullPointerException, PropertyNotFoundException, ELException {
if (context == null) {
throw new NullPointerException();
return false;
}
- public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base) {
+ @Override
+ public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base) {
PageContext ctxt = (PageContext) context.getContext(JspContext.class);
List<FeatureDescriptor> list = new ArrayList<FeatureDescriptor>();
return list.iterator();
}
- public Class<String> getCommonPropertyType(ELContext context, Object base) {
+ @Override
+ public Class<String> getCommonPropertyType(ELContext context, Object base) {
if (base == null) {
return String.class;
}
* @throws IOException always thrown
*/
+ @Override
public void flush() throws IOException {
throw new IOException("Illegal to flush within a custom tag");
}
* @see BodyTag#doStartTag
*/
+ @Override
public int doStartTag() throws JspException {
return EVAL_BODY_BUFFERED;
}
* @see Tag#doEndTag
*/
+ @Override
public int doEndTag() throws JspException {
return super.doEndTag();
}
* @see BodyTag#doAfterBody
*/
+ @Override
public int doAfterBody() throws JspException {
return SKIP_BODY;
}
* @see Tag#release
*/
+ @Override
public void release() {
bodyContent = null;
*
* @return a String representation of this TagAttributeInfo
*/
+ @Override
public String toString() {
StringBuilder b = new StringBuilder(64);
b.append("name = " + name + " ");