|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.facetmap.simple.SimpleHeading
com.facetmap.simple.SimpleCompoundHeading
public class SimpleCompoundHeading
This Heading can represent any combination of Headings from its underlying Facet. An ID is only present on CompoundHeadings representing less than two Headings.
| Field Summary | |
|---|---|
protected SimpleCompoundHeadingFacet |
compoundFacet
|
protected java.util.List |
headings
|
| Fields inherited from class com.facetmap.simple.SimpleHeading |
|---|
id, title |
| Constructor Summary | |
|---|---|
SimpleCompoundHeading(SimpleCompoundHeadingFacet compoundFacet)
|
|
SimpleCompoundHeading(SimpleCompoundHeadingFacet compoundFacet,
Heading heading)
|
|
SimpleCompoundHeading(SimpleCompoundHeadingFacet compoundFacet,
java.util.List headings)
headings is a list of assigned headings. |
|
SimpleCompoundHeading(SimpleCompoundHeadingFacet compoundFacet,
java.util.List headings,
java.lang.String title)
|
|
| Method Summary | |
|---|---|
Heading |
getBackwardHeading()
It seems reasonable to assume that a set of many headings can have a backward heading that also represents many headings. |
Facet |
getFacet()
Facet to which this Heading belongs. |
java.util.Iterator |
getForwardHeadings()
This method doesn't try to define the forward heading set of multiple headings. |
java.util.Collection |
getHeadings()
|
boolean |
isRoot()
Returns true if this Heading is the root, the starting Heading, of its Facet. |
boolean |
matches(Heading resourceHeading)
Determines whether this heading matches the input heading, for the purposes of SimpleFacetmap routines. |
Heading |
popHeading()
This type of heading, since it technically aggregates headings from different facets, doesn't fit the facetmap model well. |
void |
setTitle(java.lang.String title)
|
java.lang.String |
toString()
|
| Methods inherited from class com.facetmap.simple.SimpleHeading |
|---|
getId, getTitle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.facetmap.Heading |
|---|
getId, getTitle |
| Field Detail |
|---|
protected SimpleCompoundHeadingFacet compoundFacet
protected java.util.List headings
| Constructor Detail |
|---|
public SimpleCompoundHeading(SimpleCompoundHeadingFacet compoundFacet)
public SimpleCompoundHeading(SimpleCompoundHeadingFacet compoundFacet,
java.util.List headings)
headings is a list of assigned headings.
groupFacet - headings -
public SimpleCompoundHeading(SimpleCompoundHeadingFacet compoundFacet,
Heading heading)
public SimpleCompoundHeading(SimpleCompoundHeadingFacet compoundFacet,
java.util.List headings,
java.lang.String title)
| Method Detail |
|---|
public Heading getBackwardHeading()
getBackwardHeading in interface Headingpublic java.util.Iterator getForwardHeadings()
TODO: determine whether it makes sense to return forward headings of all headings represented here.
getForwardHeadings in interface Headingpublic boolean matches(Heading resourceHeading)
SimpleHeadingNote: if x.isRoot() && y.isRoot() , x must match y.
matches in class SimpleHeadingpublic boolean isRoot()
Heading
isRoot in interface HeadingisRoot in class SimpleHeadingFacet.getRootHeading()public Heading popHeading()
To do better, this method would have to return multiple Headings: all the possible results of removing one tag from this Heading.
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Collection getHeadings()
getHeadings in interface CompoundHeadingpublic void setTitle(java.lang.String title)
public Facet getFacet()
Heading
getFacet in interface Heading
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||