Package com.independentsoft.office.odf
Class BookmarkReference
java.lang.Object
com.independentsoft.office.odf.BookmarkReference
- All Implemented Interfaces:
IContentElement,IParagraphContent
Represents a reference to a BookmarkStart or Bookmark object in a text.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the BookmarkReference class. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Returns all content elements.Specifies what information about a reference is displayed.getName()Gets the name attribute of Bookmark or BookmarkStart object in a text.Returns the parent content element.getValue()Gets the reference to a Bookmark or BookmarkStart object.voidsetFormat(ReferenceFormat format)Specifies what information about a reference is displayed.voidSets the name attribute of Bookmark or BookmarkStart object in a text.voidsetParent(IContentElement parent)Sets the parent content element.voidSets the reference to a Bookmark or BookmarkStart object.toString()Converts the value of the current BookmarkReference object to its equivalent string representation.
-
Constructor Details
-
BookmarkReference
public BookmarkReference()Initializes a new instance of the BookmarkReference class.
-
-
Method Details
-
getContentElements
Returns all content elements.- Specified by:
getContentElementsin interfaceIContentElement- Returns:
- A collection of content elements.
-
getParent
Returns the parent content element.- Specified by:
getParentin interfaceIContentElement- Returns:
- the parent
-
setParent
Sets the parent content element.- Specified by:
setParentin interfaceIContentElement- Parameters:
parent- the new parent
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein interfaceIContentElement- Specified by:
clonein interfaceIParagraphContent- Overrides:
clonein classObject- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current BookmarkReference object to its equivalent string representation. -
getName
Gets the name attribute of Bookmark or BookmarkStart object in a text.- Returns:
- the name
-
setName
Sets the name attribute of Bookmark or BookmarkStart object in a text.- Parameters:
name- the new name
-
getFormat
Specifies what information about a reference is displayed. If the reference format is not specified, the page format is used as the default.- Returns:
- the format
-
setFormat
Specifies what information about a reference is displayed. If the reference format is not specified, the page format is used as the default.- Parameters:
format- the new format
-
getValue
Gets the reference to a Bookmark or BookmarkStart object.- Returns:
- the value
-
setValue
Sets the reference to a Bookmark or BookmarkStart object.- Parameters:
value- the new value
-