Class Defect
- java.lang.Object
-
- org.cip4.lib.xjdf.schema.Defect
-
- All Implemented Interfaces:
java.io.Serializable,org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2
public class Defect 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}Comment" minOccurs="0"/> <element ref="{http://www.CIP4.org/JDFSchema_2_0}FileSpec" minOccurs="0"/> </sequence> <attribute name="Box" type="{http://www.CIP4.org/JDFSchema_2_0}rectangle" /> <attribute name="DefectReason" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" /> <attribute name="DefectType" use="required"> <simpleType> <list> <simpleType> <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"> <enumeration value="FinishingDefect"/> <enumeration value="ImageDefect"/> <enumeration value="ImageFinishingDefect"/> <enumeration value="Other"/> <enumeration value="SheetDefect"/> <enumeration value="SubstrateDefect"/> </restriction> </simpleType> </list> </simpleType> </attribute> <attribute name="DefectTypeDetails" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" /> <attribute name="Face" type="{http://www.CIP4.org/JDFSchema_2_0}Face" /> <attribute name="Severity" type="{http://www.CIP4.org/JDFSchema_2_0}Score" /> <attribute name="Size" type="{http://www.w3.org/2001/XMLSchema}float" /> <anyAttribute processContents='lax' namespace='##other'/> </restriction> </complexContent> </complexType>- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefect.DefectTypeJava class for null.
-
Field Summary
Fields Modifier and Type Field Description protected Rectangleboxprotected Commentcommentprotected java.lang.StringdefectReasonprotected java.util.List<Defect.DefectType>defectTypeprotected java.lang.StringdefectTypeDetailsprotected Facefaceprotected FileSpecfileSpecprotected java.lang.Integerseverityprotected java.lang.Floatsize
-
Constructor Summary
Constructors Constructor Description Defect()
-
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)RectanglegetBox()Gets the value of the box property.CommentgetComment()Gets the value of the comment property.java.lang.StringgetDefectReason()Gets the value of the defectReason property.java.util.List<Defect.DefectType>getDefectType()Gets the value of the defectType property.java.lang.StringgetDefectTypeDetails()Gets the value of the defectTypeDetails property.FacegetFace()Gets the value of the face property.FileSpecgetFileSpec()Gets the value of the fileSpec 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.java.lang.IntegergetSeverity()Gets the value of the severity property.java.lang.FloatgetSize()Gets the value of the size property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetBox(Rectangle value)Sets the value of the box property.voidsetComment(Comment value)Sets the value of the comment property.voidsetDefectReason(java.lang.String value)Sets the value of the defectReason property.voidsetDefectTypeDetails(java.lang.String value)Sets the value of the defectTypeDetails property.voidsetFace(Face value)Sets the value of the face property.voidsetFileSpec(FileSpec value)Sets the value of the fileSpec property.voidsetSeverity(java.lang.Integer value)Sets the value of the severity property.voidsetSize(java.lang.Float value)Sets the value of the size property.DefectwithBox(Rectangle value)DefectwithComment(Comment value)DefectwithDefectReason(java.lang.String value)DefectwithDefectType(java.util.Collection<Defect.DefectType> values)DefectwithDefectType(Defect.DefectType... values)DefectwithDefectTypeDetails(java.lang.String value)DefectwithFace(Face value)DefectwithFileSpec(FileSpec value)DefectwithSeverity(java.lang.Integer value)DefectwithSize(java.lang.Float value)
-
-
-
Field Detail
-
comment
protected Comment comment
-
fileSpec
protected FileSpec fileSpec
-
box
protected Rectangle box
-
defectReason
protected java.lang.String defectReason
-
defectType
protected java.util.List<Defect.DefectType> defectType
-
defectTypeDetails
protected java.lang.String defectTypeDetails
-
face
protected Face face
-
severity
protected java.lang.Integer severity
-
size
protected java.lang.Float size
-
-
Method Detail
-
getComment
public Comment getComment()
Gets the value of the comment property.- Returns:
- possible object is
Comment
-
setComment
public void setComment(Comment value)
Sets the value of the comment property.- Parameters:
value- allowed object isComment
-
getFileSpec
public FileSpec getFileSpec()
Gets the value of the fileSpec property.- Returns:
- possible object is
FileSpec
-
setFileSpec
public void setFileSpec(FileSpec value)
Sets the value of the fileSpec property.- Parameters:
value- allowed object isFileSpec
-
getBox
public Rectangle getBox()
Gets the value of the box property.- Returns:
- possible object is
String
-
setBox
public void setBox(Rectangle value)
Sets the value of the box property.- Parameters:
value- allowed object isString
-
getDefectReason
public java.lang.String getDefectReason()
Gets the value of the defectReason property.- Returns:
- possible object is
String
-
setDefectReason
public void setDefectReason(java.lang.String value)
Sets the value of the defectReason property.- Parameters:
value- allowed object isString
-
getDefectType
public java.util.List<Defect.DefectType> getDefectType()
Gets the value of the defectType 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 defectType property.For example, to add a new item, do as follows:
getDefectType().add(newItem);Objects of the following type(s) are allowed in the list
Defect.DefectType
-
getDefectTypeDetails
public java.lang.String getDefectTypeDetails()
Gets the value of the defectTypeDetails property.- Returns:
- possible object is
String
-
setDefectTypeDetails
public void setDefectTypeDetails(java.lang.String value)
Sets the value of the defectTypeDetails property.- Parameters:
value- allowed object isString
-
setFace
public void setFace(Face value)
Sets the value of the face property.- Parameters:
value- allowed object isFace
-
getSeverity
public java.lang.Integer getSeverity()
Gets the value of the severity property.- Returns:
- possible object is
Integer
-
setSeverity
public void setSeverity(java.lang.Integer value)
Sets the value of the severity property.- Parameters:
value- allowed object isInteger
-
getSize
public java.lang.Float getSize()
Gets the value of the size property.- Returns:
- possible object is
Float
-
setSize
public void setSize(java.lang.Float value)
Sets the value of the size property.- Parameters:
value- allowed object isFloat
-
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
-
withDefectReason
public Defect withDefectReason(java.lang.String value)
-
withDefectType
public Defect withDefectType(Defect.DefectType... values)
-
withDefectType
public Defect withDefectType(java.util.Collection<Defect.DefectType> values)
-
withDefectTypeDetails
public Defect withDefectTypeDetails(java.lang.String value)
-
withSeverity
public Defect withSeverity(java.lang.Integer value)
-
withSize
public Defect withSize(java.lang.Float 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
-
-