|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A DescriptorList contains all Descriptors associated with a given file.
Method Summary | |
void |
addDescriptor(Descriptor desc)
Adds a new descriptor to this set. |
java.lang.Object |
clone()
Makes a copy of this list. |
java.util.Iterator |
cropNodesToSpan(FrameSpan span)
Like getNodesByFrame, but instead, the Iterator returns copies of the Descriptor objects contained here, each cropped to contain no frames beyond the specified FrameSpan. |
java.lang.Object |
get(int i)
Get the i th descriptor in the list. |
java.util.Collection |
getAllDescriptors()
Get a collection of all of the descriptors declared for this source file. |
CanonicalFileDescriptor |
getFileInformation()
Gets file information. |
int |
getHighestFrame()
Returns the greatest frame index of all Descriptor objects. |
java.util.List |
getIds()
Gets all id numbers currently in use. |
int |
getLowestFrame()
Returns the least frame index of all Descriptor objects. |
Equivalencies |
getMap()
Gets the Equivalency map for this list. |
Descriptor |
getNodeByID(java.lang.String type,
java.lang.String name,
int idNumber)
Returns the Descriptor with the given id number and type. |
java.util.Iterator |
getNodesByFrame(FrameSpan subspan)
Returns descriptors that contain the subspan, or some of the subspan, with their framespan set to the subspan intersected with the span. |
java.util.Iterator |
getNodesByID(int idNumber)
Returns all Descriptors with the given id number. |
java.util.Iterator |
getNodesByType(java.lang.String type,
java.lang.String name)
Returns the first Descriptor in the list with the specified category and title. |
DescriptorData |
getParent()
Gets the parent set of descriptor lists. |
org.w3c.dom.Element |
getXMLFormat(org.w3c.dom.Document root)
Returns an XML tree that is a list of Descriptors in XML format. |
boolean |
hasDescriptor(java.lang.String type,
java.lang.String name)
Checks to see if a Descriptor with this category and title is in the list. |
void |
setFileInformation(CanonicalFileDescriptor cfd)
Will try to set the canonical file descriptor. |
void |
setMap(Equivalencies map)
Sets the equivalency map of the list. |
int |
size()
Gets the number of descriptors currently held by this list. |
Methods inherited from interface java.util.Collection |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, toArray, toArray |
Method Detail |
public void setMap(Equivalencies map)
map
- the new equivalency map of the list.public Equivalencies getMap()
public boolean hasDescriptor(java.lang.String type, java.lang.String name)
type
- the category of the Descriptorname
- the name of the Descriptor
public java.util.Iterator getNodesByType(java.lang.String type, java.lang.String name)
type
- the category of the Descriptorname
- the name of the Descriptor
public java.util.Iterator getNodesByID(int idNumber)
idNumber
- the number to look for
public Descriptor getNodeByID(java.lang.String type, java.lang.String name, int idNumber)
type
- the type of the descriptorname
- the name of the descriptoridNumber
- the id number of the descriptor
null
.public java.util.Iterator getNodesByFrame(FrameSpan subspan)
subspan
- the span to check
public java.util.Iterator cropNodesToSpan(FrameSpan span)
span
- the span to get values cropped to
public int getHighestFrame()
public int getLowestFrame()
public java.util.List getIds()
public org.w3c.dom.Element getXMLFormat(org.w3c.dom.Document root)
root
- The document that will contain the tree
public void addDescriptor(Descriptor desc) throws java.lang.UnsupportedOperationException
desc
- the descriptor to add
java.lang.UnsupportedOperationException
public int size()
size
in interface java.util.Collection
public java.lang.Object get(int i)
i
th descriptor in the list.
i
- the offset into the list
i
java.lang.IndexOutOfBoundsException
- if there are not at least i+1 elements in the listpublic DescriptorData getParent()
public java.util.Collection getAllDescriptors()
Collection
of Descriptor
spublic CanonicalFileDescriptor getFileInformation()
public void setFileInformation(CanonicalFileDescriptor cfd)
cfd
- the new canonical file descriptorpublic java.lang.Object clone()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |