|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MAJCommon
Specifies MAJ API-specific common methods implemented by all classes in the embeddable
package. These methods are the common methods from Object
, such as to
string and hash code, that the MAJ API requires are implemented for all embeddable classes.
All classes that implement this interface also provide the following services:
castFromInterface()
method that takes any interface-compatible implementation
of the class and returns a MAJ API-implemented version.setPropertiesFromInterface()
method that takes any interface-compatible
implementation of the class and uses its property values to set all the values of this class.Note that it is not possible to enforce the existence of the methods described above using Java interfaces. These are an implementation pattern that is specific to the MAJ API.
AUID.castFromInterface(tv.amwa.maj.record.AUID)
,
AUID.setPropertiesFromInterface(tv.amwa.maj.record.AUID)
Method Summary | |
---|---|
Object |
clone()
Creates a cloned deep copy of this embeddable value. |
boolean |
equals(Object o)
Tests to see if the given object is equal to this embeddable value. |
int |
hashCode()
Returns a hash code value for this embeddable object. |
String |
toString()
Create and return a human-readable string representation of this embeddable value. |
Method Detail |
---|
String toString()
Create and return a human-readable string representation of this embeddable value.
toString
in class Object
Object.toString()
int hashCode()
Returns a hash code value for this embeddable object.
hashCode
in class Object
Object.hashCode()
boolean equals(Object o)
Tests to see if the given object is equal to this embeddable value. To be equal, the given value must be not null, share the same interface to its value and each of the properties of the value must each be equal.
equals
in class Object
o
- Object to test for equality with.
Object.equals(Object)
Object clone()
Creates a cloned deep copy of this embeddable value. The clone will be initialized to have the same value as this value but exists independently from then on. Changes to this value will not effect the clone and changes to the clone will not effect this. MAJ API clones are true deep clones with no shared references to areas of memory within the original.
This method does not throw a CloneNotSupportedException
as all
embeddable values must implement the Cloneable
interface.
Object.clone()
|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |