|
Oracle Virtual Directory Java API Reference 11g Release 1 (11.1.1) E10688-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.octetstring.vde.syntax.Syntax
com.octetstring.vde.syntax.DirectoryString
public class DirectoryString
Class representing a Directory String syntax (case insensitive string)
Constructor Summary | |
---|---|
DirectoryString() Create an empty directory string. |
|
DirectoryString(byte[] bytes) Create a directory string from the given byte array. |
|
DirectoryString(byte[] bytes, int hashCode) Create a directory string from the given byte array, but skip the computation of the hashCode. |
|
DirectoryString(java.lang.String data) Create a new directory string from the given String. |
Method Summary | |
---|---|
java.lang.Object |
clone() |
int |
compareTo(DirectoryString ds) Compare this directory string to another. |
int |
compareTo(Syntax val) Compare this directory string to another. |
boolean |
endsWith(DirectoryString endsString) Determine if this directory string ends with the one passed as an argument. |
boolean |
endsWith(Syntax val) Determine if this directory string ends with the one passed as an argument. |
boolean |
equals(DirectoryString dirString) Determine if this directory string equals another. |
boolean |
equals(java.lang.Object obj) Determine if this directory string equals another. |
byte[] |
getBytes() Get this directory string as a byte array. |
byte[] |
getDirectoryBytes() Get this directory string as an array of bytes. |
char[] |
getDirectoryChars() |
java.lang.String |
getDirectoryString() Get a String representation of this directory string. |
byte[] |
getValue() Get this directory string as a byte array. |
int |
hashCode() Get the hashCode value of this directory string. |
int |
indexOf(DirectoryString indexString) Find the first occurance of the index string in this directory string. |
int |
indexOf(Syntax val) Find the first occurance of the index string in this directory string. |
int |
length() Get the length of this directory string. |
java.lang.String |
normalize() Return an upper case, UTF8 normalized version of this string. |
Syntax |
reverse() Returns a new directory string that is the reverse of this one. |
void |
setDirectoryBytes(byte[] directoryBytes) Set this directory string to an array of bytes. |
void |
setDirectoryString(java.lang.String directoryString) Sets the value of this directory string using another. |
void |
setValue(byte[] value) Sets the value of this directory string from an array of bytes |
void |
setValue(byte[] value, int hashCode) Sets the value of this directory string from an array of bytes and bypasses hashcode computation by accepting one as a parameter. |
boolean |
startsWith(DirectoryString startString) Determines if the specified directory string is at the beginning of this directory string. |
boolean |
startsWith(Syntax val) Determines if the specified value is at the start of this string. |
DirectoryString |
substring(int first, int last) |
java.lang.String |
toString() Describe toString method here. |
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 |
---|
public DirectoryString()
public DirectoryString(byte[] bytes)
bytes
- a byte[]
valuepublic DirectoryString(byte[] bytes, int hashCode)
bytes
- a byte[]
valuehashCode
- an int
valuepublic DirectoryString(java.lang.String data)
data
- a String
valueMethod Detail |
---|
public byte[] getDirectoryBytes()
byte[]
valuepublic void setDirectoryBytes(byte[] directoryBytes)
directoryBytes
- a byte[]
valuepublic int compareTo(DirectoryString ds)
compareTo
in interface java.lang.Comparable<DirectoryString>
ds
- a DirectoryString
valueint
valuepublic int compareTo(Syntax val)
compareTo
in class Syntax
val
- a Syntax
valueint
valuepublic boolean endsWith(DirectoryString endsString)
public boolean endsWith(Syntax val)
endsWith
in class Syntax
val
- a Syntax
valueboolean
valuepublic boolean equals(DirectoryString dirString)
dirString
- a DirectoryString
valueboolean
valuepublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- an Object
valueboolean
valuepublic byte[] getBytes()
byte[]
valuepublic java.lang.String getDirectoryString()
String
valuepublic byte[] getValue()
getValue
in class Syntax
byte[]
valuepublic int hashCode()
hashCode
in class java.lang.Object
int
valuepublic int indexOf(DirectoryString indexString)
indexString
- a DirectoryString
valueint
valuepublic int indexOf(Syntax val)
indexOf
in class Syntax
val
- a Syntax
valueint
valuepublic int length()
int
valuepublic java.lang.String normalize()
normalize
in class Syntax
String
valuepublic Syntax reverse()
reverse
in class Syntax
Syntax
valuepublic void setDirectoryString(java.lang.String directoryString)
directoryString
- a String
valuepublic void setValue(byte[] value)
setValue
in class Syntax
value
- a byte[]
valuepublic void setValue(byte[] value, int hashCode)
setValue
in class Syntax
value
- a byte[]
valuehashCode
- an int
valuepublic boolean startsWith(DirectoryString startString)
startString
- a DirectoryString
valueboolean
valuepublic java.lang.Object clone()
clone
in class java.lang.Object
public DirectoryString substring(int first, int last)
public boolean startsWith(Syntax val)
startsWith
in class Syntax
val
- a Syntax
valueboolean
valuepublic java.lang.String toString()
toString
method here.toString
in class java.lang.Object
String
valuepublic char[] getDirectoryChars()
public void validate() throws com.octetstring.vde.syntax.InvalidSyntaxException
Syntax
validate
in class Syntax
com.octetstring.vde.syntax.InvalidSyntaxException
|
Oracle Virtual Directory Java API Reference 11g Release 1 (11.1.1) E10688-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |