Package org.cip4.lib.xjdf.schema
Class UsageCounter
- java.lang.Object
-
- org.cip4.lib.xjdf.schema.SpecificResource
-
- org.cip4.lib.xjdf.schema.UsageCounter
-
- All Implemented Interfaces:
java.io.Serializable
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.2", date="2023-07-17T18:40:39Z") public class UsageCounter extends SpecificResource implements java.io.SerializableJava 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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUsageCounter.ScopeJava class for null.
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.String>counterTypesprotected UsageCounter.Scopescope
-
Constructor Summary
Constructors Constructor Description UsageCounter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object object)java.util.List<java.lang.String>getCounterTypes()Gets the value of the counterTypes property.UsageCounter.ScopegetScope()Gets the value of the scope property.inthashCode()voidsetScope(UsageCounter.Scope value)Sets the value of the scope property.UsageCounterwithCounterTypes(java.lang.String... values)UsageCounterwithCounterTypes(java.util.Collection<java.lang.String> values)UsageCounterwithScope(UsageCounter.Scope value)-
Methods inherited from class org.cip4.lib.xjdf.schema.SpecificResource
getOtherAttributes
-
-
-
-
Field Detail
-
counterTypes
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.2", date="2023-07-17T18:40:39Z") protected java.util.List<java.lang.String> counterTypes
-
scope
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.2", date="2023-07-17T18:40:39Z") protected UsageCounter.Scope scope
-
-
Method Detail
-
getCounterTypes
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.2", date="2023-07-17T18:40:39Z") public java.util.List<java.lang.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 Jakarta XML Binding object. This is why there is not a
setmethod 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.2", date="2023-07-17T18:40:39Z") 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.2", date="2023-07-17T18:40:39Z") public void setScope(UsageCounter.Scope value)Sets the value of the scope property.- Parameters:
value- allowed object isUsageCounter.Scope
-
withCounterTypes
public UsageCounter withCounterTypes(java.lang.String... values)
-
withCounterTypes
public UsageCounter withCounterTypes(java.util.Collection<java.lang.String> values)
-
withScope
public UsageCounter withScope(UsageCounter.Scope value)
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classSpecificResource
-
hashCode
public int hashCode()
- Overrides:
hashCodein classSpecificResource
-
-