org.alfresco.repo.avm
Class ChildEntryImpl

java.lang.Object
  extended by org.alfresco.repo.avm.ChildEntryImpl
All Implemented Interfaces:
ChildEntry

public class ChildEntryImpl
extends java.lang.Object
implements ChildEntry

An entry in a directory. Contains a name, parent, and child.


Constructor Summary
ChildEntryImpl()
          Default constructor for Hibernate.
ChildEntryImpl(ChildKey key, AVMNode child)
          Make up a brand new entry.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Equals override.
 AVMNode getChild()
          Get the child in this entry.
 ChildKey getKey()
          Get the ChildKey for this ChildEntry.
 int hashCode()
          Get the hash code.
 void setChild(AVMNode child)
          Set the child in this entry.
 void setKey(ChildKey key)
          Set the key for this ChildEntry.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChildEntryImpl

public ChildEntryImpl()
Default constructor for Hibernate.


ChildEntryImpl

public ChildEntryImpl(ChildKey key,
                      AVMNode child)
Make up a brand new entry.

Parameters:
key - The ChildKey.
child - The child.
Method Detail

setKey

public void setKey(ChildKey key)
Set the key for this ChildEntry.

Specified by:
setKey in interface ChildEntry
Parameters:
key - The ChildKey.

getKey

public ChildKey getKey()
Get the ChildKey for this ChildEntry.

Specified by:
getKey in interface ChildEntry
Returns:

setChild

public void setChild(AVMNode child)
Set the child in this entry.

Specified by:
setChild in interface ChildEntry
Parameters:
child -

getChild

public AVMNode getChild()
Get the child in this entry.

Specified by:
getChild in interface ChildEntry
Returns:
The child.

equals

public boolean equals(java.lang.Object obj)
Equals override.

Overrides:
equals in class java.lang.Object
Parameters:
obj -
Returns:
Equality.

hashCode

public int hashCode()
Get the hash code.

Overrides:
hashCode in class java.lang.Object
Returns:
The hash code.


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.