| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
|
| 17 | |
package org.apache.ws.scout.registry.infomodel; |
| 18 | |
|
| 19 | |
import javax.xml.registry.JAXRException; |
| 20 | |
import javax.xml.registry.UnsupportedCapabilityException; |
| 21 | |
import javax.xml.registry.infomodel.TelephoneNumber; |
| 22 | |
|
| 23 | |
|
| 24 | |
|
| 25 | |
|
| 26 | |
|
| 27 | |
|
| 28 | |
|
| 29 | |
public class TelephoneNumberImpl implements TelephoneNumber |
| 30 | |
{ |
| 31 | |
private String number; |
| 32 | |
private String type; |
| 33 | |
|
| 34 | |
public TelephoneNumberImpl() |
| 35 | 100 | { |
| 36 | 100 | } |
| 37 | |
|
| 38 | |
public String getNumber() |
| 39 | |
{ |
| 40 | 42 | return number; |
| 41 | |
} |
| 42 | |
|
| 43 | |
public void setNumber(String number) |
| 44 | |
{ |
| 45 | 98 | this.number = number; |
| 46 | 98 | } |
| 47 | |
|
| 48 | |
public String getType() |
| 49 | |
{ |
| 50 | 0 | return type; |
| 51 | |
} |
| 52 | |
|
| 53 | |
public void setType(String type) |
| 54 | |
{ |
| 55 | 98 | this.type = type; |
| 56 | 98 | } |
| 57 | |
|
| 58 | |
public String getAreaCode() throws JAXRException |
| 59 | |
{ |
| 60 | 0 | throw new UnsupportedCapabilityException("Level 1 feature"); |
| 61 | |
} |
| 62 | |
|
| 63 | |
public void setAreaCode(String areaCode) throws JAXRException |
| 64 | |
{ |
| 65 | 0 | throw new UnsupportedCapabilityException("Level 1 feature"); |
| 66 | |
} |
| 67 | |
|
| 68 | |
public String getCountryCode() throws JAXRException |
| 69 | |
{ |
| 70 | 0 | throw new UnsupportedCapabilityException("Level 1 feature"); |
| 71 | |
} |
| 72 | |
|
| 73 | |
public void setCountryCode(String countryCode) throws JAXRException |
| 74 | |
{ |
| 75 | 0 | throw new UnsupportedCapabilityException("Level 1 feature"); |
| 76 | |
} |
| 77 | |
|
| 78 | |
public String getExtension() throws JAXRException |
| 79 | |
{ |
| 80 | 0 | throw new UnsupportedCapabilityException("Level 1 feature"); |
| 81 | |
} |
| 82 | |
|
| 83 | |
public void setExtension(String extension) throws JAXRException |
| 84 | |
{ |
| 85 | 0 | throw new UnsupportedCapabilityException("Level 1 feature"); |
| 86 | |
} |
| 87 | |
|
| 88 | |
public String getUrl() throws JAXRException |
| 89 | |
{ |
| 90 | 0 | throw new UnsupportedCapabilityException("Level 1 feature"); |
| 91 | |
} |
| 92 | |
|
| 93 | |
public void setUrl(String url) throws JAXRException |
| 94 | |
{ |
| 95 | 0 | throw new UnsupportedCapabilityException("Level 1 feature"); |
| 96 | |
} |
| 97 | |
|
| 98 | |
public boolean equals(Object o) |
| 99 | |
{ |
| 100 | 0 | if (this == o) return true; |
| 101 | 0 | if (!(o instanceof TelephoneNumberImpl)) return false; |
| 102 | 0 | final TelephoneNumberImpl telephoneNumber = (TelephoneNumberImpl) o; |
| 103 | 0 | if (number != null ? !number.equals(telephoneNumber.number) : telephoneNumber.number != null) return false; |
| 104 | 0 | if (type != null ? !type.equals(telephoneNumber.type) : telephoneNumber.type != null) return false; |
| 105 | 0 | return true; |
| 106 | |
} |
| 107 | |
|
| 108 | |
public int hashCode() |
| 109 | |
{ |
| 110 | |
int result; |
| 111 | 0 | result = (number != null ? number.hashCode() : 0); |
| 112 | 0 | result = 29 * result + (type != null ? type.hashCode() : 0); |
| 113 | 0 | return result; |
| 114 | |
} |
| 115 | |
|
| 116 | |
public String toString() |
| 117 | |
{ |
| 118 | 0 | return number == null ? "null" : number; |
| 119 | |
} |
| 120 | |
} |