Class FileSpec
- java.lang.Object
-
- org.cip4.lib.xjdf.schema.FileSpec
-
- All Implemented Interfaces:
java.io.Serializable,org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2
public class FileSpec extends java.lang.Object implements java.io.Serializable, org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element ref="{http://www.CIP4.org/JDFSchema_2_0}Disposition" minOccurs="0"/> <element ref="{http://www.CIP4.org/JDFSchema_2_0}NetworkHeader" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="CheckSum" type="{http://www.w3.org/2001/XMLSchema}hexBinary" /> <attribute name="Encoding" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" /> <attribute name="FileFormat" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="FileSize" type="{http://www.w3.org/2001/XMLSchema}long" /> <attribute name="FileTemplate" type="{http://www.w3.org/2001/XMLSchema}NMTOKENS" /> <attribute name="MimeType" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="OverwritePolicy"> <simpleType> <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"> <enumeration value="Overwrite"/> <enumeration value="RenameNew"/> <enumeration value="RenameOld"/> <enumeration value="NewVersion"/> <enumeration value="OperatorIntervention"/> <enumeration value="Abort"/> </restriction> </simpleType> </attribute> <attribute name="Password" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="ResourceUsage" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" /> <attribute name="SearchDepth" type="{http://www.w3.org/2001/XMLSchema}int" /> <attribute name="UID" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" /> <attribute name="URL" type="{http://www.CIP4.org/JDFSchema_2_0}URL" /> <attribute name="UserFileName" type="{http://www.w3.org/2001/XMLSchema}string" /> <anyAttribute processContents='lax' namespace='##other'/> </restriction> </complexContent> </complexType>- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFileSpec.OverwritePolicyJava class for null.
-
Field Summary
Fields Modifier and Type Field Description protected byte[]checkSumprotected Dispositiondispositionprotected java.lang.Stringencodingprotected java.lang.StringfileFormatprotected java.lang.LongfileSizeprotected java.util.List<java.lang.String>fileTemplateprotected java.lang.StringmimeTypeprotected java.util.List<NetworkHeader>networkHeaderprotected FileSpec.OverwritePolicyoverwritePolicyprotected java.lang.Stringpasswordprotected java.lang.StringresourceUsageprotected java.lang.IntegersearchDepthprotected java.lang.Stringuidprotected URIurlprotected java.lang.StringuserFileName
-
Constructor Summary
Constructors Constructor Description FileSpec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object object)booleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)byte[]getCheckSum()Gets the value of the checkSum property.DispositiongetDisposition()Gets the value of the disposition property.java.lang.StringgetEncoding()Gets the value of the encoding property.java.lang.StringgetFileFormat()Gets the value of the fileFormat property.java.lang.LonggetFileSize()Gets the value of the fileSize property.java.util.List<java.lang.String>getFileTemplate()Gets the value of the fileTemplate property.java.lang.StringgetMimeType()Gets the value of the mimeType property.java.util.List<NetworkHeader>getNetworkHeader()Gets the value of the networkHeader property.java.util.Map<javax.xml.namespace.QName,java.lang.String>getOtherAttributes()Gets a map that contains attributes that aren't bound to any typed property on this class.FileSpec.OverwritePolicygetOverwritePolicy()Gets the value of the overwritePolicy property.java.lang.StringgetPassword()Gets the value of the password property.java.lang.StringgetResourceUsage()Gets the value of the resourceUsage property.java.lang.IntegergetSearchDepth()Gets the value of the searchDepth property.java.lang.StringgetUID()Gets the value of the uid property.URIgetURL()Gets the value of the url property.java.lang.StringgetUserFileName()Gets the value of the userFileName property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetCheckSum(byte[] value)Sets the value of the checkSum property.voidsetDisposition(Disposition value)Sets the value of the disposition property.voidsetEncoding(java.lang.String value)Sets the value of the encoding property.voidsetFileFormat(java.lang.String value)Sets the value of the fileFormat property.voidsetFileSize(java.lang.Long value)Sets the value of the fileSize property.voidsetMimeType(java.lang.String value)Sets the value of the mimeType property.voidsetOverwritePolicy(FileSpec.OverwritePolicy value)Sets the value of the overwritePolicy property.voidsetPassword(java.lang.String value)Sets the value of the password property.voidsetResourceUsage(java.lang.String value)Sets the value of the resourceUsage property.voidsetSearchDepth(java.lang.Integer value)Sets the value of the searchDepth property.voidsetUID(java.lang.String value)Sets the value of the uid property.voidsetURL(URI value)Sets the value of the url property.voidsetUserFileName(java.lang.String value)Sets the value of the userFileName property.FileSpecwithCheckSum(byte[] value)FileSpecwithDisposition(Disposition value)FileSpecwithEncoding(java.lang.String value)FileSpecwithFileFormat(java.lang.String value)FileSpecwithFileSize(java.lang.Long value)FileSpecwithFileTemplate(java.lang.String... values)FileSpecwithFileTemplate(java.util.Collection<java.lang.String> values)FileSpecwithMimeType(java.lang.String value)FileSpecwithNetworkHeader(java.util.Collection<NetworkHeader> values)FileSpecwithNetworkHeader(NetworkHeader... values)FileSpecwithOverwritePolicy(FileSpec.OverwritePolicy value)FileSpecwithPassword(java.lang.String value)FileSpecwithResourceUsage(java.lang.String value)FileSpecwithSearchDepth(java.lang.Integer value)FileSpecwithUID(java.lang.String value)FileSpecwithURL(URI value)FileSpecwithUserFileName(java.lang.String value)
-
-
-
Field Detail
-
disposition
protected Disposition disposition
-
networkHeader
protected java.util.List<NetworkHeader> networkHeader
-
checkSum
protected byte[] checkSum
-
encoding
protected java.lang.String encoding
-
fileFormat
protected java.lang.String fileFormat
-
fileSize
protected java.lang.Long fileSize
-
fileTemplate
protected java.util.List<java.lang.String> fileTemplate
-
mimeType
protected java.lang.String mimeType
-
overwritePolicy
protected FileSpec.OverwritePolicy overwritePolicy
-
password
protected java.lang.String password
-
resourceUsage
protected java.lang.String resourceUsage
-
searchDepth
protected java.lang.Integer searchDepth
-
uid
protected java.lang.String uid
-
url
protected URI url
-
userFileName
protected java.lang.String userFileName
-
-
Method Detail
-
getDisposition
public Disposition getDisposition()
Gets the value of the disposition property.- Returns:
- possible object is
Disposition
-
setDisposition
public void setDisposition(Disposition value)
Sets the value of the disposition property.- Parameters:
value- allowed object isDisposition
-
getNetworkHeader
public java.util.List<NetworkHeader> getNetworkHeader()
Gets the value of the networkHeader 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 networkHeader property.For example, to add a new item, do as follows:
getNetworkHeader().add(newItem);Objects of the following type(s) are allowed in the list
NetworkHeader
-
getCheckSum
public byte[] getCheckSum()
Gets the value of the checkSum property.- Returns:
- possible object is
String
-
setCheckSum
public void setCheckSum(byte[] value)
Sets the value of the checkSum property.- Parameters:
value- allowed object isString
-
getEncoding
public java.lang.String getEncoding()
Gets the value of the encoding property.- Returns:
- possible object is
String
-
setEncoding
public void setEncoding(java.lang.String value)
Sets the value of the encoding property.- Parameters:
value- allowed object isString
-
getFileFormat
public java.lang.String getFileFormat()
Gets the value of the fileFormat property.- Returns:
- possible object is
String
-
setFileFormat
public void setFileFormat(java.lang.String value)
Sets the value of the fileFormat property.- Parameters:
value- allowed object isString
-
getFileSize
public java.lang.Long getFileSize()
Gets the value of the fileSize property.- Returns:
- possible object is
Long
-
setFileSize
public void setFileSize(java.lang.Long value)
Sets the value of the fileSize property.- Parameters:
value- allowed object isLong
-
getFileTemplate
public java.util.List<java.lang.String> getFileTemplate()
Gets the value of the fileTemplate 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 fileTemplate property.For example, to add a new item, do as follows:
getFileTemplate().add(newItem);Objects of the following type(s) are allowed in the list
String
-
getMimeType
public java.lang.String getMimeType()
Gets the value of the mimeType property.- Returns:
- possible object is
String
-
setMimeType
public void setMimeType(java.lang.String value)
Sets the value of the mimeType property.- Parameters:
value- allowed object isString
-
getOverwritePolicy
public FileSpec.OverwritePolicy getOverwritePolicy()
Gets the value of the overwritePolicy property.- Returns:
- possible object is
FileSpec.OverwritePolicy
-
setOverwritePolicy
public void setOverwritePolicy(FileSpec.OverwritePolicy value)
Sets the value of the overwritePolicy property.- Parameters:
value- allowed object isFileSpec.OverwritePolicy
-
getPassword
public java.lang.String getPassword()
Gets the value of the password property.- Returns:
- possible object is
String
-
setPassword
public void setPassword(java.lang.String value)
Sets the value of the password property.- Parameters:
value- allowed object isString
-
getResourceUsage
public java.lang.String getResourceUsage()
Gets the value of the resourceUsage property.- Returns:
- possible object is
String
-
setResourceUsage
public void setResourceUsage(java.lang.String value)
Sets the value of the resourceUsage property.- Parameters:
value- allowed object isString
-
getSearchDepth
public java.lang.Integer getSearchDepth()
Gets the value of the searchDepth property.- Returns:
- possible object is
Integer
-
setSearchDepth
public void setSearchDepth(java.lang.Integer value)
Sets the value of the searchDepth property.- Parameters:
value- allowed object isInteger
-
getUID
public java.lang.String getUID()
Gets the value of the uid property.- Returns:
- possible object is
String
-
setUID
public void setUID(java.lang.String value)
Sets the value of the uid property.- Parameters:
value- allowed object isString
-
getURL
public URI getURL()
Gets the value of the url property.- Returns:
- possible object is
String
-
setURL
public void setURL(URI value)
Sets the value of the url property.- Parameters:
value- allowed object isString
-
getUserFileName
public java.lang.String getUserFileName()
Gets the value of the userFileName property.- Returns:
- possible object is
String
-
setUserFileName
public void setUserFileName(java.lang.String value)
Sets the value of the userFileName property.- Parameters:
value- allowed object isString
-
getOtherAttributes
public java.util.Map<javax.xml.namespace.QName,java.lang.String> getOtherAttributes()
Gets a map that contains attributes that aren't bound to any typed property on this class.the map is keyed by the name of the attribute and the value is the string value of the attribute. the map returned by this method is live, and you can add new attribute by updating the map directly. Because of this design, there's no setter.
- Returns:
- always non-null
-
withDisposition
public FileSpec withDisposition(Disposition value)
-
withNetworkHeader
public FileSpec withNetworkHeader(NetworkHeader... values)
-
withNetworkHeader
public FileSpec withNetworkHeader(java.util.Collection<NetworkHeader> values)
-
withCheckSum
public FileSpec withCheckSum(byte[] value)
-
withEncoding
public FileSpec withEncoding(java.lang.String value)
-
withFileFormat
public FileSpec withFileFormat(java.lang.String value)
-
withFileSize
public FileSpec withFileSize(java.lang.Long value)
-
withFileTemplate
public FileSpec withFileTemplate(java.lang.String... values)
-
withFileTemplate
public FileSpec withFileTemplate(java.util.Collection<java.lang.String> values)
-
withMimeType
public FileSpec withMimeType(java.lang.String value)
-
withOverwritePolicy
public FileSpec withOverwritePolicy(FileSpec.OverwritePolicy value)
-
withPassword
public FileSpec withPassword(java.lang.String value)
-
withResourceUsage
public FileSpec withResourceUsage(java.lang.String value)
-
withSearchDepth
public FileSpec withSearchDepth(java.lang.Integer value)
-
withUID
public FileSpec withUID(java.lang.String value)
-
withUserFileName
public FileSpec withUserFileName(java.lang.String value)
-
equals
public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)- Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
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
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-