1 /*
2 * Copyright 2001-2004 The Apache Software Foundation.
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 package javax.xml.rpc.encoding;
17
18 /**
19 * The javax.xml.rpc.encoding.DeserializerFactory is a factory of
20 * deserializers. A DeserializerFactory is registered with a
21 * TypeMapping instance as part of the TypeMappingRegistry.
22 *
23 * @version 1.0
24 */
25 public interface DeserializerFactory extends java.io.Serializable {
26
27 /**
28 * Returns a Deserializer for the specified XML processing mechanism type.
29 *
30 * @param mechanismType XML processing mechanism type [TBD: definition of
31 * valid constants]
32 *
33 * @return a Deserializer for the specified XML processing mechanism type
34 *
35 * @throws javax.xml.rpc.JAXRPCException if DeserializerFactory does not
36 * support the specified XML processing mechanism
37 */
38 public Deserializer getDeserializerAs(String mechanismType);
39
40 /**
41 * Returns an <code>Iterator</code> over the list of all XML processing
42 * mechanism types supported by this <code>DeserializerFactory</code>.
43 *
44 * @return an <code>Iterator</code> over the unique identifiers for the
45 * supported XML processing mechanism types (as
46 * <code>String</code>s?)
47 */
48 public java.util.Iterator getSupportedMechanismTypes();
49 }
50