Class Attributes

java.lang.Object
org.audiveris.proxymusic.Attributes

public class Attributes extends Object
The attributes element contains musical information that typically changes on measure boundaries. This includes key and time signatures, clefs, transpositions, and staving. When attributes are changed mid-measure, it affects the music in score order, not in MusicXML document order.

Java class for attributes complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="attributes">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <group ref="{}editorial"/>
         <element name="divisions" type="{}positive-divisions" minOccurs="0"/>
         <element name="key" type="{}key" maxOccurs="unbounded" minOccurs="0"/>
         <element name="time" type="{}time" maxOccurs="unbounded" minOccurs="0"/>
         <element name="staves" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" minOccurs="0"/>
         <element name="part-symbol" type="{}part-symbol" minOccurs="0"/>
         <element name="instruments" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" minOccurs="0"/>
         <element name="clef" type="{}clef" maxOccurs="unbounded" minOccurs="0"/>
         <element name="staff-details" type="{}staff-details" maxOccurs="unbounded" minOccurs="0"/>
         <choice>
           <element name="transpose" type="{}transpose" maxOccurs="unbounded" minOccurs="0"/>
           <element name="for-part" type="{}for-part" maxOccurs="unbounded" minOccurs="0"/>
         </choice>
         <element name="directive" maxOccurs="unbounded" minOccurs="0">
           <complexType>
             <simpleContent>
               <extension base="<http://www.w3.org/2001/XMLSchema>string">
                 <attGroup ref="{}print-style"/>
                 <attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/>
               </extension>
             </simpleContent>
           </complexType>
         </element>
         <element name="measure-style" type="{}measure-style" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • Attributes

      public Attributes()
  • Method Details

    • getFootnote

      public FormattedText getFootnote()
      Gets the value of the footnote property.
      Returns:
      possible object is FormattedText
    • setFootnote

      public void setFootnote(FormattedText value)
      Sets the value of the footnote property.
      Parameters:
      value - allowed object is FormattedText
    • getLevel

      public Level getLevel()
      Gets the value of the level property.
      Returns:
      possible object is Level
    • setLevel

      public void setLevel(Level value)
      Sets the value of the level property.
      Parameters:
      value - allowed object is Level
    • getDivisions

      public BigDecimal getDivisions()
      Gets the value of the divisions property.
      Returns:
      possible object is BigDecimal
    • setDivisions

      public void setDivisions(BigDecimal value)
      Sets the value of the divisions property.
      Parameters:
      value - allowed object is BigDecimal
    • getKey

      public List<Key> getKey()
      Gets the value of the key 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 set method for the key property.

      For example, to add a new item, do as follows:

          getKey().add(newItem);
       

      Objects of the following type(s) are allowed in the list Key

    • getTime

      public List<Time> getTime()
      Gets the value of the time 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 set method for the time property.

      For example, to add a new item, do as follows:

          getTime().add(newItem);
       

      Objects of the following type(s) are allowed in the list Time

    • getStaves

      public BigInteger getStaves()
      Gets the value of the staves property.
      Returns:
      possible object is BigInteger
    • setStaves

      public void setStaves(BigInteger value)
      Sets the value of the staves property.
      Parameters:
      value - allowed object is BigInteger
    • getPartSymbol

      public PartSymbol getPartSymbol()
      Gets the value of the partSymbol property.
      Returns:
      possible object is PartSymbol
    • setPartSymbol

      public void setPartSymbol(PartSymbol value)
      Sets the value of the partSymbol property.
      Parameters:
      value - allowed object is PartSymbol
    • getInstruments

      public BigInteger getInstruments()
      Gets the value of the instruments property.
      Returns:
      possible object is BigInteger
    • setInstruments

      public void setInstruments(BigInteger value)
      Sets the value of the instruments property.
      Parameters:
      value - allowed object is BigInteger
    • getClef

      public List<Clef> getClef()
      Gets the value of the clef 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 set method for the clef property.

      For example, to add a new item, do as follows:

          getClef().add(newItem);
       

      Objects of the following type(s) are allowed in the list Clef

    • getStaffDetails

      public List<StaffDetails> getStaffDetails()
      Gets the value of the staffDetails 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 set method for the staffDetails property.

      For example, to add a new item, do as follows:

          getStaffDetails().add(newItem);
       

      Objects of the following type(s) are allowed in the list StaffDetails

    • getTranspose

      public List<Transpose> getTranspose()
      Gets the value of the transpose 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 set method for the transpose property.

      For example, to add a new item, do as follows:

          getTranspose().add(newItem);
       

      Objects of the following type(s) are allowed in the list Transpose

    • getForPart

      public List<ForPart> getForPart()
      Gets the value of the forPart 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 set method for the forPart property.

      For example, to add a new item, do as follows:

          getForPart().add(newItem);
       

      Objects of the following type(s) are allowed in the list ForPart

    • getDirective

      public List<Attributes.Directive> getDirective()
      Gets the value of the directive 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 set method for the directive property.

      For example, to add a new item, do as follows:

          getDirective().add(newItem);
       

      Objects of the following type(s) are allowed in the list Attributes.Directive

    • getMeasureStyle

      public List<MeasureStyle> getMeasureStyle()
      Gets the value of the measureStyle 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 set method for the measureStyle property.

      For example, to add a new item, do as follows:

          getMeasureStyle().add(newItem);
       

      Objects of the following type(s) are allowed in the list MeasureStyle