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

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

The 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.07.01 at 03:19:53 PM 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.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.stix.DocumentUtilities;
import org.mitre.stix.STIXSchema;
import org.mitre.stix.ValidationEventHandler;
import org.xml.sax.SAXException;

/**
 * The WindowsSystemRestoreObjectType is intended to characterize Windows system restore points.
 * 
 * 

Java class for WindowsSystemRestoreObjectType complex type. * *

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

 * <complexType name="WindowsSystemRestoreObjectType">
 *   <complexContent>
 *     <extension base="{http://cybox.mitre.org/common-2}ObjectPropertiesType">
 *       <sequence>
 *         <element name="Restore_Point_Description" type="{http://cybox.mitre.org/common-2}StringObjectPropertyType" minOccurs="0"/>
 *         <element name="Restore_Point_Full_Path" type="{http://cybox.mitre.org/common-2}StringObjectPropertyType" minOccurs="0"/>
 *         <element name="Restore_Point_Name" type="{http://cybox.mitre.org/common-2}StringObjectPropertyType" minOccurs="0"/>
 *         <element name="Restore_Point_Type" type="{http://cybox.mitre.org/common-2}StringObjectPropertyType" minOccurs="0"/>
 *         <element name="ACL_Change_SID" type="{http://cybox.mitre.org/common-2}StringObjectPropertyType" minOccurs="0"/>
 *         <element name="ACL_Change_Username" type="{http://cybox.mitre.org/common-2}StringObjectPropertyType" minOccurs="0"/>
 *         <element name="Backup_File_Name" type="{http://cybox.mitre.org/common-2}StringObjectPropertyType" minOccurs="0"/>
 *         <element name="Change_Event" type="{http://cybox.mitre.org/objects#WinSystemRestoreObject-2}ChangeLogEntryTypeType" minOccurs="0"/>
 *         <element name="ChangeLog_Entry_Flags" type="{http://cybox.mitre.org/common-2}StringObjectPropertyType" minOccurs="0"/>
 *         <element name="ChangeLog_Entry_Sequence_Number" type="{http://cybox.mitre.org/common-2}LongObjectPropertyType" minOccurs="0"/>
 *         <element name="ChangeLog_Entry_Type" type="{http://cybox.mitre.org/objects#WinSystemRestoreObject-2}ChangeLogEntryTypeType" minOccurs="0"/>
 *         <element name="Change_Log_File_Name" type="{http://cybox.mitre.org/common-2}StringObjectPropertyType" minOccurs="0"/>
 *         <element name="Created" type="{http://cybox.mitre.org/common-2}DateTimeObjectPropertyType" minOccurs="0"/>
 *         <element name="File_Attributes" type="{http://cybox.mitre.org/common-2}StringObjectPropertyType" minOccurs="0"/>
 *         <element name="New_File_Name" type="{http://cybox.mitre.org/common-2}StringObjectPropertyType" minOccurs="0"/>
 *         <element name="Original_File_Name" type="{http://cybox.mitre.org/common-2}StringObjectPropertyType" minOccurs="0"/>
 *         <element name="Original_Short_File_Name" type="{http://cybox.mitre.org/common-2}StringObjectPropertyType" minOccurs="0"/>
 *         <element name="Process_Name" type="{http://cybox.mitre.org/common-2}StringObjectPropertyType" minOccurs="0"/>
 *         <element name="Registry_Hive_List" type="{http://cybox.mitre.org/objects#WinSystemRestoreObject-2}HiveListType" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "WindowsSystemRestoreObjectType", namespace = "http://cybox.mitre.org/objects#WinSystemRestoreObject-2", propOrder = { "restorePointDescription", "restorePointFullPath", "restorePointName", "restorePointType", "aclChangeSID", "aclChangeUsername", "backupFileName", "changeEvent", "changeLogEntryFlags", "changeLogEntrySequenceNumber", "changeLogEntryType", "changeLogFileName", "created", "fileAttributes", "newFileName", "originalFileName", "originalShortFileName", "processName", "registryHiveList" }) @XmlRootElement(name = "Windows_System_Restore_Entry", namespace = "http://cybox.mitre.org/objects#WinSystemRestoreObject-2") public class WindowsSystemRestoreEntry extends ObjectPropertiesType implements Equals, HashCode, ToString { @XmlElement(name = "Restore_Point_Description") protected StringObjectPropertyType restorePointDescription; @XmlElement(name = "Restore_Point_Full_Path") protected StringObjectPropertyType restorePointFullPath; @XmlElement(name = "Restore_Point_Name") protected StringObjectPropertyType restorePointName; @XmlElement(name = "Restore_Point_Type") protected StringObjectPropertyType restorePointType; @XmlElement(name = "ACL_Change_SID") protected StringObjectPropertyType aclChangeSID; @XmlElement(name = "ACL_Change_Username") protected StringObjectPropertyType aclChangeUsername; @XmlElement(name = "Backup_File_Name") protected StringObjectPropertyType backupFileName; @XmlElement(name = "Change_Event") protected ChangeLogEntryTypeType changeEvent; @XmlElement(name = "ChangeLog_Entry_Flags") protected StringObjectPropertyType changeLogEntryFlags; @XmlElement(name = "ChangeLog_Entry_Sequence_Number") protected LongObjectPropertyType changeLogEntrySequenceNumber; @XmlElement(name = "ChangeLog_Entry_Type") protected ChangeLogEntryTypeType changeLogEntryType; @XmlElement(name = "Change_Log_File_Name") protected StringObjectPropertyType changeLogFileName; @XmlElement(name = "Created") protected DateTimeObjectPropertyType created; @XmlElement(name = "File_Attributes") protected StringObjectPropertyType fileAttributes; @XmlElement(name = "New_File_Name") protected StringObjectPropertyType newFileName; @XmlElement(name = "Original_File_Name") protected StringObjectPropertyType originalFileName; @XmlElement(name = "Original_Short_File_Name") protected StringObjectPropertyType originalShortFileName; @XmlElement(name = "Process_Name") protected StringObjectPropertyType processName; @XmlElement(name = "Registry_Hive_List") protected HiveListType registryHiveList; /** * Default no-arg constructor * */ public WindowsSystemRestoreEntry() { super(); } /** * Fully-initialising value constructor * */ public WindowsSystemRestoreEntry( final CustomPropertiesType customProperties, final QName objectReference, final StringObjectPropertyType restorePointDescription, final StringObjectPropertyType restorePointFullPath, final StringObjectPropertyType restorePointName, final StringObjectPropertyType restorePointType, final StringObjectPropertyType aclChangeSID, final StringObjectPropertyType aclChangeUsername, final StringObjectPropertyType backupFileName, final ChangeLogEntryTypeType changeEvent, final StringObjectPropertyType changeLogEntryFlags, final LongObjectPropertyType changeLogEntrySequenceNumber, final ChangeLogEntryTypeType changeLogEntryType, final StringObjectPropertyType changeLogFileName, final DateTimeObjectPropertyType created, final StringObjectPropertyType fileAttributes, final StringObjectPropertyType newFileName, final StringObjectPropertyType originalFileName, final StringObjectPropertyType originalShortFileName, final StringObjectPropertyType processName, final HiveListType registryHiveList) { super(customProperties, objectReference); this.restorePointDescription = restorePointDescription; this.restorePointFullPath = restorePointFullPath; this.restorePointName = restorePointName; this.restorePointType = restorePointType; this.aclChangeSID = aclChangeSID; this.aclChangeUsername = aclChangeUsername; this.backupFileName = backupFileName; this.changeEvent = changeEvent; this.changeLogEntryFlags = changeLogEntryFlags; this.changeLogEntrySequenceNumber = changeLogEntrySequenceNumber; this.changeLogEntryType = changeLogEntryType; this.changeLogFileName = changeLogFileName; this.created = created; this.fileAttributes = fileAttributes; this.newFileName = newFileName; this.originalFileName = originalFileName; this.originalShortFileName = originalShortFileName; this.processName = processName; this.registryHiveList = registryHiveList; } /** * Gets the value of the restorePointDescription property. * * @return * possible object is * {@link StringObjectPropertyType } * */ public StringObjectPropertyType getRestorePointDescription() { return restorePointDescription; } /** * Sets the value of the restorePointDescription property. * * @param value * allowed object is * {@link StringObjectPropertyType } * */ public void setRestorePointDescription(StringObjectPropertyType value) { this.restorePointDescription = value; } /** * Gets the value of the restorePointFullPath property. * * @return * possible object is * {@link StringObjectPropertyType } * */ public StringObjectPropertyType getRestorePointFullPath() { return restorePointFullPath; } /** * Sets the value of the restorePointFullPath property. * * @param value * allowed object is * {@link StringObjectPropertyType } * */ public void setRestorePointFullPath(StringObjectPropertyType value) { this.restorePointFullPath = value; } /** * Gets the value of the restorePointName property. * * @return * possible object is * {@link StringObjectPropertyType } * */ public StringObjectPropertyType getRestorePointName() { return restorePointName; } /** * Sets the value of the restorePointName property. * * @param value * allowed object is * {@link StringObjectPropertyType } * */ public void setRestorePointName(StringObjectPropertyType value) { this.restorePointName = value; } /** * Gets the value of the restorePointType property. * * @return * possible object is * {@link StringObjectPropertyType } * */ public StringObjectPropertyType getRestorePointType() { return restorePointType; } /** * Sets the value of the restorePointType property. * * @param value * allowed object is * {@link StringObjectPropertyType } * */ public void setRestorePointType(StringObjectPropertyType value) { this.restorePointType = value; } /** * Gets the value of the aclChangeSID property. * * @return * possible object is * {@link StringObjectPropertyType } * */ public StringObjectPropertyType getACLChangeSID() { return aclChangeSID; } /** * Sets the value of the aclChangeSID property. * * @param value * allowed object is * {@link StringObjectPropertyType } * */ public void setACLChangeSID(StringObjectPropertyType value) { this.aclChangeSID = value; } /** * Gets the value of the aclChangeUsername property. * * @return * possible object is * {@link StringObjectPropertyType } * */ public StringObjectPropertyType getACLChangeUsername() { return aclChangeUsername; } /** * Sets the value of the aclChangeUsername property. * * @param value * allowed object is * {@link StringObjectPropertyType } * */ public void setACLChangeUsername(StringObjectPropertyType value) { this.aclChangeUsername = value; } /** * Gets the value of the backupFileName property. * * @return * possible object is * {@link StringObjectPropertyType } * */ public StringObjectPropertyType getBackupFileName() { return backupFileName; } /** * Sets the value of the backupFileName property. * * @param value * allowed object is * {@link StringObjectPropertyType } * */ public void setBackupFileName(StringObjectPropertyType value) { this.backupFileName = value; } /** * Gets the value of the changeEvent property. * * @return * possible object is * {@link ChangeLogEntryTypeType } * */ public ChangeLogEntryTypeType getChangeEvent() { return changeEvent; } /** * Sets the value of the changeEvent property. * * @param value * allowed object is * {@link ChangeLogEntryTypeType } * */ public void setChangeEvent(ChangeLogEntryTypeType value) { this.changeEvent = value; } /** * Gets the value of the changeLogEntryFlags property. * * @return * possible object is * {@link StringObjectPropertyType } * */ public StringObjectPropertyType getChangeLogEntryFlags() { return changeLogEntryFlags; } /** * Sets the value of the changeLogEntryFlags property. * * @param value * allowed object is * {@link StringObjectPropertyType } * */ public void setChangeLogEntryFlags(StringObjectPropertyType value) { this.changeLogEntryFlags = value; } /** * Gets the value of the changeLogEntrySequenceNumber property. * * @return * possible object is * {@link LongObjectPropertyType } * */ public LongObjectPropertyType getChangeLogEntrySequenceNumber() { return changeLogEntrySequenceNumber; } /** * Sets the value of the changeLogEntrySequenceNumber property. * * @param value * allowed object is * {@link LongObjectPropertyType } * */ public void setChangeLogEntrySequenceNumber(LongObjectPropertyType value) { this.changeLogEntrySequenceNumber = value; } /** * Gets the value of the changeLogEntryType property. * * @return * possible object is * {@link ChangeLogEntryTypeType } * */ public ChangeLogEntryTypeType getChangeLogEntryType() { return changeLogEntryType; } /** * Sets the value of the changeLogEntryType property. * * @param value * allowed object is * {@link ChangeLogEntryTypeType } * */ public void setChangeLogEntryType(ChangeLogEntryTypeType value) { this.changeLogEntryType = value; } /** * Gets the value of the changeLogFileName property. * * @return * possible object is * {@link StringObjectPropertyType } * */ public StringObjectPropertyType getChangeLogFileName() { return changeLogFileName; } /** * Sets the value of the changeLogFileName property. * * @param value * allowed object is * {@link StringObjectPropertyType } * */ public void setChangeLogFileName(StringObjectPropertyType value) { this.changeLogFileName = value; } /** * Gets the value of the created property. * * @return * possible object is * {@link DateTimeObjectPropertyType } * */ public DateTimeObjectPropertyType getCreated() { return created; } /** * Sets the value of the created property. * * @param value * allowed object is * {@link DateTimeObjectPropertyType } * */ public void setCreated(DateTimeObjectPropertyType value) { this.created = value; } /** * Gets the value of the fileAttributes property. * * @return * possible object is * {@link StringObjectPropertyType } * */ public StringObjectPropertyType getFileAttributes() { return fileAttributes; } /** * Sets the value of the fileAttributes property. * * @param value * allowed object is * {@link StringObjectPropertyType } * */ public void setFileAttributes(StringObjectPropertyType value) { this.fileAttributes = value; } /** * Gets the value of the newFileName property. * * @return * possible object is * {@link StringObjectPropertyType } * */ public StringObjectPropertyType getNewFileName() { return newFileName; } /** * Sets the value of the newFileName property. * * @param value * allowed object is * {@link StringObjectPropertyType } * */ public void setNewFileName(StringObjectPropertyType value) { this.newFileName = value; } /** * Gets the value of the originalFileName property. * * @return * possible object is * {@link StringObjectPropertyType } * */ public StringObjectPropertyType getOriginalFileName() { return originalFileName; } /** * Sets the value of the originalFileName property. * * @param value * allowed object is * {@link StringObjectPropertyType } * */ public void setOriginalFileName(StringObjectPropertyType value) { this.originalFileName = value; } /** * Gets the value of the originalShortFileName property. * * @return * possible object is * {@link StringObjectPropertyType } * */ public StringObjectPropertyType getOriginalShortFileName() { return originalShortFileName; } /** * Sets the value of the originalShortFileName property. * * @param value * allowed object is * {@link StringObjectPropertyType } * */ public void setOriginalShortFileName(StringObjectPropertyType value) { this.originalShortFileName = value; } /** * Gets the value of the processName property. * * @return * possible object is * {@link StringObjectPropertyType } * */ public StringObjectPropertyType getProcessName() { return processName; } /** * Sets the value of the processName property. * * @param value * allowed object is * {@link StringObjectPropertyType } * */ public void setProcessName(StringObjectPropertyType value) { this.processName = value; } /** * Gets the value of the registryHiveList property. * * @return * possible object is * {@link HiveListType } * */ public HiveListType getRegistryHiveList() { return registryHiveList; } /** * Sets the value of the registryHiveList property. * * @param value * allowed object is * {@link HiveListType } * */ public void setRegistryHiveList(HiveListType value) { this.registryHiveList = value; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof WindowsSystemRestoreEntry)) { return false; } if (this == object) { return true; } if (!super.equals(thisLocator, thatLocator, object, strategy)) { return false; } final WindowsSystemRestoreEntry that = ((WindowsSystemRestoreEntry) object); { StringObjectPropertyType lhsRestorePointDescription; lhsRestorePointDescription = this.getRestorePointDescription(); StringObjectPropertyType rhsRestorePointDescription; rhsRestorePointDescription = that.getRestorePointDescription(); if (!strategy.equals(LocatorUtils.property(thisLocator, "restorePointDescription", lhsRestorePointDescription), LocatorUtils.property(thatLocator, "restorePointDescription", rhsRestorePointDescription), lhsRestorePointDescription, rhsRestorePointDescription)) { return false; } } { StringObjectPropertyType lhsRestorePointFullPath; lhsRestorePointFullPath = this.getRestorePointFullPath(); StringObjectPropertyType rhsRestorePointFullPath; rhsRestorePointFullPath = that.getRestorePointFullPath(); if (!strategy.equals(LocatorUtils.property(thisLocator, "restorePointFullPath", lhsRestorePointFullPath), LocatorUtils.property(thatLocator, "restorePointFullPath", rhsRestorePointFullPath), lhsRestorePointFullPath, rhsRestorePointFullPath)) { return false; } } { StringObjectPropertyType lhsRestorePointName; lhsRestorePointName = this.getRestorePointName(); StringObjectPropertyType rhsRestorePointName; rhsRestorePointName = that.getRestorePointName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "restorePointName", lhsRestorePointName), LocatorUtils .property(thatLocator, "restorePointName", rhsRestorePointName), lhsRestorePointName, rhsRestorePointName)) { return false; } } { StringObjectPropertyType lhsRestorePointType; lhsRestorePointType = this.getRestorePointType(); StringObjectPropertyType rhsRestorePointType; rhsRestorePointType = that.getRestorePointType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "restorePointType", lhsRestorePointType), LocatorUtils .property(thatLocator, "restorePointType", rhsRestorePointType), lhsRestorePointType, rhsRestorePointType)) { return false; } } { StringObjectPropertyType lhsACLChangeSID; lhsACLChangeSID = this.getACLChangeSID(); StringObjectPropertyType rhsACLChangeSID; rhsACLChangeSID = that.getACLChangeSID(); if (!strategy.equals(LocatorUtils.property(thisLocator, "aclChangeSID", lhsACLChangeSID), LocatorUtils.property( thatLocator, "aclChangeSID", rhsACLChangeSID), lhsACLChangeSID, rhsACLChangeSID)) { return false; } } { StringObjectPropertyType lhsACLChangeUsername; lhsACLChangeUsername = this.getACLChangeUsername(); StringObjectPropertyType rhsACLChangeUsername; rhsACLChangeUsername = that.getACLChangeUsername(); if (!strategy.equals(LocatorUtils.property(thisLocator, "aclChangeUsername", lhsACLChangeUsername), LocatorUtils .property(thatLocator, "aclChangeUsername", rhsACLChangeUsername), lhsACLChangeUsername, rhsACLChangeUsername)) { return false; } } { StringObjectPropertyType lhsBackupFileName; lhsBackupFileName = this.getBackupFileName(); StringObjectPropertyType rhsBackupFileName; rhsBackupFileName = that.getBackupFileName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "backupFileName", lhsBackupFileName), LocatorUtils.property(thatLocator, "backupFileName", rhsBackupFileName), lhsBackupFileName, rhsBackupFileName)) { return false; } } { ChangeLogEntryTypeType lhsChangeEvent; lhsChangeEvent = this.getChangeEvent(); ChangeLogEntryTypeType rhsChangeEvent; rhsChangeEvent = that.getChangeEvent(); if (!strategy.equals(LocatorUtils.property(thisLocator, "changeEvent", lhsChangeEvent), LocatorUtils.property( thatLocator, "changeEvent", rhsChangeEvent), lhsChangeEvent, rhsChangeEvent)) { return false; } } { StringObjectPropertyType lhsChangeLogEntryFlags; lhsChangeLogEntryFlags = this.getChangeLogEntryFlags(); StringObjectPropertyType rhsChangeLogEntryFlags; rhsChangeLogEntryFlags = that.getChangeLogEntryFlags(); if (!strategy.equals(LocatorUtils.property(thisLocator, "changeLogEntryFlags", lhsChangeLogEntryFlags), LocatorUtils.property(thatLocator, "changeLogEntryFlags", rhsChangeLogEntryFlags), lhsChangeLogEntryFlags, rhsChangeLogEntryFlags)) { return false; } } { LongObjectPropertyType lhsChangeLogEntrySequenceNumber; lhsChangeLogEntrySequenceNumber = this .getChangeLogEntrySequenceNumber(); LongObjectPropertyType rhsChangeLogEntrySequenceNumber; rhsChangeLogEntrySequenceNumber = that .getChangeLogEntrySequenceNumber(); if (!strategy.equals(LocatorUtils.property(thisLocator, "changeLogEntrySequenceNumber", lhsChangeLogEntrySequenceNumber), LocatorUtils.property( thatLocator, "changeLogEntrySequenceNumber", rhsChangeLogEntrySequenceNumber), lhsChangeLogEntrySequenceNumber, rhsChangeLogEntrySequenceNumber)) { return false; } } { ChangeLogEntryTypeType lhsChangeLogEntryType; lhsChangeLogEntryType = this.getChangeLogEntryType(); ChangeLogEntryTypeType rhsChangeLogEntryType; rhsChangeLogEntryType = that.getChangeLogEntryType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "changeLogEntryType", lhsChangeLogEntryType), LocatorUtils .property(thatLocator, "changeLogEntryType", rhsChangeLogEntryType), lhsChangeLogEntryType, rhsChangeLogEntryType)) { return false; } } { StringObjectPropertyType lhsChangeLogFileName; lhsChangeLogFileName = this.getChangeLogFileName(); StringObjectPropertyType rhsChangeLogFileName; rhsChangeLogFileName = that.getChangeLogFileName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "changeLogFileName", lhsChangeLogFileName), LocatorUtils .property(thatLocator, "changeLogFileName", rhsChangeLogFileName), lhsChangeLogFileName, rhsChangeLogFileName)) { return false; } } { DateTimeObjectPropertyType lhsCreated; lhsCreated = this.getCreated(); DateTimeObjectPropertyType rhsCreated; rhsCreated = that.getCreated(); if (!strategy.equals( LocatorUtils.property(thisLocator, "created", lhsCreated), LocatorUtils.property(thatLocator, "created", rhsCreated), lhsCreated, rhsCreated)) { return false; } } { StringObjectPropertyType lhsFileAttributes; lhsFileAttributes = this.getFileAttributes(); StringObjectPropertyType rhsFileAttributes; rhsFileAttributes = that.getFileAttributes(); if (!strategy.equals(LocatorUtils.property(thisLocator, "fileAttributes", lhsFileAttributes), LocatorUtils.property(thatLocator, "fileAttributes", rhsFileAttributes), lhsFileAttributes, rhsFileAttributes)) { return false; } } { StringObjectPropertyType lhsNewFileName; lhsNewFileName = this.getNewFileName(); StringObjectPropertyType rhsNewFileName; rhsNewFileName = that.getNewFileName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "newFileName", lhsNewFileName), LocatorUtils.property( thatLocator, "newFileName", rhsNewFileName), lhsNewFileName, rhsNewFileName)) { return false; } } { StringObjectPropertyType lhsOriginalFileName; lhsOriginalFileName = this.getOriginalFileName(); StringObjectPropertyType rhsOriginalFileName; rhsOriginalFileName = that.getOriginalFileName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "originalFileName", lhsOriginalFileName), LocatorUtils .property(thatLocator, "originalFileName", rhsOriginalFileName), lhsOriginalFileName, rhsOriginalFileName)) { return false; } } { StringObjectPropertyType lhsOriginalShortFileName; lhsOriginalShortFileName = this.getOriginalShortFileName(); StringObjectPropertyType rhsOriginalShortFileName; rhsOriginalShortFileName = that.getOriginalShortFileName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "originalShortFileName", lhsOriginalShortFileName), LocatorUtils.property(thatLocator, "originalShortFileName", rhsOriginalShortFileName), lhsOriginalShortFileName, rhsOriginalShortFileName)) { return false; } } { StringObjectPropertyType lhsProcessName; lhsProcessName = this.getProcessName(); StringObjectPropertyType rhsProcessName; rhsProcessName = that.getProcessName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "processName", lhsProcessName), LocatorUtils.property( thatLocator, "processName", rhsProcessName), lhsProcessName, rhsProcessName)) { return false; } } { HiveListType lhsRegistryHiveList; lhsRegistryHiveList = this.getRegistryHiveList(); HiveListType rhsRegistryHiveList; rhsRegistryHiveList = that.getRegistryHiveList(); if (!strategy.equals(LocatorUtils.property(thisLocator, "registryHiveList", lhsRegistryHiveList), LocatorUtils .property(thatLocator, "registryHiveList", rhsRegistryHiveList), lhsRegistryHiveList, rhsRegistryHiveList)) { 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); { StringObjectPropertyType theRestorePointDescription; theRestorePointDescription = this.getRestorePointDescription(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "restorePointDescription", theRestorePointDescription), currentHashCode, theRestorePointDescription); } { StringObjectPropertyType theRestorePointFullPath; theRestorePointFullPath = this.getRestorePointFullPath(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "restorePointFullPath", theRestorePointFullPath), currentHashCode, theRestorePointFullPath); } { StringObjectPropertyType theRestorePointName; theRestorePointName = this.getRestorePointName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "restorePointName", theRestorePointName), currentHashCode, theRestorePointName); } { StringObjectPropertyType theRestorePointType; theRestorePointType = this.getRestorePointType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "restorePointType", theRestorePointType), currentHashCode, theRestorePointType); } { StringObjectPropertyType theACLChangeSID; theACLChangeSID = this.getACLChangeSID(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "aclChangeSID", theACLChangeSID), currentHashCode, theACLChangeSID); } { StringObjectPropertyType theACLChangeUsername; theACLChangeUsername = this.getACLChangeUsername(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "aclChangeUsername", theACLChangeUsername), currentHashCode, theACLChangeUsername); } { StringObjectPropertyType theBackupFileName; theBackupFileName = this.getBackupFileName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "backupFileName", theBackupFileName), currentHashCode, theBackupFileName); } { ChangeLogEntryTypeType theChangeEvent; theChangeEvent = this.getChangeEvent(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "changeEvent", theChangeEvent), currentHashCode, theChangeEvent); } { StringObjectPropertyType theChangeLogEntryFlags; theChangeLogEntryFlags = this.getChangeLogEntryFlags(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "changeLogEntryFlags", theChangeLogEntryFlags), currentHashCode, theChangeLogEntryFlags); } { LongObjectPropertyType theChangeLogEntrySequenceNumber; theChangeLogEntrySequenceNumber = this .getChangeLogEntrySequenceNumber(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "changeLogEntrySequenceNumber", theChangeLogEntrySequenceNumber), currentHashCode, theChangeLogEntrySequenceNumber); } { ChangeLogEntryTypeType theChangeLogEntryType; theChangeLogEntryType = this.getChangeLogEntryType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "changeLogEntryType", theChangeLogEntryType), currentHashCode, theChangeLogEntryType); } { StringObjectPropertyType theChangeLogFileName; theChangeLogFileName = this.getChangeLogFileName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "changeLogFileName", theChangeLogFileName), currentHashCode, theChangeLogFileName); } { DateTimeObjectPropertyType theCreated; theCreated = this.getCreated(); currentHashCode = strategy.hashCode( LocatorUtils.property(locator, "created", theCreated), currentHashCode, theCreated); } { StringObjectPropertyType theFileAttributes; theFileAttributes = this.getFileAttributes(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "fileAttributes", theFileAttributes), currentHashCode, theFileAttributes); } { StringObjectPropertyType theNewFileName; theNewFileName = this.getNewFileName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "newFileName", theNewFileName), currentHashCode, theNewFileName); } { StringObjectPropertyType theOriginalFileName; theOriginalFileName = this.getOriginalFileName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "originalFileName", theOriginalFileName), currentHashCode, theOriginalFileName); } { StringObjectPropertyType theOriginalShortFileName; theOriginalShortFileName = this.getOriginalShortFileName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "originalShortFileName", theOriginalShortFileName), currentHashCode, theOriginalShortFileName); } { StringObjectPropertyType theProcessName; theProcessName = this.getProcessName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "processName", theProcessName), currentHashCode, theProcessName); } { HiveListType theRegistryHiveList; theRegistryHiveList = this.getRegistryHiveList(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "registryHiveList", theRegistryHiveList), currentHashCode, theRegistryHiveList); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } public WindowsSystemRestoreEntry withRestorePointDescription( StringObjectPropertyType value) { setRestorePointDescription(value); return this; } public WindowsSystemRestoreEntry withRestorePointFullPath( StringObjectPropertyType value) { setRestorePointFullPath(value); return this; } public WindowsSystemRestoreEntry withRestorePointName( StringObjectPropertyType value) { setRestorePointName(value); return this; } public WindowsSystemRestoreEntry withRestorePointType( StringObjectPropertyType value) { setRestorePointType(value); return this; } public WindowsSystemRestoreEntry withACLChangeSID( StringObjectPropertyType value) { setACLChangeSID(value); return this; } public WindowsSystemRestoreEntry withACLChangeUsername( StringObjectPropertyType value) { setACLChangeUsername(value); return this; } public WindowsSystemRestoreEntry withBackupFileName( StringObjectPropertyType value) { setBackupFileName(value); return this; } public WindowsSystemRestoreEntry withChangeEvent( ChangeLogEntryTypeType value) { setChangeEvent(value); return this; } public WindowsSystemRestoreEntry withChangeLogEntryFlags( StringObjectPropertyType value) { setChangeLogEntryFlags(value); return this; } public WindowsSystemRestoreEntry withChangeLogEntrySequenceNumber( LongObjectPropertyType value) { setChangeLogEntrySequenceNumber(value); return this; } public WindowsSystemRestoreEntry withChangeLogEntryType( ChangeLogEntryTypeType value) { setChangeLogEntryType(value); return this; } public WindowsSystemRestoreEntry withChangeLogFileName( StringObjectPropertyType value) { setChangeLogFileName(value); return this; } public WindowsSystemRestoreEntry withCreated( DateTimeObjectPropertyType value) { setCreated(value); return this; } public WindowsSystemRestoreEntry withFileAttributes( StringObjectPropertyType value) { setFileAttributes(value); return this; } public WindowsSystemRestoreEntry withNewFileName( StringObjectPropertyType value) { setNewFileName(value); return this; } public WindowsSystemRestoreEntry withOriginalFileName( StringObjectPropertyType value) { setOriginalFileName(value); return this; } public WindowsSystemRestoreEntry withOriginalShortFileName( StringObjectPropertyType value) { setOriginalShortFileName(value); return this; } public WindowsSystemRestoreEntry withProcessName( StringObjectPropertyType value) { setProcessName(value); return this; } public WindowsSystemRestoreEntry withRegistryHiveList(HiveListType value) { setRegistryHiveList(value); return this; } @Override public WindowsSystemRestoreEntry withCustomProperties( CustomPropertiesType value) { setCustomProperties(value); return this; } @Override public WindowsSystemRestoreEntry 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); { StringObjectPropertyType theRestorePointDescription; theRestorePointDescription = this.getRestorePointDescription(); strategy.appendField(locator, this, "restorePointDescription", buffer, theRestorePointDescription); } { StringObjectPropertyType theRestorePointFullPath; theRestorePointFullPath = this.getRestorePointFullPath(); strategy.appendField(locator, this, "restorePointFullPath", buffer, theRestorePointFullPath); } { StringObjectPropertyType theRestorePointName; theRestorePointName = this.getRestorePointName(); strategy.appendField(locator, this, "restorePointName", buffer, theRestorePointName); } { StringObjectPropertyType theRestorePointType; theRestorePointType = this.getRestorePointType(); strategy.appendField(locator, this, "restorePointType", buffer, theRestorePointType); } { StringObjectPropertyType theACLChangeSID; theACLChangeSID = this.getACLChangeSID(); strategy.appendField(locator, this, "aclChangeSID", buffer, theACLChangeSID); } { StringObjectPropertyType theACLChangeUsername; theACLChangeUsername = this.getACLChangeUsername(); strategy.appendField(locator, this, "aclChangeUsername", buffer, theACLChangeUsername); } { StringObjectPropertyType theBackupFileName; theBackupFileName = this.getBackupFileName(); strategy.appendField(locator, this, "backupFileName", buffer, theBackupFileName); } { ChangeLogEntryTypeType theChangeEvent; theChangeEvent = this.getChangeEvent(); strategy.appendField(locator, this, "changeEvent", buffer, theChangeEvent); } { StringObjectPropertyType theChangeLogEntryFlags; theChangeLogEntryFlags = this.getChangeLogEntryFlags(); strategy.appendField(locator, this, "changeLogEntryFlags", buffer, theChangeLogEntryFlags); } { LongObjectPropertyType theChangeLogEntrySequenceNumber; theChangeLogEntrySequenceNumber = this .getChangeLogEntrySequenceNumber(); strategy.appendField(locator, this, "changeLogEntrySequenceNumber", buffer, theChangeLogEntrySequenceNumber); } { ChangeLogEntryTypeType theChangeLogEntryType; theChangeLogEntryType = this.getChangeLogEntryType(); strategy.appendField(locator, this, "changeLogEntryType", buffer, theChangeLogEntryType); } { StringObjectPropertyType theChangeLogFileName; theChangeLogFileName = this.getChangeLogFileName(); strategy.appendField(locator, this, "changeLogFileName", buffer, theChangeLogFileName); } { DateTimeObjectPropertyType theCreated; theCreated = this.getCreated(); strategy.appendField(locator, this, "created", buffer, theCreated); } { StringObjectPropertyType theFileAttributes; theFileAttributes = this.getFileAttributes(); strategy.appendField(locator, this, "fileAttributes", buffer, theFileAttributes); } { StringObjectPropertyType theNewFileName; theNewFileName = this.getNewFileName(); strategy.appendField(locator, this, "newFileName", buffer, theNewFileName); } { StringObjectPropertyType theOriginalFileName; theOriginalFileName = this.getOriginalFileName(); strategy.appendField(locator, this, "originalFileName", buffer, theOriginalFileName); } { StringObjectPropertyType theOriginalShortFileName; theOriginalShortFileName = this.getOriginalShortFileName(); strategy.appendField(locator, this, "originalShortFileName", buffer, theOriginalShortFileName); } { StringObjectPropertyType theProcessName; theProcessName = this.getProcessName(); strategy.appendField(locator, this, "processName", buffer, theProcessName); } { HiveListType theRegistryHiveList; theRegistryHiveList = this.getRegistryHiveList(); strategy.appendField(locator, this, "registryHiveList", buffer, theRegistryHiveList); } 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, WindowsSystemRestoreEntry.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 WindowsSystemRestoreEntry instance for XML String * * @param text * XML String for the document * @return The WindowsSystemRestoreEntry instance for the passed XML String */ public static WindowsSystemRestoreEntry fromXMLString(String text) { JAXBContext jaxbContext; try { jaxbContext = JAXBContext .newInstance(WindowsSystemRestoreEntry.class.getPackage() .getName()); Unmarshaller unmarshaller = jaxbContext.createUnmarshaller(); unmarshaller.setSchema(STIXSchema.getInstance().getSchema()); unmarshaller.setEventHandler(new ValidationEventHandler()); StreamSource streamSource = new StreamSource(new StringReader(text)); return (WindowsSystemRestoreEntry) unmarshaller .unmarshal(streamSource); } catch (JAXBException e) { throw new RuntimeException(e); } } /** * Validates the XML representation of this WindowsSystemRestoreEntry instance * Returning true indicating a successful validation, false if not. * * @return boolean True If it validates against the schema * @throws SAXException * If the a validation ErrorHandler has not been set, and * validation throws a SAXException */ public boolean validate() throws SAXException { return STIXSchema.getInstance().validate(toXMLString()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy