All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mitre.cybox.objects.WindowsTask Maven / Gradle / Ivy

There is a newer version: 1.2.0.2
Show newest version
/**
 * Copyright (c) 2015, The MITRE Corporation. All rights reserved.
 * See LICENSE for complete terms.
 */

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-2 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2015.06.23 at 10:59:44 AM EDT 
//

package org.mitre.cybox.objects;

import java.io.StringReader;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.namespace.QName;
import javax.xml.transform.stream.StreamSource;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
import org.mitre.cybox.common_2.Base64BinaryObjectPropertyType;
import org.mitre.cybox.common_2.CustomPropertiesType;
import org.mitre.cybox.common_2.DateTimeObjectPropertyType;
import org.mitre.cybox.common_2.LongObjectPropertyType;
import org.mitre.cybox.common_2.ObjectPropertiesType;
import org.mitre.cybox.common_2.StringObjectPropertyType;
import org.mitre.cybox.common_2.UnsignedLongObjectPropertyType;
import org.mitre.stix.DocumentUtilities;
import org.mitre.stix.STIXSchema;
import org.mitre.stix.ValidationEventHandler;

/**
 * The WindowsTaskObjectType type is intended to characterize Windows task scheduler tasks. See Also: http://msdn.microsoft.com/en-us/library/windows/desktop/aa381311(v=vs.85).aspx.
 * 
 * 

Java class for WindowsTaskObjectType complex type. * *

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

 * <complexType name="WindowsTaskObjectType">
 *   <complexContent>
 *     <extension base="{http://cybox.mitre.org/common-2}ObjectPropertiesType">
 *       <sequence>
 *         <element name="Status" type="{http://cybox.mitre.org/objects#WinTaskObject-2}TaskStatusType" minOccurs="0"/>
 *         <element name="Priority" type="{http://cybox.mitre.org/objects#WinTaskObject-2}TaskPriorityType" minOccurs="0"/>
 *         <element name="Name" type="{http://cybox.mitre.org/common-2}StringObjectPropertyType" minOccurs="0"/>
 *         <element name="Application_Name" type="{http://cybox.mitre.org/common-2}StringObjectPropertyType" minOccurs="0"/>
 *         <element name="Parameters" type="{http://cybox.mitre.org/common-2}StringObjectPropertyType" minOccurs="0"/>
 *         <element name="Flags" type="{http://cybox.mitre.org/objects#WinTaskObject-2}TaskFlagType" minOccurs="0"/>
 *         <element name="Account_Name" type="{http://cybox.mitre.org/common-2}StringObjectPropertyType" minOccurs="0"/>
 *         <element name="Account_Run_Level" type="{http://cybox.mitre.org/common-2}StringObjectPropertyType" minOccurs="0"/>
 *         <element name="Account_Logon_Type" type="{http://cybox.mitre.org/common-2}StringObjectPropertyType" minOccurs="0"/>
 *         <element name="Creator" type="{http://cybox.mitre.org/common-2}StringObjectPropertyType" minOccurs="0"/>
 *         <element name="Creation_Date" type="{http://cybox.mitre.org/common-2}DateTimeObjectPropertyType" minOccurs="0"/>
 *         <element name="Most_Recent_Run_Time" type="{http://cybox.mitre.org/common-2}DateTimeObjectPropertyType" minOccurs="0"/>
 *         <element name="Exit_Code" type="{http://cybox.mitre.org/common-2}LongObjectPropertyType" minOccurs="0"/>
 *         <element name="Max_Run_Time" type="{http://cybox.mitre.org/common-2}UnsignedLongObjectPropertyType" minOccurs="0"/>
 *         <element name="Next_Run_Time" type="{http://cybox.mitre.org/common-2}DateTimeObjectPropertyType" minOccurs="0"/>
 *         <element name="Action_List" type="{http://cybox.mitre.org/objects#WinTaskObject-2}TaskActionListType" minOccurs="0"/>
 *         <element name="Trigger_List" type="{http://cybox.mitre.org/objects#WinTaskObject-2}TriggerListType" minOccurs="0"/>
 *         <element name="Comment" type="{http://cybox.mitre.org/common-2}StringObjectPropertyType" minOccurs="0"/>
 *         <element name="Working_Directory" type="{http://cybox.mitre.org/common-2}StringObjectPropertyType" minOccurs="0"/>
 *         <element name="Work_Item_Data" type="{http://cybox.mitre.org/common-2}Base64BinaryObjectPropertyType" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "WindowsTaskObjectType", namespace = "http://cybox.mitre.org/objects#WinTaskObject-2", propOrder = { "status", "priority", "name", "applicationName", "parameters", "flags", "accountName", "accountRunLevel", "accountLogonType", "creator", "creationDate", "mostRecentRunTime", "exitCode", "maxRunTime", "nextRunTime", "actionList", "triggerList", "comment", "workingDirectory", "workItemData" }) @XmlRootElement(name = "Windows_Task", namespace = "http://cybox.mitre.org/objects#WinTaskObject-2") public class WindowsTask extends ObjectPropertiesType implements Equals, HashCode, ToString { @XmlElement(name = "Status") protected TaskStatusType status; @XmlElement(name = "Priority") protected TaskPriorityType priority; @XmlElement(name = "Name") protected StringObjectPropertyType name; @XmlElement(name = "Application_Name") protected StringObjectPropertyType applicationName; @XmlElement(name = "Parameters") protected StringObjectPropertyType parameters; @XmlElement(name = "Flags") protected TaskFlagType flags; @XmlElement(name = "Account_Name") protected StringObjectPropertyType accountName; @XmlElement(name = "Account_Run_Level") protected StringObjectPropertyType accountRunLevel; @XmlElement(name = "Account_Logon_Type") protected StringObjectPropertyType accountLogonType; @XmlElement(name = "Creator") protected StringObjectPropertyType creator; @XmlElement(name = "Creation_Date") protected DateTimeObjectPropertyType creationDate; @XmlElement(name = "Most_Recent_Run_Time") protected DateTimeObjectPropertyType mostRecentRunTime; @XmlElement(name = "Exit_Code") protected LongObjectPropertyType exitCode; @XmlElement(name = "Max_Run_Time") protected UnsignedLongObjectPropertyType maxRunTime; @XmlElement(name = "Next_Run_Time") protected DateTimeObjectPropertyType nextRunTime; @XmlElement(name = "Action_List") protected TaskActionListType actionList; @XmlElement(name = "Trigger_List") protected TriggerListType triggerList; @XmlElement(name = "Comment") protected StringObjectPropertyType comment; @XmlElement(name = "Working_Directory") protected StringObjectPropertyType workingDirectory; @XmlElement(name = "Work_Item_Data") protected Base64BinaryObjectPropertyType workItemData; /** * Default no-arg constructor * */ public WindowsTask() { super(); } /** * Fully-initialising value constructor * */ public WindowsTask(final CustomPropertiesType customProperties, final QName objectReference, final TaskStatusType status, final TaskPriorityType priority, final StringObjectPropertyType name, final StringObjectPropertyType applicationName, final StringObjectPropertyType parameters, final TaskFlagType flags, final StringObjectPropertyType accountName, final StringObjectPropertyType accountRunLevel, final StringObjectPropertyType accountLogonType, final StringObjectPropertyType creator, final DateTimeObjectPropertyType creationDate, final DateTimeObjectPropertyType mostRecentRunTime, final LongObjectPropertyType exitCode, final UnsignedLongObjectPropertyType maxRunTime, final DateTimeObjectPropertyType nextRunTime, final TaskActionListType actionList, final TriggerListType triggerList, final StringObjectPropertyType comment, final StringObjectPropertyType workingDirectory, final Base64BinaryObjectPropertyType workItemData) { super(customProperties, objectReference); this.status = status; this.priority = priority; this.name = name; this.applicationName = applicationName; this.parameters = parameters; this.flags = flags; this.accountName = accountName; this.accountRunLevel = accountRunLevel; this.accountLogonType = accountLogonType; this.creator = creator; this.creationDate = creationDate; this.mostRecentRunTime = mostRecentRunTime; this.exitCode = exitCode; this.maxRunTime = maxRunTime; this.nextRunTime = nextRunTime; this.actionList = actionList; this.triggerList = triggerList; this.comment = comment; this.workingDirectory = workingDirectory; this.workItemData = workItemData; } /** * Gets the value of the status property. * * @return * possible object is * {@link TaskStatusType } * */ public TaskStatusType getStatus() { return status; } /** * Sets the value of the status property. * * @param value * allowed object is * {@link TaskStatusType } * */ public void setStatus(TaskStatusType value) { this.status = value; } /** * Gets the value of the priority property. * * @return * possible object is * {@link TaskPriorityType } * */ public TaskPriorityType getPriority() { return priority; } /** * Sets the value of the priority property. * * @param value * allowed object is * {@link TaskPriorityType } * */ public void setPriority(TaskPriorityType value) { this.priority = value; } /** * Gets the value of the name property. * * @return * possible object is * {@link StringObjectPropertyType } * */ public StringObjectPropertyType getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link StringObjectPropertyType } * */ public void setName(StringObjectPropertyType value) { this.name = value; } /** * Gets the value of the applicationName property. * * @return * possible object is * {@link StringObjectPropertyType } * */ public StringObjectPropertyType getApplicationName() { return applicationName; } /** * Sets the value of the applicationName property. * * @param value * allowed object is * {@link StringObjectPropertyType } * */ public void setApplicationName(StringObjectPropertyType value) { this.applicationName = value; } /** * Gets the value of the parameters property. * * @return * possible object is * {@link StringObjectPropertyType } * */ public StringObjectPropertyType getParameters() { return parameters; } /** * Sets the value of the parameters property. * * @param value * allowed object is * {@link StringObjectPropertyType } * */ public void setParameters(StringObjectPropertyType value) { this.parameters = value; } /** * Gets the value of the flags property. * * @return * possible object is * {@link TaskFlagType } * */ public TaskFlagType getFlags() { return flags; } /** * Sets the value of the flags property. * * @param value * allowed object is * {@link TaskFlagType } * */ public void setFlags(TaskFlagType value) { this.flags = value; } /** * Gets the value of the accountName property. * * @return * possible object is * {@link StringObjectPropertyType } * */ public StringObjectPropertyType getAccountName() { return accountName; } /** * Sets the value of the accountName property. * * @param value * allowed object is * {@link StringObjectPropertyType } * */ public void setAccountName(StringObjectPropertyType value) { this.accountName = value; } /** * Gets the value of the accountRunLevel property. * * @return * possible object is * {@link StringObjectPropertyType } * */ public StringObjectPropertyType getAccountRunLevel() { return accountRunLevel; } /** * Sets the value of the accountRunLevel property. * * @param value * allowed object is * {@link StringObjectPropertyType } * */ public void setAccountRunLevel(StringObjectPropertyType value) { this.accountRunLevel = value; } /** * Gets the value of the accountLogonType property. * * @return * possible object is * {@link StringObjectPropertyType } * */ public StringObjectPropertyType getAccountLogonType() { return accountLogonType; } /** * Sets the value of the accountLogonType property. * * @param value * allowed object is * {@link StringObjectPropertyType } * */ public void setAccountLogonType(StringObjectPropertyType value) { this.accountLogonType = value; } /** * Gets the value of the creator property. * * @return * possible object is * {@link StringObjectPropertyType } * */ public StringObjectPropertyType getCreator() { return creator; } /** * Sets the value of the creator property. * * @param value * allowed object is * {@link StringObjectPropertyType } * */ public void setCreator(StringObjectPropertyType value) { this.creator = value; } /** * Gets the value of the creationDate property. * * @return * possible object is * {@link DateTimeObjectPropertyType } * */ public DateTimeObjectPropertyType getCreationDate() { return creationDate; } /** * Sets the value of the creationDate property. * * @param value * allowed object is * {@link DateTimeObjectPropertyType } * */ public void setCreationDate(DateTimeObjectPropertyType value) { this.creationDate = value; } /** * Gets the value of the mostRecentRunTime property. * * @return * possible object is * {@link DateTimeObjectPropertyType } * */ public DateTimeObjectPropertyType getMostRecentRunTime() { return mostRecentRunTime; } /** * Sets the value of the mostRecentRunTime property. * * @param value * allowed object is * {@link DateTimeObjectPropertyType } * */ public void setMostRecentRunTime(DateTimeObjectPropertyType value) { this.mostRecentRunTime = value; } /** * Gets the value of the exitCode property. * * @return * possible object is * {@link LongObjectPropertyType } * */ public LongObjectPropertyType getExitCode() { return exitCode; } /** * Sets the value of the exitCode property. * * @param value * allowed object is * {@link LongObjectPropertyType } * */ public void setExitCode(LongObjectPropertyType value) { this.exitCode = value; } /** * Gets the value of the maxRunTime property. * * @return * possible object is * {@link UnsignedLongObjectPropertyType } * */ public UnsignedLongObjectPropertyType getMaxRunTime() { return maxRunTime; } /** * Sets the value of the maxRunTime property. * * @param value * allowed object is * {@link UnsignedLongObjectPropertyType } * */ public void setMaxRunTime(UnsignedLongObjectPropertyType value) { this.maxRunTime = value; } /** * Gets the value of the nextRunTime property. * * @return * possible object is * {@link DateTimeObjectPropertyType } * */ public DateTimeObjectPropertyType getNextRunTime() { return nextRunTime; } /** * Sets the value of the nextRunTime property. * * @param value * allowed object is * {@link DateTimeObjectPropertyType } * */ public void setNextRunTime(DateTimeObjectPropertyType value) { this.nextRunTime = value; } /** * Gets the value of the actionList property. * * @return * possible object is * {@link TaskActionListType } * */ public TaskActionListType getActionList() { return actionList; } /** * Sets the value of the actionList property. * * @param value * allowed object is * {@link TaskActionListType } * */ public void setActionList(TaskActionListType value) { this.actionList = value; } /** * Gets the value of the triggerList property. * * @return * possible object is * {@link TriggerListType } * */ public TriggerListType getTriggerList() { return triggerList; } /** * Sets the value of the triggerList property. * * @param value * allowed object is * {@link TriggerListType } * */ public void setTriggerList(TriggerListType value) { this.triggerList = value; } /** * Gets the value of the comment property. * * @return * possible object is * {@link StringObjectPropertyType } * */ public StringObjectPropertyType getComment() { return comment; } /** * Sets the value of the comment property. * * @param value * allowed object is * {@link StringObjectPropertyType } * */ public void setComment(StringObjectPropertyType value) { this.comment = value; } /** * Gets the value of the workingDirectory property. * * @return * possible object is * {@link StringObjectPropertyType } * */ public StringObjectPropertyType getWorkingDirectory() { return workingDirectory; } /** * Sets the value of the workingDirectory property. * * @param value * allowed object is * {@link StringObjectPropertyType } * */ public void setWorkingDirectory(StringObjectPropertyType value) { this.workingDirectory = value; } /** * Gets the value of the workItemData property. * * @return * possible object is * {@link Base64BinaryObjectPropertyType } * */ public Base64BinaryObjectPropertyType getWorkItemData() { return workItemData; } /** * Sets the value of the workItemData property. * * @param value * allowed object is * {@link Base64BinaryObjectPropertyType } * */ public void setWorkItemData(Base64BinaryObjectPropertyType value) { this.workItemData = value; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof WindowsTask)) { return false; } if (this == object) { return true; } if (!super.equals(thisLocator, thatLocator, object, strategy)) { return false; } final WindowsTask that = ((WindowsTask) object); { TaskStatusType lhsStatus; lhsStatus = this.getStatus(); TaskStatusType rhsStatus; rhsStatus = that.getStatus(); if (!strategy.equals( LocatorUtils.property(thisLocator, "status", lhsStatus), LocatorUtils.property(thatLocator, "status", rhsStatus), lhsStatus, rhsStatus)) { return false; } } { TaskPriorityType lhsPriority; lhsPriority = this.getPriority(); TaskPriorityType rhsPriority; rhsPriority = that.getPriority(); if (!strategy .equals(LocatorUtils.property(thisLocator, "priority", lhsPriority), LocatorUtils.property(thatLocator, "priority", rhsPriority), lhsPriority, rhsPriority)) { return false; } } { StringObjectPropertyType lhsName; lhsName = this.getName(); StringObjectPropertyType rhsName; rhsName = that.getName(); if (!strategy.equals( LocatorUtils.property(thisLocator, "name", lhsName), LocatorUtils.property(thatLocator, "name", rhsName), lhsName, rhsName)) { return false; } } { StringObjectPropertyType lhsApplicationName; lhsApplicationName = this.getApplicationName(); StringObjectPropertyType rhsApplicationName; rhsApplicationName = that.getApplicationName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "applicationName", lhsApplicationName), LocatorUtils .property(thatLocator, "applicationName", rhsApplicationName), lhsApplicationName, rhsApplicationName)) { return false; } } { StringObjectPropertyType lhsParameters; lhsParameters = this.getParameters(); StringObjectPropertyType rhsParameters; rhsParameters = that.getParameters(); if (!strategy.equals(LocatorUtils.property(thisLocator, "parameters", lhsParameters), LocatorUtils.property( thatLocator, "parameters", rhsParameters), lhsParameters, rhsParameters)) { return false; } } { TaskFlagType lhsFlags; lhsFlags = this.getFlags(); TaskFlagType rhsFlags; rhsFlags = that.getFlags(); if (!strategy.equals( LocatorUtils.property(thisLocator, "flags", lhsFlags), LocatorUtils.property(thatLocator, "flags", rhsFlags), lhsFlags, rhsFlags)) { return false; } } { StringObjectPropertyType lhsAccountName; lhsAccountName = this.getAccountName(); StringObjectPropertyType rhsAccountName; rhsAccountName = that.getAccountName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "accountName", lhsAccountName), LocatorUtils.property( thatLocator, "accountName", rhsAccountName), lhsAccountName, rhsAccountName)) { return false; } } { StringObjectPropertyType lhsAccountRunLevel; lhsAccountRunLevel = this.getAccountRunLevel(); StringObjectPropertyType rhsAccountRunLevel; rhsAccountRunLevel = that.getAccountRunLevel(); if (!strategy.equals(LocatorUtils.property(thisLocator, "accountRunLevel", lhsAccountRunLevel), LocatorUtils .property(thatLocator, "accountRunLevel", rhsAccountRunLevel), lhsAccountRunLevel, rhsAccountRunLevel)) { return false; } } { StringObjectPropertyType lhsAccountLogonType; lhsAccountLogonType = this.getAccountLogonType(); StringObjectPropertyType rhsAccountLogonType; rhsAccountLogonType = that.getAccountLogonType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "accountLogonType", lhsAccountLogonType), LocatorUtils .property(thatLocator, "accountLogonType", rhsAccountLogonType), lhsAccountLogonType, rhsAccountLogonType)) { return false; } } { StringObjectPropertyType lhsCreator; lhsCreator = this.getCreator(); StringObjectPropertyType rhsCreator; rhsCreator = that.getCreator(); if (!strategy.equals( LocatorUtils.property(thisLocator, "creator", lhsCreator), LocatorUtils.property(thatLocator, "creator", rhsCreator), lhsCreator, rhsCreator)) { return false; } } { DateTimeObjectPropertyType lhsCreationDate; lhsCreationDate = this.getCreationDate(); DateTimeObjectPropertyType rhsCreationDate; rhsCreationDate = that.getCreationDate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "creationDate", lhsCreationDate), LocatorUtils.property( thatLocator, "creationDate", rhsCreationDate), lhsCreationDate, rhsCreationDate)) { return false; } } { DateTimeObjectPropertyType lhsMostRecentRunTime; lhsMostRecentRunTime = this.getMostRecentRunTime(); DateTimeObjectPropertyType rhsMostRecentRunTime; rhsMostRecentRunTime = that.getMostRecentRunTime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "mostRecentRunTime", lhsMostRecentRunTime), LocatorUtils .property(thatLocator, "mostRecentRunTime", rhsMostRecentRunTime), lhsMostRecentRunTime, rhsMostRecentRunTime)) { return false; } } { LongObjectPropertyType lhsExitCode; lhsExitCode = this.getExitCode(); LongObjectPropertyType rhsExitCode; rhsExitCode = that.getExitCode(); if (!strategy .equals(LocatorUtils.property(thisLocator, "exitCode", lhsExitCode), LocatorUtils.property(thatLocator, "exitCode", rhsExitCode), lhsExitCode, rhsExitCode)) { return false; } } { UnsignedLongObjectPropertyType lhsMaxRunTime; lhsMaxRunTime = this.getMaxRunTime(); UnsignedLongObjectPropertyType rhsMaxRunTime; rhsMaxRunTime = that.getMaxRunTime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "maxRunTime", lhsMaxRunTime), LocatorUtils.property( thatLocator, "maxRunTime", rhsMaxRunTime), lhsMaxRunTime, rhsMaxRunTime)) { return false; } } { DateTimeObjectPropertyType lhsNextRunTime; lhsNextRunTime = this.getNextRunTime(); DateTimeObjectPropertyType rhsNextRunTime; rhsNextRunTime = that.getNextRunTime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "nextRunTime", lhsNextRunTime), LocatorUtils.property( thatLocator, "nextRunTime", rhsNextRunTime), lhsNextRunTime, rhsNextRunTime)) { return false; } } { TaskActionListType lhsActionList; lhsActionList = this.getActionList(); TaskActionListType rhsActionList; rhsActionList = that.getActionList(); if (!strategy.equals(LocatorUtils.property(thisLocator, "actionList", lhsActionList), LocatorUtils.property( thatLocator, "actionList", rhsActionList), lhsActionList, rhsActionList)) { return false; } } { TriggerListType lhsTriggerList; lhsTriggerList = this.getTriggerList(); TriggerListType rhsTriggerList; rhsTriggerList = that.getTriggerList(); if (!strategy.equals(LocatorUtils.property(thisLocator, "triggerList", lhsTriggerList), LocatorUtils.property( thatLocator, "triggerList", rhsTriggerList), lhsTriggerList, rhsTriggerList)) { return false; } } { StringObjectPropertyType lhsComment; lhsComment = this.getComment(); StringObjectPropertyType rhsComment; rhsComment = that.getComment(); if (!strategy.equals( LocatorUtils.property(thisLocator, "comment", lhsComment), LocatorUtils.property(thatLocator, "comment", rhsComment), lhsComment, rhsComment)) { return false; } } { StringObjectPropertyType lhsWorkingDirectory; lhsWorkingDirectory = this.getWorkingDirectory(); StringObjectPropertyType rhsWorkingDirectory; rhsWorkingDirectory = that.getWorkingDirectory(); if (!strategy.equals(LocatorUtils.property(thisLocator, "workingDirectory", lhsWorkingDirectory), LocatorUtils .property(thatLocator, "workingDirectory", rhsWorkingDirectory), lhsWorkingDirectory, rhsWorkingDirectory)) { return false; } } { Base64BinaryObjectPropertyType lhsWorkItemData; lhsWorkItemData = this.getWorkItemData(); Base64BinaryObjectPropertyType rhsWorkItemData; rhsWorkItemData = that.getWorkItemData(); if (!strategy.equals(LocatorUtils.property(thisLocator, "workItemData", lhsWorkItemData), LocatorUtils.property( thatLocator, "workItemData", rhsWorkItemData), lhsWorkItemData, rhsWorkItemData)) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = super.hashCode(locator, strategy); { TaskStatusType theStatus; theStatus = this.getStatus(); currentHashCode = strategy.hashCode( LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus); } { TaskPriorityType thePriority; thePriority = this.getPriority(); currentHashCode = strategy.hashCode( LocatorUtils.property(locator, "priority", thePriority), currentHashCode, thePriority); } { StringObjectPropertyType theName; theName = this.getName(); currentHashCode = strategy.hashCode( LocatorUtils.property(locator, "name", theName), currentHashCode, theName); } { StringObjectPropertyType theApplicationName; theApplicationName = this.getApplicationName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "applicationName", theApplicationName), currentHashCode, theApplicationName); } { StringObjectPropertyType theParameters; theParameters = this.getParameters(); currentHashCode = strategy .hashCode(LocatorUtils.property(locator, "parameters", theParameters), currentHashCode, theParameters); } { TaskFlagType theFlags; theFlags = this.getFlags(); currentHashCode = strategy.hashCode( LocatorUtils.property(locator, "flags", theFlags), currentHashCode, theFlags); } { StringObjectPropertyType theAccountName; theAccountName = this.getAccountName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "accountName", theAccountName), currentHashCode, theAccountName); } { StringObjectPropertyType theAccountRunLevel; theAccountRunLevel = this.getAccountRunLevel(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "accountRunLevel", theAccountRunLevel), currentHashCode, theAccountRunLevel); } { StringObjectPropertyType theAccountLogonType; theAccountLogonType = this.getAccountLogonType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "accountLogonType", theAccountLogonType), currentHashCode, theAccountLogonType); } { StringObjectPropertyType theCreator; theCreator = this.getCreator(); currentHashCode = strategy.hashCode( LocatorUtils.property(locator, "creator", theCreator), currentHashCode, theCreator); } { DateTimeObjectPropertyType theCreationDate; theCreationDate = this.getCreationDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "creationDate", theCreationDate), currentHashCode, theCreationDate); } { DateTimeObjectPropertyType theMostRecentRunTime; theMostRecentRunTime = this.getMostRecentRunTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mostRecentRunTime", theMostRecentRunTime), currentHashCode, theMostRecentRunTime); } { LongObjectPropertyType theExitCode; theExitCode = this.getExitCode(); currentHashCode = strategy.hashCode( LocatorUtils.property(locator, "exitCode", theExitCode), currentHashCode, theExitCode); } { UnsignedLongObjectPropertyType theMaxRunTime; theMaxRunTime = this.getMaxRunTime(); currentHashCode = strategy .hashCode(LocatorUtils.property(locator, "maxRunTime", theMaxRunTime), currentHashCode, theMaxRunTime); } { DateTimeObjectPropertyType theNextRunTime; theNextRunTime = this.getNextRunTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "nextRunTime", theNextRunTime), currentHashCode, theNextRunTime); } { TaskActionListType theActionList; theActionList = this.getActionList(); currentHashCode = strategy .hashCode(LocatorUtils.property(locator, "actionList", theActionList), currentHashCode, theActionList); } { TriggerListType theTriggerList; theTriggerList = this.getTriggerList(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "triggerList", theTriggerList), currentHashCode, theTriggerList); } { StringObjectPropertyType theComment; theComment = this.getComment(); currentHashCode = strategy.hashCode( LocatorUtils.property(locator, "comment", theComment), currentHashCode, theComment); } { StringObjectPropertyType theWorkingDirectory; theWorkingDirectory = this.getWorkingDirectory(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "workingDirectory", theWorkingDirectory), currentHashCode, theWorkingDirectory); } { Base64BinaryObjectPropertyType theWorkItemData; theWorkItemData = this.getWorkItemData(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "workItemData", theWorkItemData), currentHashCode, theWorkItemData); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } public WindowsTask withStatus(TaskStatusType value) { setStatus(value); return this; } public WindowsTask withPriority(TaskPriorityType value) { setPriority(value); return this; } public WindowsTask withName(StringObjectPropertyType value) { setName(value); return this; } public WindowsTask withApplicationName(StringObjectPropertyType value) { setApplicationName(value); return this; } public WindowsTask withParameters(StringObjectPropertyType value) { setParameters(value); return this; } public WindowsTask withFlags(TaskFlagType value) { setFlags(value); return this; } public WindowsTask withAccountName(StringObjectPropertyType value) { setAccountName(value); return this; } public WindowsTask withAccountRunLevel(StringObjectPropertyType value) { setAccountRunLevel(value); return this; } public WindowsTask withAccountLogonType(StringObjectPropertyType value) { setAccountLogonType(value); return this; } public WindowsTask withCreator(StringObjectPropertyType value) { setCreator(value); return this; } public WindowsTask withCreationDate(DateTimeObjectPropertyType value) { setCreationDate(value); return this; } public WindowsTask withMostRecentRunTime(DateTimeObjectPropertyType value) { setMostRecentRunTime(value); return this; } public WindowsTask withExitCode(LongObjectPropertyType value) { setExitCode(value); return this; } public WindowsTask withMaxRunTime(UnsignedLongObjectPropertyType value) { setMaxRunTime(value); return this; } public WindowsTask withNextRunTime(DateTimeObjectPropertyType value) { setNextRunTime(value); return this; } public WindowsTask withActionList(TaskActionListType value) { setActionList(value); return this; } public WindowsTask withTriggerList(TriggerListType value) { setTriggerList(value); return this; } public WindowsTask withComment(StringObjectPropertyType value) { setComment(value); return this; } public WindowsTask withWorkingDirectory(StringObjectPropertyType value) { setWorkingDirectory(value); return this; } public WindowsTask withWorkItemData(Base64BinaryObjectPropertyType value) { setWorkItemData(value); return this; } @Override public WindowsTask withCustomProperties(CustomPropertiesType value) { setCustomProperties(value); return this; } @Override public WindowsTask withObjectReference(QName value) { setObjectReference(value); return this; } public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { super.appendFields(locator, buffer, strategy); { TaskStatusType theStatus; theStatus = this.getStatus(); strategy.appendField(locator, this, "status", buffer, theStatus); } { TaskPriorityType thePriority; thePriority = this.getPriority(); strategy.appendField(locator, this, "priority", buffer, thePriority); } { StringObjectPropertyType theName; theName = this.getName(); strategy.appendField(locator, this, "name", buffer, theName); } { StringObjectPropertyType theApplicationName; theApplicationName = this.getApplicationName(); strategy.appendField(locator, this, "applicationName", buffer, theApplicationName); } { StringObjectPropertyType theParameters; theParameters = this.getParameters(); strategy.appendField(locator, this, "parameters", buffer, theParameters); } { TaskFlagType theFlags; theFlags = this.getFlags(); strategy.appendField(locator, this, "flags", buffer, theFlags); } { StringObjectPropertyType theAccountName; theAccountName = this.getAccountName(); strategy.appendField(locator, this, "accountName", buffer, theAccountName); } { StringObjectPropertyType theAccountRunLevel; theAccountRunLevel = this.getAccountRunLevel(); strategy.appendField(locator, this, "accountRunLevel", buffer, theAccountRunLevel); } { StringObjectPropertyType theAccountLogonType; theAccountLogonType = this.getAccountLogonType(); strategy.appendField(locator, this, "accountLogonType", buffer, theAccountLogonType); } { StringObjectPropertyType theCreator; theCreator = this.getCreator(); strategy.appendField(locator, this, "creator", buffer, theCreator); } { DateTimeObjectPropertyType theCreationDate; theCreationDate = this.getCreationDate(); strategy.appendField(locator, this, "creationDate", buffer, theCreationDate); } { DateTimeObjectPropertyType theMostRecentRunTime; theMostRecentRunTime = this.getMostRecentRunTime(); strategy.appendField(locator, this, "mostRecentRunTime", buffer, theMostRecentRunTime); } { LongObjectPropertyType theExitCode; theExitCode = this.getExitCode(); strategy.appendField(locator, this, "exitCode", buffer, theExitCode); } { UnsignedLongObjectPropertyType theMaxRunTime; theMaxRunTime = this.getMaxRunTime(); strategy.appendField(locator, this, "maxRunTime", buffer, theMaxRunTime); } { DateTimeObjectPropertyType theNextRunTime; theNextRunTime = this.getNextRunTime(); strategy.appendField(locator, this, "nextRunTime", buffer, theNextRunTime); } { TaskActionListType theActionList; theActionList = this.getActionList(); strategy.appendField(locator, this, "actionList", buffer, theActionList); } { TriggerListType theTriggerList; theTriggerList = this.getTriggerList(); strategy.appendField(locator, this, "triggerList", buffer, theTriggerList); } { StringObjectPropertyType theComment; theComment = this.getComment(); strategy.appendField(locator, this, "comment", buffer, theComment); } { StringObjectPropertyType theWorkingDirectory; theWorkingDirectory = this.getWorkingDirectory(); strategy.appendField(locator, this, "workingDirectory", buffer, theWorkingDirectory); } { Base64BinaryObjectPropertyType theWorkItemData; theWorkItemData = this.getWorkItemData(); strategy.appendField(locator, this, "workItemData", buffer, theWorkItemData); } return buffer; } /** * Returns A Document representation of this instance that is not formatted. * * @return The Document representation for this instance. */ public org.w3c.dom.Document toDocument() { return toDocument(false); } /** * Returns A Document representation for this instance. * * @param prettyPrint * True for pretty print, otherwise false * * @return The Document representation for this instance. */ public org.w3c.dom.Document toDocument(boolean prettyPrint) { return DocumentUtilities.toDocument(toJAXBElement(), prettyPrint); } /** * Returns JAXBElement for this instance. * * @return The JAXBElement for this instance. */ @SuppressWarnings({ "rawtypes", "unchecked" }) public JAXBElement toJAXBElement() { QName qualifiedName = STIXSchema.getQualifiedName(this); return new JAXBElement(qualifiedName, WindowsTask.class, this); } /** * Returns String representation of this instance that is not formatted. * * @return The String containing the XML mark-up. */ public String toXMLString() { return toXMLString(false); } /** * Returns XML String for JAXB Document Object Model object. * * @param prettyPrint * True for pretty print, otherwise false * * @return The String containing the XML mark-up. */ public String toXMLString(boolean prettyPrint) { return DocumentUtilities.toXMLString(toDocument(), prettyPrint); } /** * Creates WindowsTask instance for XML String * * @param text * XML String for the document * @return The WindowsTask instance for the passed XML String */ public static WindowsTask fromXMLString(String text) { JAXBContext jaxbContext; try { jaxbContext = JAXBContext.newInstance(WindowsTask.class .getPackage().getName()); Unmarshaller unmarshaller = jaxbContext.createUnmarshaller(); unmarshaller.setSchema(STIXSchema.getInstance().getSchema()); unmarshaller.setEventHandler(new ValidationEventHandler()); StreamSource streamSource = new StreamSource(new StringReader(text)); return (WindowsTask) unmarshaller.unmarshal(streamSource); } catch (JAXBException e) { throw new RuntimeException(e); } } /** * Validates the XML representation of this WindowsTask instance * Returning true indicating a successful validation, false if not. * * @return boolean */ public boolean validate() { return STIXSchema.getInstance().validate(toXMLString()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy