org.jboss.dna.connector.federation.merge
Class FederatedNode

java.lang.Object
  extended by org.jboss.dna.graph.requests.Request
      extended by org.jboss.dna.graph.requests.CacheableRequest
          extended by org.jboss.dna.graph.requests.ReadNodeRequest
              extended by org.jboss.dna.connector.federation.merge.FederatedNode
All Implemented Interfaces:
Serializable, Iterable<Location>, Cacheable

public class FederatedNode
extends ReadNodeRequest

An in-memory (and temporary) representation of a federated node and it's merged properties and children.

Author:
Randall Hauch
See Also:
Serialized Form

Constructor Summary
FederatedNode(Location location, UUID uuid)
          Create a federated node given the path and UUID.
 
Method Summary
 boolean equals(Object obj)
          
 MergePlan getMergePlan()
          Get the merge plan for this federated node
 UUID getUuid()
          Get the UUID for this federated node.
 int hashCode()
          
 void setMergePlan(MergePlan mergePlan)
          Set the merge plan for this federated node
 void setUuid(UUID uuid)
           
 String toString()
          
 
Methods inherited from class org.jboss.dna.graph.requests.ReadNodeRequest
addChild, addChild, addChild, addProperties, addProperty, at, getActualLocationOfNode, getChildren, getProperties, getPropertiesByName, isReadOnly, iterator, setActualLocationOfNode
 
Methods inherited from class org.jboss.dna.graph.requests.CacheableRequest
getCachePolicy, getTimeLoaded, setCachePolicy, setTimeLoaded
 
Methods inherited from class org.jboss.dna.graph.requests.Request
cancel, getError, hasError, isCancelled, setError
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FederatedNode

public FederatedNode(Location location,
                     UUID uuid)
Create a federated node given the path and UUID.

Parameters:
location - the location of the federated node; may not be null
uuid - the UUID of the federated node; may not be null
Method Detail

getUuid

public UUID getUuid()
Get the UUID for this federated node.

Returns:
the UUID; never null

setUuid

public void setUuid(UUID uuid)
Parameters:
uuid - Sets uuid to the specified value.

getMergePlan

public MergePlan getMergePlan()
Get the merge plan for this federated node

Returns:
the merge plan, or null if there is no merge plan

setMergePlan

public void setMergePlan(MergePlan mergePlan)
Set the merge plan for this federated node

Parameters:
mergePlan - the new merge plan for this federated node; may be null

hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)

Overrides:
equals in class ReadNodeRequest
See Also:
Object.equals(java.lang.Object)

toString

public String toString()

Overrides:
toString in class ReadNodeRequest
See Also:
Object.toString()


Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.