|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.novell.service.nds.NdsNetAddress
Provides access to values of the NetAddress attribute. It is used for network addresses in the NetWare environment. The address type indicates the type of communications protocol used (IPX, AppleTalk, IP, OSI NSAP, etc.).
For two values of Net Address to match, the type, length, and value of the address must match. The address length is the number of bytes. The address itself is stored as a binary string, which is the literal value of the address.
Matching Rules: Equality
NdsSyntaxId
Field Summary | |
static int |
TYPE_ASP
NetWare address type is ASP. |
static int |
TYPE_DDP
NetWare address type is DDP. |
static int |
TYPE_IPX
NetWare address type is IPX. |
static int |
TYPE_NONE
No NetWare address type provided. |
static int |
TYPE_TCP
NetWare address type is TCP. |
static int |
TYPE_TCP6
NetWare address type is TCP6. |
static int |
TYPE_UDP
NetWare address type is UDP. |
static int |
TYPE_UDP6
NetWare address type is UDP6. |
static int |
TYPE_WILD
NetWare address type is WILD. |
Constructor Summary | |
NdsNetAddress(long type,
byte[] address)
Constructs an NdsNetAddress object based on the specified type and address variables. |
Method Summary | |
boolean |
approximate(java.lang.Object anObject)
Compares two Objects using the approximate matching rule. |
java.lang.Object |
clone()
Creates a new object of the same class as this object. |
int |
compareTo(java.lang.Object anObject)
Compares two objects for ordering, or compares two strings lexicographically. |
int |
count()
Returns the number of elements in this sequence. |
boolean |
equals(java.lang.Object anObject)
Compares two Objects for equality. |
byte[] |
getAddress()
Returns the byte array of Net Address values stored in the NDS attribute. |
long |
getLength()
Returns the length of the Net Address. |
int |
getNdsSyntaxId()
Returns the int that represents this NDS syntax ID. |
long |
getType()
Returns the long value of Net Address type stored in the NDS attribute. |
|
getValue(java.lang.String compositeId)
Returns a SchemaValue object based on the given passed-in string containing the element value. |
java.util.Enumeration |
getValueIds()
Returns an enumeration of element IDs in this composite. |
java.util.Enumeration |
getValues()
Returns an enumeration of element values in this composite. |
boolean |
supportsMatchingRules(int matchingRules)
Checks to see if this object supports the specified matching rules. |
java.lang.String |
toString()
Generates a string representation of the object. |
Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int TYPE_NONE
(TYPE_NONE = 0x00000000)
public static final int TYPE_IPX
(TYPE_NONE = 0x00000001)
Format of address: nn nn nn nn aa aa aa aa aa aa pp pp where nn is a network address byte, aa is a node address byte and pp is a portpublic static final int TYPE_DDP
(TYPE_IPX = 0x00000003)
public static final int TYPE_ASP
(TYPE_ASP = 0x00000004)
public static final int TYPE_UDP
(TYPE_UDP = 0x00000008)
Format of address: pp pp aa aa aa aa where pp is a port byte and aa is an address byte.public static final int TYPE_TCP
(TYPE_TCP = 0x00000009)
public static final int TYPE_UDP6
(TYPE_UDP6 = 0x0000000A)
public static final int TYPE_TCP6
(TYPE_TCP6 = 0x0000000B)
public static final int TYPE_WILD
(TYPE_WILD = 0x00008000)
Constructor Detail |
public NdsNetAddress(long type, byte[] address)
type
- The address type to be stored as a long value.
IPX = 0, IP = 1, OSI NSAP = 4, AppleTalk = 5, etc.address
- The literal value of the address to be stored as
a byte array.Method Detail |
public int compareTo(java.lang.Object anObject) throws java.lang.Exception
public boolean equals(java.lang.Object anObject)
The equals method implements the most discriminating possible equivalence relation on objects; that is, for any reference values X and Y, this method returns TRUE if and only if X and Y refer to the same object (X==Y has the value TRUE).
anObject
- The reference object with which to compare.public int count()
public getValue(java.lang.String compositeId)
compositeId
- The passed-in string containing the element
value.public java.util.Enumeration getValueIds()
public java.util.Enumeration getValues()
public boolean approximate(java.lang.Object anObject) throws java.lang.Exception
public int getNdsSyntaxId()
public boolean supportsMatchingRules(int matchingRules)
matchingRules
- The set of matching rules to check.public java.lang.Object clone()
public java.lang.String toString()
public long getType()
public long getLength()
public byte[] getAddress()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |