Skip navigation links

Oracle Virtual Directory Java API Reference
11g Release 1 (11.1.1)

E10688-03


com.octetstring.vde.syntax
Class IA5String

java.lang.Object
  extended by com.octetstring.vde.syntax.Syntax
      extended by com.octetstring.vde.syntax.IA5String

All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IA5String>

public class IA5String
extends Syntax
implements java.io.Serializable, java.lang.Comparable<IA5String>

Class representing a case sensitive string

See Also:
Serialized Form

Constructor Summary
IA5String()
           
IA5String(byte[] value)
           
IA5String(byte[] value, int hashCode)
           
IA5String(java.lang.String value)
           

 

Method Summary
 int compareTo(IA5String str)
           
 int compareTo(Syntax val)
          Compares the value in this syntax with the value in another syntax object.
 boolean endsWith(IA5String str)
           
 boolean endsWith(Syntax val)
          Checks to see if the passed value is at the end of this value.
 boolean equals(IA5String ds)
           
 boolean equals(java.lang.Object obj)
           
 byte[] getValue()
          Get a byte array representation of this value.
 int hashCode()
           
 int indexOf(IA5String indexString)
           
 int indexOf(Syntax val)
          Find the first occurance of the passed syntax within this syntax.
 int length()
           
 java.lang.String normalize()
          Perform necessary steps to create an indexable String representation of this value.
 Syntax reverse()
          Returns the reverse of this string.
 void setValue(byte[] value)
          Set this value to the passed byte array according to appropriate rules.
 void setValue(byte[] value, int hashCode)
          Set this value to the passed bye array according to appropriate rules.
 void setValue(java.lang.String value)
           
 boolean startsWith(IA5String startString)
           
 boolean startsWith(Syntax val)
          Determines if the specified value is at the beginning of this value.
 java.lang.String toString()
           
 void validate()
          Determines if this value is in accordance to the syntax rules (if any)

 

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

 

Constructor Detail

IA5String

public IA5String()

IA5String

public IA5String(byte[] value)

IA5String

public IA5String(java.lang.String value)

IA5String

public IA5String(byte[] value,
                 int hashCode)

Method Detail

getValue

public byte[] getValue()
Description copied from class: Syntax
Get a byte array representation of this value. This method allows the value to be sent as an octet string value via LDAP.
Specified by:
getValue in class Syntax
Returns:
a byte[] value

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

setValue

public void setValue(java.lang.String value)

setValue

public void setValue(byte[] value)
Description copied from class: Syntax
Set this value to the passed byte array according to appropriate rules.
Specified by:
setValue in class Syntax
Parameters:
value - a byte[] value

setValue

public void setValue(byte[] value,
                     int hashCode)
Description copied from class: Syntax
Set this value to the passed bye array according to appropriate rules. This version of the method also takes a hashCode to save computation time when it is already known.
Specified by:
setValue in class Syntax
Parameters:
value - a byte[] value
hashCode - an int value

compareTo

public int compareTo(IA5String str)
Specified by:
compareTo in interface java.lang.Comparable<IA5String>

compareTo

public int compareTo(Syntax val)
Description copied from class: Syntax
Compares the value in this syntax with the value in another syntax object. Returns an int less than 0 if this value is less, 0 if equal, or a value greater than 0 if this value is greater.
Specified by:
compareTo in class Syntax
Parameters:
val - a Syntax value
Returns:
an int value

startsWith

public boolean startsWith(IA5String startString)

startsWith

public boolean startsWith(Syntax val)
Description copied from class: Syntax
Determines if the specified value is at the beginning of this value. Returns true if it is, false if not or if the comparison is inappropirate.
Specified by:
startsWith in class Syntax
Parameters:
val - a Syntax value
Returns:
a boolean value

endsWith

public boolean endsWith(IA5String str)

endsWith

public boolean endsWith(Syntax val)
Description copied from class: Syntax
Checks to see if the passed value is at the end of this value. Returns true if so, false if not, or if such a comparison is inappropriate (with an int, for example).
Specified by:
endsWith in class Syntax
Parameters:
val - a Syntax value
Returns:
a boolean value

equals

public boolean equals(IA5String ds)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

indexOf

public int indexOf(IA5String indexString)

indexOf

public int indexOf(Syntax val)
Description copied from class: Syntax
Find the first occurance of the passed syntax within this syntax.
Specified by:
indexOf in class Syntax
Parameters:
val - a Syntax value
Returns:
an int value

length

public int length()

normalize

public java.lang.String normalize()
Description copied from class: Syntax
Perform necessary steps to create an indexable String representation of this value.
Specified by:
normalize in class Syntax
Returns:
a String value

reverse

public Syntax reverse()
Description copied from class: Syntax
Returns the reverse of this string. Useful for substring final indexes.
Specified by:
reverse in class Syntax
Returns:
a Syntax value

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

validate

public void validate()
              throws com.octetstring.vde.syntax.InvalidSyntaxException
Description copied from class: Syntax
Determines if this value is in accordance to the syntax rules (if any)
Specified by:
validate in class Syntax
Throws:
com.octetstring.vde.syntax.InvalidSyntaxException

Skip navigation links

Oracle Virtual Directory Java API Reference
11g Release 1 (11.1.1)

E10688-03


Copyright © 2000-2010 Oracle and/or its affiliates. All Rights Reserved.