Class UsageCounter

java.lang.Object
org.cip4.lib.xjdf.schema.SpecificResource
org.cip4.lib.xjdf.schema.UsageCounter
All Implemented Interfaces:
Serializable

@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-19T22:22:03Z") public class UsageCounter extends SpecificResource implements Serializable

Java class for UsageCounter complex type

.

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


 <complexType name="UsageCounter">
   <complexContent>
     <extension base="{http://www.CIP4.org/JDFSchema_2_0}SpecificResource">
       <attribute name="CounterTypes" type="{http://www.w3.org/2001/XMLSchema}NMTOKENS" />
       <attribute name="Scope" use="required">
         <simpleType>
           <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
             <enumeration value="Lifetime"/>
             <enumeration value="PowerOn"/>
             <enumeration value="Job"/>
           </restriction>
         </simpleType>
       </attribute>
       <anyAttribute processContents='lax' namespace='##other'/>
     </extension>
   </complexContent>
 </complexType>
 
See Also:
  • Field Details

    • counterTypes

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-19T22:22:03Z") protected List<String> counterTypes
    • scope

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-19T22:22:03Z") protected UsageCounter.Scope scope
  • Constructor Details

    • UsageCounter

      public UsageCounter()
  • Method Details

    • getCounterTypes

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-19T22:22:03Z") public List<String> getCounterTypes()
      Gets the value of the counterTypes 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 counterTypes property.

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

       getCounterTypes().add(newItem);
       

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

      Returns:
      The value of the counterTypes property.
    • getScope

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-19T22:22:03Z") public UsageCounter.Scope getScope()
      Gets the value of the scope property.
      Returns:
      possible object is UsageCounter.Scope
    • setScope

      @Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-19T22:22:03Z") public void setScope(UsageCounter.Scope value)
      Sets the value of the scope property.
      Parameters:
      value - allowed object is UsageCounter.Scope
    • withCounterTypes

      public UsageCounter withCounterTypes(String... values)
    • withCounterTypes

      public UsageCounter withCounterTypes(Collection<String> values)
    • withScope

      public UsageCounter withScope(UsageCounter.Scope value)
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class SpecificResource
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class SpecificResource