KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jacorb > notification > filter > ETCLEvaluator


1 /*
2  * JacORB - a free Java ORB
3  *
4  * Copyright (C) 1999-2004 Gerald Brose
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the Free
18  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19  *
20  */

21
22 package org.jacorb.notification.filter;
23
24 import org.omg.CORBA.Any JavaDoc;
25 import org.omg.CosNotification.Property;
26
27 /**
28  * @author Alphonse Bendt
29  * @version $Id: ETCLEvaluator.java,v 1.1 2005/02/14 00:04:35 alphonse.bendt Exp $
30  */

31 public interface ETCLEvaluator
32 {
33     ////////////////////////////////////////
34
boolean hasDefaultDiscriminator(Any JavaDoc any) throws EvaluationException;
35
36     Any JavaDoc evaluateExistIdentifier(Any JavaDoc value, String JavaDoc identifier) throws EvaluationException;
37
38     /**
39      * identify the unscoped IDL type name of a component. (e.g. mystruct._typeid == 'mystruct')
40      *
41      * @param value
42      * the component
43      * @return the IDL type name (string) wrapped in an any
44      */

45     Any JavaDoc evaluateTypeName(Any JavaDoc value) throws EvaluationException;
46
47     /**
48      * identify the RepositoryId of a component. (e.g. mystruct._repos_id ==
49      * 'IDL:module/mystruct:1.0'
50      *
51      * @param value
52      * the component
53      * @return the IDL type name (string) wrapped in an any
54      */

55     Any JavaDoc evaluateRepositoryId(Any JavaDoc value) throws EvaluationException;
56
57     /**
58      * identify the number of elements of a component. if the parameter is a sequence or an array,
59      * this method will return the number of elements in the list.
60      *
61      * @param value
62      * the component
63      * @return the number of elements in the list
64      */

65     Any JavaDoc evaluateListLength(Any JavaDoc value) throws EvaluationException;
66
67     /**
68      * extract the default member from Union wrapped inside the provided Any.
69      */

70     Any JavaDoc evaluateUnion(Any JavaDoc value) throws EvaluationException;
71
72     Any JavaDoc evaluateUnion(Any JavaDoc value, int position) throws EvaluationException;
73
74     Any JavaDoc evaluatePropertyList(Property[] list, String JavaDoc name);
75
76     /**
77      * extract a named value out of a sequence of name/value pairs.
78      */

79     Any JavaDoc evaluateNamedValueList(Any JavaDoc any, String JavaDoc name) throws EvaluationException;
80
81     /**
82      * extract the n-th position out of an Array wrapped inside an Any.
83      */

84     Any JavaDoc evaluateArrayIndex(Any JavaDoc any, int index) throws EvaluationException;
85
86     Any JavaDoc evaluateIdentifier(Any JavaDoc any, int position) throws EvaluationException;
87
88     Any JavaDoc evaluateDiscriminator(Any JavaDoc any) throws EvaluationException;
89
90     EvaluationResult evaluateElementInSequence(EvaluationContext context, EvaluationResult element,
91             Any JavaDoc sequence) throws EvaluationException;
92
93     /**
94      * expensive
95      */

96     Any JavaDoc evaluateIdentifier(Any JavaDoc any, String JavaDoc identifier) throws EvaluationException;
97 }
Popular Tags