1 /*
2 * Copyright 2006 Ralf Joachim
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 org.exolab.castor.xml.util;
17
18 import org.exolab.castor.mapping.MappingException;
19 import org.exolab.castor.xml.NodeType;
20
21 /**
22 * @author <a href="mailto:ralf DOT joachim AT syscon DOT eu">Ralf Joachim</a>
23 * @version $Revision: 5951 $ $Date: 2005-12-06 14:55:28 -0700 (Tue, 06 Dec 2005) $
24 */
25 public class XMLContainerElementFieldDescriptor extends XMLFieldDescriptorImpl {
26
27 public XMLContainerElementFieldDescriptor(final XMLFieldDescriptorImpl fieldDesc,
28 final NodeType primitiveNodeType) throws MappingException {
29 super(fieldDesc, fieldDesc.getXMLName(), fieldDesc.getNodeType(), primitiveNodeType);
30
31 setFieldType(org.exolab.castor.xml.util.ContainerElement.class);
32
33 setNameSpaceURI(fieldDesc.getNameSpaceURI());
34 setNameSpacePrefix(fieldDesc.getNameSpacePrefix());
35 // setQNamePrefix(fieldDesc.getQNamePrefix());
36 }
37 }