Package org.audiveris.proxymusic
Class Grouping
java.lang.Object
org.audiveris.proxymusic.Grouping
The grouping type is used for musical analysis. When the type attribute is "start" or "single", it usually contains one or more feature elements. The number attribute is used for distinguishing between overlapping and hierarchical groupings. The member-of attribute allows for easy distinguishing of what grouping elements are in what hierarchy. Feature elements contained within a "stop" type of grouping may be ignored.
This element is flexible to allow for different types of analyses. Future versions of the MusicXML format may add elements that can represent more standardized categories of analysis data, allowing for easier data sharing.
Java class for grouping complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="grouping">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="feature" type="{}feature" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attGroup ref="{}optional-unique-id"/>
<attribute name="type" use="required" type="{}start-stop-single" />
<attribute name="number" type="{http://www.w3.org/2001/XMLSchema}token" default="1" />
<attribute name="member-of" type="{http://www.w3.org/2001/XMLSchema}token" />
</restriction>
</complexContent>
</complexType>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the feature property.getId()Gets the value of the id property.Gets the value of the memberOf property.Gets the value of the number property.getType()Gets the value of the type property.voidSets the value of the id property.voidsetMemberOf(String value) Sets the value of the memberOf property.voidSets the value of the number property.voidsetType(StartStopSingle value) Sets the value of the type property.
-
Field Details
-
feature
-
type
-
number
-
memberOf
-
id
-
-
Constructor Details
-
Grouping
public Grouping()
-
-
Method Details
-
getFeature
Gets the value of the feature property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the feature property.For example, to add a new item, do as follows:
getFeature().add(newItem);Objects of the following type(s) are allowed in the list
Feature -
getType
Gets the value of the type property.- Returns:
- possible object is
StartStopSingle
-
setType
Sets the value of the type property.- Parameters:
value- allowed object isStartStopSingle
-
getNumber
Gets the value of the number property.- Returns:
- possible object is
String
-
setNumber
Sets the value of the number property.- Parameters:
value- allowed object isString
-
getMemberOf
Gets the value of the memberOf property.- Returns:
- possible object is
String
-
setMemberOf
Sets the value of the memberOf property.- Parameters:
value- allowed object isString
-
getId
Gets the value of the id property.- Returns:
- possible object is
String
-
setId
Sets the value of the id property.- Parameters:
value- allowed object isString
-