|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A set of descriptors that can be associated with multiple source media files.
Field Summary | |
static java.lang.String |
NAMESPACE_URI
The URI used while parsing XML data. |
Method Summary | |
boolean |
addFileName(java.lang.String S)
Adds a new URL/filename to the set that this object describes (Optional). |
DescriptorConfigs |
getDescriptorConfigs()
Gets the DescriptorConfigs associated with this data. |
java.util.Iterator |
getFileNames()
Returns the URL/filenames of all the media this DescriptorData describes. |
DescriptorList |
getFlattenedData()
Returns the list as one long DescriptorList. |
DescriptorList |
getForFile(java.lang.String fileName)
Return the DescriptorList who describe the media with the specified filename or URL String. |
java.lang.String |
getInformation()
Returns a string for .raw output summarizing what media files this descriptor uses and so forth. |
Equivalencies |
getMap()
Gets the Equivalency map for this list. |
org.w3c.dom.Element |
getXMLFormat(org.w3c.dom.Document root)
Gets the data in ViPER XML format. |
boolean |
isMultifile()
Determines if this describes more than one media file. |
void |
merge(DescriptorData other)
Adds the data from the other DescriptorData to this one. |
void |
parseData(org.xml.sax.InputSource input,
Equivalencies map,
RuleHolder limits,
DescriptorConfigs cfgs,
java.io.PrintWriter logfile)
Reads in Descriptor data from the specified XML input source. |
void |
parseData(java.util.List allFiles,
DescriptorConfigs cfgs,
RuleHolder limits,
Equivalencies map)
Reads in Descriptor data from the specified list of filenames with the specified config info. |
DescriptorList |
removeFile(java.lang.String filename)
Removes the given file name and its corresponding metadata. |
void |
resetIds()
Resets all object ids. |
DescriptorList |
setDataForFile(java.lang.String S,
DescriptorList l)
Replaces the DesciptorList associated to a given filename with the DescriptorList that is passed in. |
void |
setMap(Equivalencies map)
Sets the equivalency map of the list. |
Field Detail |
public static final java.lang.String NAMESPACE_URI
Method Detail |
public Equivalencies getMap()
public void setMap(Equivalencies map)
map
- the new Equivalency map for this listpublic DescriptorList getForFile(java.lang.String fileName)
fileName
- the file to get the metadata of
public java.util.Iterator getFileNames()
public DescriptorList removeFile(java.lang.String filename)
filename
- the file to remove
public boolean addFileName(java.lang.String S) throws java.lang.UnsupportedOperationException
S
- the name of the file to add
java.lang.UnsupportedOperationException
public DescriptorList setDataForFile(java.lang.String S, DescriptorList l) throws java.lang.UnsupportedOperationException
S
- the name of the file to changel
- the new value
java.lang.UnsupportedOperationException
public void parseData(java.util.List allFiles, DescriptorConfigs cfgs, RuleHolder limits, Equivalencies map)
allFiles
- Vector of Strings containing the names of the files to search
for config informationcfgs
- the Descriptor configuration informationlimits
- A RuleHolder to determine which descriptors to read inmap
- the equivalencies to use while parsingpublic void parseData(org.xml.sax.InputSource input, Equivalencies map, RuleHolder limits, DescriptorConfigs cfgs, java.io.PrintWriter logfile) throws java.io.IOException, BadDataException
input
- the XML input sourcemap
- the attribute/descriptor equivalencieslimits
- A RuleHolder to determine which descriptors to read incfgs
- if this is null
, the parser is looks for the
<config> element and generates its own config
information. If you want to do things like limitation parsing
and evaluations, you will have to parse the config info first.logfile
- where error and notifications are written
java.io.IOException
BadDataException
public java.lang.String getInformation()
Directory Sequence mapping (list of frame / filename pairs) SEQUENCE | FRAMES Number of Frames
public boolean isMultifile()
true
if this describes more than one media filepublic DescriptorList getFlattenedData()
public DescriptorConfigs getDescriptorConfigs()
DescriptorConfigs
associated with this data.
DescriptorConfigs
associated with this datapublic void merge(DescriptorData other)
other
- the data to merge frompublic org.w3c.dom.Element getXMLFormat(org.w3c.dom.Document root)
root
- the document to use while creating the element
public void resetIds()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |