contains the
files comprising a particular bytestream in the order they
should be played back. So, for example, in the case where you
had an audio recording which had to be split into three
different, sequential files, and a text transcription of the
recording in a single file, you would use a par element
containing two seq elements. The first seq element would contain
three area elements, one for each audio file; the second seq
element would contain a single area element, for the text
transcription file.
- See Also:
- Serialized Form
Constructor Summary |
Par()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Par
public Par()
addArea
public void addArea(Area vArea)
throws IndexOutOfBoundsException
- Method addArea
- Parameters:
vArea
-
- Throws:
IndexOutOfBoundsException
addArea
public void addArea(int index,
Area vArea)
throws IndexOutOfBoundsException
- Method addArea
- Parameters:
index
- vArea
-
- Throws:
IndexOutOfBoundsException
addSeq
public void addSeq(Seq vSeq)
throws IndexOutOfBoundsException
- Method addSeq
- Parameters:
vSeq
-
- Throws:
IndexOutOfBoundsException
addSeq
public void addSeq(int index,
Seq vSeq)
throws IndexOutOfBoundsException
- Method addSeq
- Parameters:
index
- vSeq
-
- Throws:
IndexOutOfBoundsException
clearArea
public void clearArea()
- Method clearArea
clearSeq
public void clearSeq()
- Method clearSeq
enumerateArea
public Enumeration enumerateArea()
- Method enumerateArea
- Returns:
- Enumeration
enumerateSeq
public Enumeration enumerateSeq()
- Method enumerateSeq
- Returns:
- Enumeration
getArea
public Area getArea(int index)
throws IndexOutOfBoundsException
- Method getArea
- Parameters:
index
-
- Returns:
- Area
- Throws:
IndexOutOfBoundsException
getArea
public Area[] getArea()
- Method getArea
- Returns:
- Area
getAreaCount
public int getAreaCount()
- Method getAreaCount
- Returns:
- int
getID
public String getID()
- Returns the value of field 'ID'. The field 'ID' has the
following description: ID: an optional XML ID value.
- Returns:
- String
getSeq
public Seq getSeq(int index)
throws IndexOutOfBoundsException
- Method getSeq
- Parameters:
index
-
- Returns:
- Seq
- Throws:
IndexOutOfBoundsException
getSeq
public Seq[] getSeq()
- Method getSeq
- Returns:
- Seq
getSeqCount
public int getSeqCount()
- Method getSeqCount
- Returns:
- int
isValid
public boolean isValid()
- Method isValid
- Returns:
- boolean
marshal
public void marshal(Writer out)
throws MarshalException,
ValidationException
- Method marshal
- Parameters:
out
-
- Throws:
MarshalException
ValidationException
marshal
public void marshal(ContentHandler handler)
throws IOException,
MarshalException,
ValidationException
- Method marshal
- Parameters:
handler
-
- Throws:
IOException
MarshalException
ValidationException
removeArea
public boolean removeArea(Area vArea)
- Method removeArea
- Parameters:
vArea
-
- Returns:
- boolean
removeSeq
public boolean removeSeq(Seq vSeq)
- Method removeSeq
- Parameters:
vSeq
-
- Returns:
- boolean
setArea
public void setArea(int index,
Area vArea)
throws IndexOutOfBoundsException
- Method setArea
- Parameters:
index
- vArea
-
- Throws:
IndexOutOfBoundsException
setArea
public void setArea(Area[] areaArray)
- Method setArea
- Parameters:
areaArray
-
setID
public void setID(String ID)
- Sets the value of field 'ID'. The field 'ID' has the
following description: ID: an optional XML ID value.
- Parameters:
ID
- the value of field 'ID'.
setSeq
public void setSeq(int index,
Seq vSeq)
throws IndexOutOfBoundsException
- Method setSeq
- Parameters:
index
- vSeq
-
- Throws:
IndexOutOfBoundsException
setSeq
public void setSeq(Seq[] seqArray)
- Method setSeq
- Parameters:
seqArray
-
unmarshal
public static Object unmarshal(Reader reader)
throws MarshalException,
ValidationException
- Method unmarshal
- Parameters:
reader
-
- Returns:
- Object
- Throws:
MarshalException
ValidationException
validate
public void validate()
throws ValidationException
- Method validate
- Throws:
ValidationException
Copyright © 2005 Trustees of Indiana University. All Rights Reserved.