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:
Serializable,org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2
@Generated(value="com.sun.tools.xjc.Driver",
comments="JAXB RI v2.3.6",
date="2022-12-18T20:00:09Z")
public class UsageCounter
extends SpecificResource
implements Serializable, org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2
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:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy) Gets the value of the counterTypes property.getScope()Gets the value of the scope property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy) voidsetScope(UsageCounter.Scope value) Sets the value of the scope property.withCounterTypes(String... values) withCounterTypes(Collection<String> values) withScope(UsageCounter.Scope value) Methods inherited from class org.cip4.lib.xjdf.schema.SpecificResource
getOtherAttributes
-
Field Details
-
counterTypes
-
scope
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v2.3.6", date="2022-12-18T20:00:09Z") protected UsageCounter.Scope scope
-
-
Constructor Details
-
UsageCounter
public UsageCounter()
-
-
Method Details
-
getCounterTypes
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v2.3.6", date="2022-12-18T20:00:09Z") 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
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 -
getScope
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v2.3.6", date="2022-12-18T20:00:09Z") 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 v2.3.6", date="2022-12-18T20:00:09Z") public void setScope(UsageCounter.Scope value) Sets the value of the scope property.- Parameters:
value- allowed object isUsageCounter.Scope
-
withCounterTypes
-
withCounterTypes
-
withScope
-
equals
public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy) - Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2- Overrides:
equalsin classSpecificResource
-
equals
- Overrides:
equalsin classSpecificResource
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy) - Specified by:
hashCodein interfaceorg.jvnet.jaxb2_commons.lang.HashCode2- Overrides:
hashCodein classSpecificResource
-
hashCode
public int hashCode()- Overrides:
hashCodein classSpecificResource
-