public class MidFileData extends java.lang.Object implements IWithNotes, IWithMetadata, IWithValidation, IWithChangeTrack
IWithExtElements and IWithNotes interfaces.| Constructor and Description |
|---|
MidFileData() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNote(Note note)
Adds a note to the list of notes.
|
ChangeTrack |
getChangeTrack()
Gets the
ChangeTrack object for this element, creates an empty of if there is none. |
ExtElements |
getExtElements()
Gets the
ExtElements object associated with this object. |
Metadata |
getMetadata()
Gets the
Metadata object for the parent, creates an empty of if there is none. |
int |
getNoteCount()
Gets the number of notes for this object.
|
Notes |
getNotes()
Gets the
Notes object for this object. |
Validation |
getValidation()
Gets the
Validation object for the parent, creates an empty of if there is none. |
boolean |
hasChangeTrack()
Check if there is at least a revision for this element.
|
boolean |
hasExtElements()
Indicates if there is a
ExtElements object associated with this object. |
boolean |
hasMetadata()
Indicates if the object has metadata.
|
boolean |
hasValidation()
Indicates if the object has validation data.
|
void |
setChangeTrack(ChangeTrack changeTrack)
Sets the
ChangeTrack object for this element. |
ExtElements |
setExtElements(ExtElements elements)
Sets the
ExtElements object associated with this object. |
void |
setMetadata(Metadata metadata)
sets the
Metadata object for the parent. |
void |
setValidation(Validation validation)
sets the
Validation object for the parent. |
public void addNote(Note note)
IWithNotesaddNote in interface IWithNotesnote - the note to add.public Notes getNotes()
IWithNotesNotes object for this object.getNotes in interface IWithNotespublic int getNoteCount()
IWithNotesgetNoteCount in interface IWithNotespublic boolean hasMetadata()
IWithMetadatahasMetadata in interface IWithMetadatapublic Metadata getMetadata()
IWithMetadataMetadata object for the parent, creates an empty of if there is none.getMetadata in interface IWithMetadataMetadata object for the parent (can be empty, but never null).public void setMetadata(Metadata metadata)
IWithMetadataMetadata object for the parent.setMetadata in interface IWithMetadatametadata - the new Metadata object for the parent.public boolean hasValidation()
IWithValidationhasValidation in interface IWithValidationpublic Validation getValidation()
IWithValidationValidation object for the parent, creates an empty of if there is none.getValidation in interface IWithValidationValidation object for the parent (can be empty, but never null).public void setValidation(Validation validation)
IWithValidationValidation object for the parent.setValidation in interface IWithValidationvalidation - the new Validation object for the parent.public ChangeTrack getChangeTrack()
IWithChangeTrackChangeTrack object for this element, creates an empty of if there is none.getChangeTrack in interface IWithChangeTrackChangeTrack object for this element (can be empty, never null).public void setChangeTrack(ChangeTrack changeTrack)
IWithChangeTrackChangeTrack object for this element.setChangeTrack in interface IWithChangeTrackchangeTrack - the ChangeTrack object for this element.public boolean hasChangeTrack()
IWithChangeTrackhasChangeTrack in interface IWithChangeTracktrue if there is at least a revision for this element; false otherwise.public ExtElements getExtElements()
IWithExtElementsExtElements object associated with this object.
If none exists one is created.getExtElements in interface IWithExtElementsExtElements object associated with this object. If none exists one is created.public boolean hasExtElements()
IWithExtElementsExtElements object associated with this object.hasExtElements in interface IWithExtElementsExtElements object associated with this object,
false otherwise.public ExtElements setExtElements(ExtElements elements)
IWithExtElementsExtElements object associated with this object.setExtElements in interface IWithExtElementselements - the ExtElements object associated with this object.
If null, a new ExtElements object is created.ExtElements object associated with this object, never null.