NodeType
Overview
NodeType is an enum in Aspose.Words FOSS for Java.
Specifies the type of a Word document node.
Edition status of its 44 listed members (a property and its accessor methods are listed separately, overloads once): 44 not yet exercised by a verified example.
This enum declares 4 methods for NodeType objects in Java programs.
Available methods include: fromName, getName, getValues, toString.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: values.
Values
| Value | Description |
|---|---|
ANY | Indicates all node types. |
DOCUMENT | A Document object that, as the root of the document tree, provides access to the entire Word document. |
SECTION | A Section object that corresponds to one section in a Word document. |
BODY | A Body object that contains the main text of a section (main text story). |
HEADER_FOOTER | A HeaderFooter object that contains text of a particular header or footer inside a section. |
TABLE | A Table object that represents a table in a Word document. |
ROW | A row of a table. |
CELL | A cell of a table row. |
PARAGRAPH | A paragraph of text. |
BOOKMARK_START | A beginning of a bookmark marker. |
BOOKMARK_END | An end of a bookmark marker. |
EDITABLE_RANGE_START | A beginning of an editable range. |
EDITABLE_RANGE_END | An end of an editable range. |
MOVE_FROM_RANGE_START | A beginning of an MoveFrom range. |
MOVE_FROM_RANGE_END | An end of an MoveFrom range. |
MOVE_TO_RANGE_START | A beginning of an MoveTo range. |
MOVE_TO_RANGE_END | An end of an MoveTo range. |
GROUP_SHAPE | A group of shapes, images, OLE objects or other group shapes. |
SHAPE | A drawing object, such as an OfficeArt shape, image or an OLE object. |
COMMENT | A comment in a Word document. |
FOOTNOTE | A footnote or endnote in a Word document. |
RUN | A run of text. |
FIELD_START | A special character that designates the start of a Word field. |
FIELD_SEPARATOR | A special character that separates the field code from the field result. |
FIELD_END | A special character that designates the end of a Word field. |
FORM_FIELD | A form field. |
SPECIAL_CHAR | A special character that is not one of the more specific special character types. |
SMART_TAG | A smart tag around one or more inline structures (runs, images, fields,etc.) within a paragraph |
STRUCTURED_DOCUMENT_TAG | Allows to define customer-specific information and its means of presentation. |
STRUCTURED_DOCUMENT_TAG_RANGE_START | A start of ranged structured document tag which accepts multi-sections content. |
STRUCTURED_DOCUMENT_TAG_RANGE_END | A end of ranged structured document tag which accepts multi-sections content. |
GLOSSARY_DOCUMENT | A glossary document within the main document. |
BUILDING_BLOCK | A building block within a glossary document (e.g. glossary document entry). |
COMMENT_RANGE_START | A marker node that represents the start of a commented range. |
COMMENT_RANGE_END | A marker node that represents the end of a commented range. |
OFFICE_MATH | An Office Math object. |
SUB_DOCUMENT | A subdocument node which is a link to another document. |
SYSTEM | Reserved for internal use by Aspose.Words. |
NULL | Reserved for internal use by Aspose.Words. |
Properties
| Name | Type | Access | Description |
|---|---|---|---|
values | int[] | Read | Returns array of NodeType values. |
Methods
| Signature | Description |
|---|---|
getName(nodeType: int) → String | Returns JAVA_STYLE string representation of integer NodeType value. |
toString(nodeType: int) → String | Returns DotNetStyle string representation of integer NodeType value. |
fromName(nodeTypeName: String) → int | Returns integer representation by NodeType name. |
getValues() → int[] | Returns array of NodeType values. |