Class ObjectReference

    • Constructor Detail

      • ObjectReference

        public ObjectReference​(EntityReference reference)
        Constructor which would raise exceptions if the source entity reference does not have the appropriate type or parent, etc.
        Parameters:
        reference - the raw reference to build this object reference from
      • ObjectReference

        protected ObjectReference​(EntityReference reference,
                                  EntityReference oldReference,
                                  EntityReference newReference)
        Clone an ObjectReference, but replace one of the parent in the chain by a new one.
        Parameters:
        reference - the reference that is cloned
        oldReference - the old parent that will be replaced
        newReference - the new parent that will replace oldReference in the chain
        Since:
        3.3M2
      • ObjectReference

        public ObjectReference​(String objectName,
                               DocumentReference documentReference)
        Parameters:
        objectName - the name of the object
        documentReference - the reference of the parent document of the object
      • ObjectReference

        public ObjectReference​(EntityReference reference,
                               EntityReference parent)
        Clone an ObjectReference, but use the specified parent for its new parent.
        Parameters:
        reference - the reference to clone
        parent - the new parent to use
        Since:
        10.8RC1
      • ObjectReference

        @Deprecated
        public ObjectReference​(String wiki,
                               String space,
                               String document,
                               String objectName)
        Deprecated.
        Deprecated constructor.
        Parameters:
        wiki - wiki where the parent document of the object is
        space - space where the parent document of the object is
        document - parent document of the object
        objectName - the name of the object