|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lenya.cms.publication.DocumentLocator
public class DocumentLocator
A DocumentLocator describes a document based on its path in the site structure. The actual document doesn't have to exist.
Constructor Summary | |
---|---|
protected |
DocumentLocator(java.lang.String pubId,
java.lang.String area,
java.lang.String path,
java.lang.String language)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getArea()
|
DocumentLocator |
getAreaVersion(java.lang.String area)
Returns a locator with the same publication ID, path, and language, but with a different area. |
DocumentLocator |
getChild(java.lang.String step)
Returns a child of this locator. |
DocumentLocator |
getDescendant(java.lang.String relativePath)
Returns a descendant of this locator. |
protected java.lang.String |
getKey()
|
protected static java.lang.String |
getKey(java.lang.String pubId,
java.lang.String area,
java.lang.String path,
java.lang.String language)
|
java.lang.String |
getLanguage()
|
DocumentLocator |
getLanguageVersion(java.lang.String language)
Returns a locator with the same publication ID, area, and path, but with a different language. |
static DocumentLocator |
getLocator(java.lang.String pubId,
java.lang.String area,
java.lang.String path,
java.lang.String language)
Returns a specific document locator. |
DocumentLocator |
getParent()
Returns the parent of this locator. |
DocumentLocator |
getParent(java.lang.String defaultPath)
Returns the parent of this locator. |
java.lang.String |
getPath()
|
DocumentLocator |
getPathVersion(java.lang.String path)
Returns a locator with the same publication ID, area, and language, but a different path in the site structure. |
java.lang.String |
getPublicationId()
|
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected DocumentLocator(java.lang.String pubId, java.lang.String area, java.lang.String path, java.lang.String language)
Method Detail |
---|
public static DocumentLocator getLocator(java.lang.String pubId, java.lang.String area, java.lang.String path, java.lang.String language)
pubId
- The publication ID.area
- The area of the document.path
- The path of the document in the site structure.language
- The language of the document.
protected static final java.lang.String getKey(java.lang.String pubId, java.lang.String area, java.lang.String path, java.lang.String language)
public java.lang.String getArea()
public java.lang.String getLanguage()
public java.lang.String getPath()
public java.lang.String getPublicationId()
public DocumentLocator getPathVersion(java.lang.String path)
path
- The path.
public DocumentLocator getDescendant(java.lang.String relativePath)
relativePath
- The relative path which must not begin with a slash and must not be
empty.
public DocumentLocator getChild(java.lang.String step)
step
- The relative path to the child, it must not contain a slash.
public DocumentLocator getParent()
null
if this is the root locator.public DocumentLocator getParent(java.lang.String defaultPath)
defaultPath
- The path of the locator to return if this is the root locator.
public DocumentLocator getLanguageVersion(java.lang.String language)
language
- The language.
protected java.lang.String getKey()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public DocumentLocator getAreaVersion(java.lang.String area)
area
- The area.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |