/** * Indicates whether generation is supported for this type. * @throws InvalidTypeException The type is out of range. */ public static boolean supportedType(int type) { Type.check(type); return (type == Type.PTR || type == Type.CNAME || type == Type.DNAME || type == Type.A || type == Type.AAAA || type == Type.NS); }
/** * Indicates whether generation is supported for this type. * @throws InvalidTypeException The type is out of range. */ public static boolean supportedType(int type) { Type.check(type); return (type == Type.PTR || type == Type.CNAME || type == Type.DNAME || type == Type.A || type == Type.AAAA || type == Type.NS); }
/** * Indicates whether generation is supported for this type. * @throws InvalidTypeException The type is out of range. */ public static boolean supportedType(int type) { Type.check(type); return (type == Type.PTR || type == Type.CNAME || type == Type.DNAME || type == Type.A || type == Type.AAAA || type == Type.NS); }
public void check(int val) { Type.check(val); }
/** * Indicates whether generation is supported for this type. * @throws InvalidTypeException The type is out of range. */ public static boolean supportedType(int type) { Type.check(type); return (type == Type.PTR || type == Type.CNAME || type == Type.DNAME || type == Type.A || type == Type.AAAA || type == Type.NS); }
public void check(int val) { Type.check(val); }
public void check(int val) { Type.check(val); }
public void check(int val) { Type.check(val); }
public TypeBitmap(int [] array) { this(); for (int i = 0; i < array.length; i++) { Type.check(array[i]); types.add(new Integer(array[i])); } }
public TypeBitmap(int [] array) { this(); for (int i = 0; i < array.length; i++) { Type.check(array[i]); types.add(new Integer(array[i])); } }
public TypeBitmap(int [] array) { this(); for (int i = 0; i < array.length; i++) { Type.check(array[i]); types.add(new Integer(array[i])); } }
/** * Creates an NSEC Record from the given data. * @param next The following name in an ordered list of the zone * @param types An array containing the types present. */ public NSECRecord(Name name, int dclass, long ttl, Name next, int [] types) { super(name, Type.NSEC, dclass, ttl); this.next = checkName("next", next); for (int i = 0; i < types.length; i++) { Type.check(types[i]); } this.types = new int[types.length]; System.arraycopy(types, 0, this.types, 0, types.length); Arrays.sort(this.types); }
/** * Creates an NSEC Record from the given data. * @param next The following name in an ordered list of the zone * @param types An array containing the types present. */ public NSECRecord(Name name, int dclass, long ttl, Name next, int [] types) { super(name, Type.NSEC, dclass, ttl); this.next = checkName("next", next); for (int i = 0; i < types.length; i++) { Type.check(types[i]); } this.types = new TypeBitmap(types); }
/** * Creates an NSEC Record from the given data. * @param next The following name in an ordered list of the zone * @param types An array containing the types present. */ public NSECRecord(Name name, int dclass, long ttl, Name next, int [] types) { super(name, Type.NSEC, dclass, ttl); this.next = checkName("next", next); for (int i = 0; i < types.length; i++) { Type.check(types[i]); } this.types = new TypeBitmap(types); }
/** * Creates an NSEC Record from the given data. * @param next The following name in an ordered list of the zone * @param types An array containing the types present. */ public NSECRecord(Name name, int dclass, long ttl, Name next, int [] types) { super(name, Type.NSEC, dclass, ttl); this.next = checkName("next", next); for (int i = 0; i < types.length; i++) { Type.check(types[i]); } this.types = new TypeBitmap(types); }
Record(Name name, int type, int dclass, long ttl) { if (!name.isAbsolute()) throw new RelativeNameException(name); Type.check(type); DClass.check(dclass); TTL.check(ttl); this.name = name; this.type = type; this.dclass = dclass; this.ttl = ttl; }
Record(Name name, int type, int dclass, long ttl) { if (!name.isAbsolute()) throw new RelativeNameException(name); Type.check(type); DClass.check(dclass); TTL.check(ttl); this.name = name; this.type = type; this.dclass = dclass; this.ttl = ttl; }
Record(Name name, int type, int dclass, long ttl) { if (!name.isAbsolute()) throw new RelativeNameException(name); Type.check(type); DClass.check(dclass); TTL.check(ttl); this.name = name; this.type = type; this.dclass = dclass; this.ttl = ttl; }
Record(Name name, int type, int dclass, long ttl) { if (!name.isAbsolute()) throw new RelativeNameException(name); Type.check(type); DClass.check(dclass); TTL.check(ttl); this.name = name; this.type = type; this.dclass = dclass; this.ttl = ttl; }
/** * Creates a new empty record, with the given parameters. * @param name The owner name of the record. * @param type The record's type. * @param dclass The record's class. * @param ttl The record's time to live. * @return An object of a subclass of Record */ public static Record newRecord(Name name, int type, int dclass, long ttl) { if (!name.isAbsolute()) throw new RelativeNameException(name); Type.check(type); DClass.check(dclass); TTL.check(ttl); return getEmptyRecord(name, type, dclass, ttl, false); }