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