|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object viper.descriptors.attributes.Attribute_circle.CircleValue
Nested Class Summary |
Nested classes inherited from class viper.descriptors.attributes.Measurable |
Measurable.Difference |
Constructor Summary | |
protected |
Attribute_circle.CircleValue()
|
Method Summary | |
boolean |
equals(java.lang.Object o)
|
Measurable.Difference |
getDifference(Measurable beta,
Measurable blackout,
Measurable ignore,
CanonicalFileDescriptor cfd)
Not optimized version. |
Measurable.Difference |
getDifference(Measurable beta,
Measurable blackout,
Measurable ignore,
CanonicalFileDescriptor cfd,
Measurable.Difference old)
For performance reasons, takes an optional (could be null) Measurable.Difference to replace the data from. |
java.lang.String |
getType()
Gets the type name. |
int |
hashCode()
|
AttributeValue |
setValue(org.w3c.dom.Element el)
Sets the state of the object to the data the xml-dom element represents. |
AttributeValue |
setValue(java.lang.String S)
Sets the state of the object to the data the String represents. |
java.lang.String |
toString()
|
org.w3c.dom.Element |
toXML(org.w3c.dom.Document doc)
Returns an xml element for this object. |
boolean |
validate(AttributeValue v)
Checks to make sure that the value can be set. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected Attribute_circle.CircleValue()
Method Detail |
public java.lang.String toString()
public boolean equals(java.lang.Object o)
public int hashCode()
public Measurable.Difference getDifference(Measurable beta, Measurable blackout, Measurable ignore, CanonicalFileDescriptor cfd)
Measurable
getDifference (..., null)
.
getDifference
in interface Measurable
beta
- the value to subtract/get the difference fromblackout
- the bad regionignore
- the ignored regioncfd
- the media's information
Measurable.getDifference(Measurable, Measurable, Measurable,
CanonicalFileDescriptor, Measurable.Difference)
public Measurable.Difference getDifference(Measurable beta, Measurable blackout, Measurable ignore, CanonicalFileDescriptor cfd, Measurable.Difference old)
Measurable
getDistance (alpha, beta, blackout, ignore)
should
have the same effect as
getDistance (alpha.getDifference (beta, blackout, ignore))
(Except for if alpha is null... then it will use
Distances.DefaultDifference
getDifference
in interface Measurable
beta
- the difference to get againstblackout
- the measurable to count as badignore
- the measurable region to ignorecfd
- the media file descriptorold
- an old difference to copy into, if possible, like the array
passed to list.toArray()
public java.lang.String getType()
Measurable
getType
in interface Measurable
public AttributeValue setValue(org.w3c.dom.Element el)
setValue
in interface AttributeValue
el
- DOM Node to parse
java.lang.IllegalArgumentException
- If the data is ill-formedpublic AttributeValue setValue(java.lang.String S)
setValue
in interface AttributeValue
S
- String representation of this type of value.
java.lang.IllegalArgumentException
- If the data is ill-formedpublic org.w3c.dom.Element toXML(org.w3c.dom.Document doc)
Attribute.DEFAULT_NAMESPACE_QUALIFIER
:type
.
toXML
in interface AttributeValue
doc
- The root for the element.
public boolean validate(AttributeValue v)
validate
in interface AttributeValue
v
- the value to check against this attribute's configuration
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |