Class MacroContentSourceReference


  • @Unstable
    public class MacroContentSourceReference
    extends Object
    The reference of a wiki content to use as macro content.
    Since:
    15.1RC1, 14.10.5
    Version:
    $Id: c48cce13c738c63718fd2dbde256ac7c0edc5ef0 $
    • Field Detail

      • TYPE_STRING

        public static final String TYPE_STRING
        The type to use for a reference which contain the actual content.
        See Also:
        Constant Field Values
      • TYPE_SCRIPT

        public static final String TYPE_SCRIPT
        The type to use for a reference targeting a script context entry.
        See Also:
        Constant Field Values
      • TYPE_FILE

        public static final String TYPE_FILE
        The type to use for a reference targeting a local file.
        See Also:
        Constant Field Values
      • TYPE_ENTITY

        public static final String TYPE_ENTITY
        The type to use for a reference targeting an XWiki model entity, the reference is a serialized entity reference (including the entity type).
        See Also:
        Constant Field Values
      • TYPE_DOCUMENT

        public static final String TYPE_DOCUMENT
        The type to use for a reference targeting an XWiki model entity, the reference is a serialized document reference.
        See Also:
        Constant Field Values
      • TYPE_PAGE

        public static final String TYPE_PAGE
        The type to use for a reference targeting an XWiki model entity, the reference is a serialized page reference.
        See Also:
        Constant Field Values
      • TYPE_OBJECT_PROPERTY

        public static final String TYPE_OBJECT_PROPERTY
        The type to use for a reference targeting an XWiki model entity, the reference is a serialized document object property reference.
        See Also:
        Constant Field Values
      • TYPE_PAGE_OBJECT_PROPERTY

        public static final String TYPE_PAGE_OBJECT_PROPERTY
        The type to use for a reference targeting an XWiki model entity, the reference is a serialized page object property reference.
        See Also:
        Constant Field Values
      • TYPE_ATTACHMENT

        public static final String TYPE_ATTACHMENT
        The type to use for a reference targeting an XWiki model entity, the reference is a serialized page reference.
        See Also:
        Constant Field Values
      • TYPE_PAGE_ATTACHMENT

        public static final String TYPE_PAGE_ATTACHMENT
        The type to use for a reference targeting an XWiki model entity, the reference is a serialized page reference.
        See Also:
        Constant Field Values
    • Constructor Detail

      • MacroContentSourceReference

        public MacroContentSourceReference​(String type,
                                           String reference)
        Parameters:
        type - the type of the content
        reference - the reference of the content
    • Method Detail

      • getType

        public String getType()
        Returns:
        the type of the content
      • getReference

        public String getReference()
        Returns:
        the reference of the content
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object