1// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
2
3package org.xbill.DNS;
4
5/**
6 * NSAP Pointer Record  - maps a domain name representing an NSAP Address to
7 * a hostname.
8 *
9 * @author Brian Wellington
10 */
11
12public class NSAP_PTRRecord extends SingleNameBase {
13
14private static final long serialVersionUID = 2386284746382064904L;
15
16NSAP_PTRRecord() {}
17
18Record
19getObject() {
20	return new NSAP_PTRRecord();
21}
22
23/**
24 * Creates a new NSAP_PTR Record with the given data
25 * @param target The name of the host with this address
26 */
27public
28NSAP_PTRRecord(Name name, int dclass, long ttl, Name target) {
29	super(name, Type.NSAP_PTR, dclass, ttl, target, "target");
30}
31
32/** Gets the target of the NSAP_PTR Record */
33public Name
34getTarget() {
35	return getSingleName();
36}
37
38}
39