|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object viper.descriptors.Descriptor viper.descriptors.DescAggregate
Acts as a composition of Descriptors.
Field Summary |
Fields inherited from class viper.descriptors.Descriptor |
attributes, composable, croppingType, span |
Constructor Summary | |
DescAggregate(DescSingle D)
Constructs a new aggregate descriptor that contains the contents of the given single descriptor. |
|
DescAggregate(java.lang.String designation)
Constructs a new aggregate descriptor with the given category, e.g. |
Method Summary | |
java.lang.Object |
clone()
Generates a new Descriptor Object sharing none of the references of the original but containing identical data. |
Descriptor |
compose(Descriptor D,
EvaluationParameters.ScopeRules scope)
Returns a new descriptor eqiuvalent to this+D. |
Descriptor |
crop(FrameSpan span)
Like clone, but only clones a subset of this descriptor. |
FrameSpan |
getFrameSpan()
Gets the frames where the descriptor exists. |
java.lang.Object |
getID()
Returns the ID number of the descriptor. |
org.w3c.dom.Element |
getXMLFormat(org.w3c.dom.Document root)
Gets an XML representation of the descriptor. |
void |
moveFrame(int offset)
Shifts the descriptor by the given offset. |
int |
numIDs()
Gets the number of descriptor ids associated with this aggregate descriptor. |
void |
setFrameSpan(FrameSpan span)
Replaces the frame span. |
Methods inherited from class viper.descriptors.Descriptor |
compareTo, composeThese, endFrame, equals, getAttribute, getAttribute, getAttributeIndex, getAttributeIndex, getAttributeNames, getAttributesOfType, getCategory, getFilterable, getFullName, getHighestFrame, getName, getType, hasAttrib, hasAttribute, hashCode, isCategory, isComposable, isRoc, named, parseDescriptorConfig, parseDescriptorConfig, printSelf, printSelf, rawFormat, rocAttributeName, sameCategoryAs, setCategory, setName, startFrame, startsWithCategory, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DescAggregate(java.lang.String designation) throws BadDataException
designation
- the descriptor type, e.g. "CONTENT"
BadDataException
- if the designation is
invalid.public DescAggregate(DescSingle D) throws BadDataException
D
- the descriptor
BadDataException
- from parent constructorMethod Detail |
public java.lang.Object clone()
clone
in class Descriptor
public java.lang.Object getID()
getID
in class Descriptor
public int numIDs()
numIDs
in class Descriptor
public FrameSpan getFrameSpan()
Descriptor
getFrameSpan
in class Descriptor
public void moveFrame(int offset)
Descriptor
moveFrame
in class Descriptor
offset
- the number of frames to shift
the descriptor.public void setFrameSpan(FrameSpan span)
Descriptor
setFrameSpan
in class Descriptor
span
- the new spanpublic Descriptor compose(Descriptor D, EvaluationParameters.ScopeRules scope) throws BadDataException, UncomposableException
A.compose (B)
and
B.compose (A)
.
compose
in class Descriptor
D
- The Descriptor to compose with this Descriptor.scope
- The attribute scope and mapping.
BadDataException
- if the compose semantics are not correct.
UncomposableException
- this instance of the descriptor cannot be composed. Check
isComposable!DescAggregate
public org.w3c.dom.Element getXMLFormat(org.w3c.dom.Document root)
getXMLFormat
in class Descriptor
root
- The DOM Document to attach the element to.
java.lang.UnsupportedOperationException
Descriptor.getXMLFormat(Document)
public Descriptor crop(FrameSpan span)
Descriptor
crop
in class Descriptor
span
- the new span
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |