public class RegistryKey extends PolicyHandle implements DCEReadable
POLICY_HANDLE_SIZE
Constructor and Description |
---|
RegistryKey()
Default constructor
|
RegistryKey(RegistryKey parent)
Class constructor
|
RegistryKey(String name)
Class constructor
|
RegistryKey(String name,
RegistryKey parent)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
RegistryKey |
getChild()
Return the child registry key
|
String |
getFullName()
Return the full registry key name by walking back to the root registry key and prepending key
names.
|
RegistryKey |
getParent()
Return the parent key
|
RegistryKey |
getSibling()
Return the sibling key
|
boolean |
hasChild()
Check if the key has child keys
|
boolean |
hasParent()
Check if the registry key has a parent key
|
boolean |
hasSibling()
Check if the registry key has a sibling
|
boolean |
isOpen()
Check if the registry key is open, ie.
|
void |
markClosed()
Mark the registry key as closed, clear the handle
|
void |
readObject(DCEBuffer buf)
Read the key details from a DCE buffer
|
void |
readStrings(DCEBuffer buf)
Read the strings for this object from the DCE/RPC buffer
|
void |
setChild(RegistryKey key)
Set the child registry key
|
protected void |
setParent(RegistryKey parent)
Set the parent registry key for this key
|
void |
setSibling(RegistryKey key)
Set the sibling registry key
|
String |
toString()
Return the registry key as a string
|
clearHandle, getBytes, getName, isValid, loadPolicyHandle, setName, storePolicyHandle
public RegistryKey()
public RegistryKey(String name)
name
- Stringpublic RegistryKey(RegistryKey parent)
parent
- RegistryKeypublic RegistryKey(String name, RegistryKey parent)
name
- Stringparent
- RegistryKeypublic final boolean isOpen()
public final void markClosed()
public final boolean hasParent()
public final RegistryKey getParent()
public final boolean hasSibling()
public final RegistryKey getSibling()
public final boolean hasChild()
public final RegistryKey getChild()
public final String getFullName()
public void readObject(DCEBuffer buf) throws DCEBufferException
readObject
in interface DCEReadable
buf
- DCEBufferDCEBufferException
public void readStrings(DCEBuffer buf) throws DCEBufferException
readStrings
in interface DCEReadable
buf
- DCEBufferDCEBufferException
protected final void setParent(RegistryKey parent)
parent
- RegistryKeypublic final void setSibling(RegistryKey key)
key
- RegistryKeypublic final void setChild(RegistryKey key)
key
- RegistryKeypublic String toString()
toString
in class PolicyHandle
Copyright © 2005–2018 Alfresco Software. All rights reserved.