Class BlockReference

  • All Implemented Interfaces:
    Serializable, Cloneable, Comparable<EntityReference>

    public class BlockReference
    extends EntityReference
    Reference to a block, a structured part of the content of a document or an object property. While other references are generally unique, defined application wide, and usable to reach their target instance, the meaning of block references depends on their usage, may not be unique and are not necessarily a way to reach the referenced instance. We may have different kind of block references, for different purposes (for example identifying a header in the content, linking signature to macro block, etc...).
    Since:
    6.0M1
    Version:
    $Id: 822b02044ad2f24fcc3c8e6691a7eb0b3f2a0064 $
    See Also:
    Serialized Form
    • Constructor Detail

      • BlockReference

        public BlockReference​(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 block reference from
      • BlockReference

        protected BlockReference​(EntityReference reference,
                                 EntityReference oldReference,
                                 EntityReference newReference)
        Clone an BlockReference, 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
      • BlockReference

        public BlockReference​(String blockName)
        Parameters:
        blockName - the name of the block
      • BlockReference

        public BlockReference​(String blockName,
                              DocumentReference documentReference)
        Parameters:
        blockName - the name of the block
        documentReference - the reference of the parent document of the block
      • BlockReference

        public BlockReference​(String blockName,
                              ObjectPropertyReference objectPropertyReference)
        Parameters:
        blockName - the name of the block
        objectPropertyReference - the reference of the parent object property of the block
      • BlockReference

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