01: /*
02: * Copyright 2001-2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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.apache.ws.scout.registry.infomodel;
18:
19: import javax.xml.registry.JAXRException;
20: import javax.xml.registry.UnsupportedCapabilityException;
21:
22: /**
23: * Implements JAXR Interface.
24: * For futher details, look into the JAXR API Javadoc.
25: *
26: * @author Anil Saldhana <anil@apache.org>
27: */
28: public class PersonNameImpl implements
29: javax.xml.registry.infomodel.PersonName {
30:
31: private String fullname = "";
32:
33: /**
34: * Creates a new instance of PersonNameImpl
35: */
36: public PersonNameImpl() {
37: }
38:
39: public PersonNameImpl(String fullname) {
40: this .fullname = fullname;
41: }
42:
43: public String getFullName() throws JAXRException {
44: return this .fullname;
45: }
46:
47: public void setFullName(String str) throws JAXRException {
48: this .fullname = str;
49: }
50:
51: public String getFirstName() throws JAXRException {
52: throw new UnsupportedCapabilityException();
53: }
54:
55: public String getLastName() throws JAXRException {
56: throw new UnsupportedCapabilityException();
57: }
58:
59: public String getMiddleName() throws JAXRException {
60: throw new UnsupportedCapabilityException();
61: }
62:
63: public void setFirstName(String str) throws JAXRException {
64: throw new UnsupportedCapabilityException();
65: }
66:
67: public void setLastName(String str) throws JAXRException {
68: throw new UnsupportedCapabilityException();
69: }
70:
71: public void setMiddleName(String str) throws JAXRException {
72: throw new UnsupportedCapabilityException();
73: }
74: }
|