org.compass.core.spi
Class ResourceKey

java.lang.Object
  extended by org.compass.core.spi.ResourceKey

public final class ResourceKey
extends Object

A simple resource id key helper.

Author:
kimchy

Constructor Summary
ResourceKey(ResourceMapping resourceMapping, Property[] ids)
           
ResourceKey(ResourceMapping resourceMapping, Resource idResource)
           
 
Method Summary
 String buildUID()
           
 boolean equals(Object other)
           
 String getAlias()
           
 Property[] getIds()
           
 ResourceMapping getResourceMapping()
           
 String getSubIndex()
           
 String getUIDPath()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceKey

public ResourceKey(ResourceMapping resourceMapping,
                   Resource idResource)

ResourceKey

public ResourceKey(ResourceMapping resourceMapping,
                   Property[] ids)
Method Detail

getAlias

public String getAlias()

getSubIndex

public String getSubIndex()

getIds

public Property[] getIds()

buildUID

public String buildUID()
                throws CompassException
Throws:
CompassException

getUIDPath

public String getUIDPath()

getResourceMapping

public ResourceMapping getResourceMapping()

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright (c) 2004-2008 The Compass Project.