public class Outline extends Object implements Cloneable, Serializable
Constructor and Description |
---|
Outline() |
Outline(String type,
String text)
Creates a new outline with the specified type and text values.
|
Outline(String title,
URL xmlUrl,
URL htmlUrl)
Creates an outline with the given title, xmlUrl and htmlUrl.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
boolean |
equals(Object obj) |
List<Attribute> |
getAttributes()
List of attributes on this outline excluding the "common types" for the specification.
|
String |
getAttributeValue(String name)
Returns the value of an attribute on the outline or null.
|
List<String> |
getCategories()
(OPML 2) A List of Strings indicating values in the category attribute.
|
List<Outline> |
getChildren()
A list of sub-outlines for this entry.
|
Date |
getCreated()
(OPML 2) created is the date-time that the outline node was created.
|
String |
getHtmlUrl()
A convenience method to return the value of the htmlUrl attribute.
|
List<Module> |
getModules() |
String |
getText()
The "text" attribute of the outline.
|
String |
getTitle()
The "title" attribute of the outline.
|
String |
getType()
The "type" attribute of the outline.
|
String |
getUrl()
A convenience method to return the value of the url attribute.
|
String |
getXmlUrl()
A convenience method to return the value of the xmlUrl attribute.
|
int |
hashCode() |
boolean |
isBreakpoint()
isBreakpoint is a string, either "true" or "false", indicating whether a breakpoint is set on this outline.
|
boolean |
isComment()
isComment is a string, either "true" or "false", indicating whether the outline is commented or not.
|
void |
setAttributes(List<Attribute> attributes)
List of attributes on this outline excluding the "common types" for the specification.
|
void |
setBreakpoint(boolean breakpoint)
isBreakpoint is a string, either "true" or "false", indicating whether a breakpoint is set on this outline.
|
void |
setCategories(List<String> categories)
(OPML 2) A List of Strings indicating values in the category attribute.
|
void |
setChildren(List<Outline> children)
A list of sub-outlines for this entry.
|
void |
setComment(boolean comment)
isComment is a string, either "true" or "false", indicating whether the outline is commented or not.
|
void |
setCreated(Date created)
(OPML 2) created is the date-time that the outline node was created.
|
void |
setModules(List<Module> modules) |
void |
setText(String text)
The "text" attribute of the outline.
|
void |
setTitle(String title)
The "title" attribute of the outline.
|
void |
setType(String type)
The "type" attribute of the outline.
|
String |
toString() |
public Outline()
public Outline(String type, String text)
type
- type attribute value/text
- text attribute valuepublic Outline(String title, URL xmlUrl, URL htmlUrl)
title
- Title of the entry.xmlUrl
- link to XML file.htmlUrl
- link to html page.public void setAttributes(List<Attribute> attributes)
attributes
- List of attributes on this outline.public List<Attribute> getAttributes()
public void setBreakpoint(boolean breakpoint)
breakpoint
- whether a breakpoint is set on this outline.public boolean isBreakpoint()
public void setCategories(List<String> categories)
categories
- (OPML 2) A List of Strings indicating values in the category attribute.public List<String> getCategories()
public void setChildren(List<Outline> children)
children
- A list of sub-outlines for this entry.public List<Outline> getChildren()
public void setComment(boolean comment)
comment
- whether the outline is commentedpublic boolean isComment()
public void setCreated(Date created)
created
- date-time that the outline node was created.public Date getCreated()
public String getUrl()
public String getHtmlUrl()
public void setText(String text)
text
- The "text" attribute of the outline.public String getText()
public void setTitle(String title)
title
- The "title" attribute of the outline.public String getTitle()
public void setType(String type)
type
- The "type" attribute of the outline.public String getType()
public String getXmlUrl()
public String getAttributeValue(String name)
name
- name of the attribute.Copyright © 2024. All rights reserved.