View Javadoc
1   /*
2    * Copyright 2008 Tobias Hochwallner
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   *
16   */
17  package org.castor.core.nature;
18  
19  /**
20   * PropertyHolder provides get and set methods on a holder. 
21   * @see ClassInfo
22   * @see Nature
23   * 
24   * @author Sebastian Gabmeyer
25   * @since 1.2.1
26   *
27   */
28  public interface PropertyHolder extends NatureExtendable {
29      
30      /**
31       * Get a property by its name.
32       * 
33       * @param name the name of the property to get.
34       * @return the property as specified by the name.
35       */
36      Object getProperty(final String name);
37      
38      /**
39       * Set a property specified by the name to the passed value.
40       * 
41       * @param name the name of the property to set.
42       * @param value the value to set the specified property to.
43       */
44      void setProperty(final String name, final Object value);
45  }