public class StartGroupData extends InheritedData
| Constructor and Description |
|---|
StartGroupData(java.lang.String id)
Creates a new
StartGroupData object with a given id. |
| 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. |
ExtAttributes |
getExtAttributes()
Gets the
ExtAttributes object for the parent object. |
java.lang.String |
getExtAttributeValue(java.lang.String namespaceURI,
java.lang.String localName)
Gets the value for a given extension attribute.
|
ExtElements |
getExtElements()
Gets the
ExtElements object associated with this object. |
java.lang.String |
getId()
Gets the id for this object.
|
Metadata |
getMetadata()
Gets the
Metadata object for the parent, creates an empty of if there is none. |
java.lang.String |
getName()
Gets the name for this group.
|
int |
getNoteCount()
Gets the number of notes for this object.
|
Notes |
getNotes()
Gets the
Notes object for this object. |
java.lang.String |
getType()
Gets the type for this group.
|
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 |
hasExtAttribute()
Indicates if at least one extension attribute is present.
|
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. |
void |
setExtAttributes(ExtAttributes attributes)
Sets the
ExtAttributes object associated with this object. |
ExtElements |
setExtElements(ExtElements elements)
Sets the
ExtElements object associated with this object. |
void |
setId(java.lang.String id)
Sets the id for this object.
|
void |
setMetadata(Metadata metadata)
sets the
Metadata object for the parent. |
void |
setName(java.lang.String name)
Sets the name for this group.
|
void |
setType(java.lang.String type)
Sets the type for this group.
|
void |
setValidation(Validation validation)
sets the
Validation object for the parent. |
getAnnotatorsRef, getCanResegment, getSourceDir, getTargetDir, getTranslate, setAnnotatorsRef, setCanResegment, setInheritableData, setSourceDir, setTargetDir, setTranslatepublic StartGroupData(java.lang.String id)
StartGroupData object with a given id.id - the id to use for this group (should not be null, but allow it to set it later).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.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 java.lang.String getName()
public void setName(java.lang.String name)
name - the new name to set (can be null).public java.lang.String getType()
public void setType(java.lang.String type)
type - the new type to set (can be null).public 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 void setId(java.lang.String id)
id - the id for this object.public java.lang.String getId()
public void setExtAttributes(ExtAttributes attributes)
IWithExtAttributesExtAttributes object associated with this object.setExtAttributes in interface IWithExtAttributesattributes - the ExtAttributes object associated with this object.
If null, a new ExtAttributes object is created.public ExtAttributes getExtAttributes()
IWithExtAttributesExtAttributes object for the parent object.
If none exists, one is created.getExtAttributes in interface IWithExtAttributesExtAttributes object for the parent object, never null.public boolean hasExtAttribute()
IWithExtAttributeshasExtAttribute in interface IWithExtAttributespublic java.lang.String getExtAttributeValue(java.lang.String namespaceURI,
java.lang.String localName)
IWithExtAttributesgetExtAttributeValue in interface IWithExtAttributesnamespaceURI - the URI of the namespace for the attribute.localName - the name of the attribute.