01: /* JFox, the OpenSource J2EE Application Server
02: *
03: * Copyright (C) 2002 huihoo.org
04: * Distributable under GNU LGPL license
05: * See the GNU Lesser General Public License for more details.
06: */
07:
08: package javax.management.relation;
09:
10: import java.io.Serializable;
11: import java.util.List;
12:
13: /**
14: * The RelationType interface has to be implemented by any class expected to
15: * represent a relation type.
16: *
17: * @author <a href="mailto:young_yy@hotmail.org">Young Yang</a>
18: */
19:
20: public interface RelationType extends Serializable {
21:
22: /**
23: * Returns the relation type name
24: */
25: public String getRelationTypeName();
26:
27: /**
28: * Returns the list of role definitions (ArrayList of RoleInfo objects).
29: */
30: public List getRoleInfos();
31:
32: /**
33: * Returns the role info (RoleInfo object) for the given role info name
34: * (null if not found).
35: *
36: * @param roleInfoName role info name
37: *
38: * @return RoleInfo object providing role definition
39: * does not exist
40: *
41: * @exception IllegalArgumentException if null parameter
42: * @exception RoleInfoNotFoundException if no role info with that name in
43: * relation type.
44: */
45: public RoleInfo getRoleInfo(String roleInfoName)
46: throws IllegalArgumentException, RoleInfoNotFoundException;
47:
48: }
|