public class XarEntry extends LocalDocumentReference
Reuse LocalDocumentReference equals and hashCode implementation so that the entry can be used as a
LocalDocumentReference
in a map.
LOCALE
TOSTRING_SERIALIZER
Constructor and Description |
---|
XarEntry(LocalDocumentReference reference) |
XarEntry(LocalDocumentReference reference,
int defaultAction) |
XarEntry(LocalDocumentReference reference,
int defaultAction,
String entryType) |
XarEntry(LocalDocumentReference reference,
String name) |
XarEntry(LocalDocumentReference reference,
String name,
int defaultAction) |
XarEntry(LocalDocumentReference reference,
String name,
int defaultAction,
String entryType) |
XarEntry(LocalDocumentReference reference,
String name,
String entryType) |
Modifier and Type | Method and Description |
---|---|
int |
getDefaultAction()
Deprecated.
kept for retro compatibility reason (since this used to exist in XAR format) but this method never
really been used in XWiki Standard. Similar concept (among other things) are exposed through
getEntryType() . |
String |
getDocumentName() |
String |
getEntryName() |
String |
getEntryType() |
String |
getSpaceName()
Deprecated.
since 7.2M1, does not make much sense anymore with nested space
|
String |
toString() |
replaceParent
getLocale, setLocale, setParameter
appendParent, compareTo, equals, equals, equals, equalsNonRecursive, extractFirstReference, extractReference, getName, getParameter, getParameters, getParent, getReversedReferenceChain, getRoot, getType, hashCode, hasParent, removeParent, replaceParent, setName, setParameters, setParent, setType, size
public XarEntry(LocalDocumentReference reference)
reference
- the reference of the documentpublic XarEntry(LocalDocumentReference reference, String name)
reference
- the reference of the documentname
- the name of the entry (ZIP style)public XarEntry(LocalDocumentReference reference, String name, String entryType)
reference
- the reference of the documentname
- the name of the entry (ZIP style)entryType
- the type of the entrypublic XarEntry(LocalDocumentReference reference, int defaultAction)
reference
- the reference of the documentdefaultAction
- the default action associated to a XAR entrypublic XarEntry(LocalDocumentReference reference, int defaultAction, String entryType)
reference
- the reference of the documentdefaultAction
- the default action associated to a XAR entryentryType
- the type of the entrypublic XarEntry(LocalDocumentReference reference, String name, int defaultAction)
reference
- the reference of the documentname
- the name of the entry (ZIP style)defaultAction
- the default action associated to a XAR entry (not used at the moment)public XarEntry(LocalDocumentReference reference, String name, int defaultAction, String entryType)
reference
- the reference of the documentname
- the name of the entry (ZIP style)defaultAction
- the default action associated to a XAR entry (not used at the moment)entryType
- the type of the entrypublic String getEntryName()
public String getEntryType()
public String getDocumentName()
public String toString()
toString
in class LocalDocumentReference
@Deprecated public int getDefaultAction()
getEntryType()
.@Deprecated public String getSpaceName()
Copyright © 2004–2022 XWiki. All rights reserved.