equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
229 } |
229 } |
230 |
230 |
231 /** |
231 /** |
232 * Get the attribute value. |
232 * Get the attribute value. |
233 */ |
233 */ |
234 public Object get(String name) throws IOException { |
234 public Integer get(String name) throws IOException { |
235 if (name.equalsIgnoreCase(REQUIRE)) { |
235 if (name.equalsIgnoreCase(REQUIRE)) { |
236 return new Integer(require); |
236 return new Integer(require); |
237 } else if (name.equalsIgnoreCase(INHIBIT)) { |
237 } else if (name.equalsIgnoreCase(INHIBIT)) { |
238 return new Integer(inhibit); |
238 return new Integer(inhibit); |
239 } else { |
239 } else { |