Package com.iizix.prop
Interface IPropErrorItem
- All Superinterfaces:
- Cloneable
- All Known Implementing Classes:
- PropErrorItem,- PropErrorItemValue
The generic property item error. A property can have several difference errors for each property, each one with a unique ID. One or more quick-fixes may be available, in which case there are Quick-fix IDs.
- Author:
- Christopher Mindus
- Field SummaryFields
- Method SummaryModifier and TypeMethodDescription- clone()Clones the error item.- booleanChecks if two error items are equal.- default StringGets the name of the child property that is "missing".- getID()Gets the ID of this error.- int- getIndex()Gets the index for a multi-property.Gets the location of an error, for user info only.Gets the location or property name of an error, for user info only.Gets the error message.- String[]Gets the quick-fix ID's.- intGets the severity.- getText- (boolean includeID) Gets a textual error description as "LEVEL[{\t}id]{\t}text" (where {\t} is the tab character).- default booleanReturns the flag indicating this error should be put in a child property with the name returned by- getChildPropName().- voidInitializes the error from XML.- voidSaves the item to XML.- void- setIndex- (int index) Sets the index for a multi-property.
- Field Details- ERRORstatic final int ERRORThe error level: ERROR (=2).- See Also:
 
- WARNINGstatic final int WARNINGThe error level: WARNING (=1).- See Also:
 
- INFOstatic final int INFOThe error level: INFO (=0).- See Also:
 
- CHILD_PROP_ERROR_PREFIXThe prefix for child property error.- See Also:
 
- VERIFY_ERROR_CHILD_PREFIXThe verification prefix for child errors.- See Also:
 
 
- Method Details- setIndexvoid setIndex- (int index) Sets the index for a multi-property.- Parameters:
- index- 0 for main part, otherwise one-based index for errored property value.
 
- getSeverityint getSeverity()Gets the severity.- Returns:
- INFO, WARNING or ERROR.
 
- getIDString getID()Gets the ID of this error.
- getMessageString getMessage()Gets the error message.- Returns:
- The error message.
 
- getLocationString getLocation()Gets the location of an error, for user info only.- Returns:
- The location, or null for none.
 
- getLocationOrNameString getLocationOrName()Gets the location or property name of an error, for user info only.- Returns:
- The location, or the property name if none is defined, never null.
 
- getTextGets a textual error description as "LEVEL[{\t}id]{\t}text" (where {\t} is the tab character).- Parameters:
- includeID- Flag to include ID or not.
 
- getIndexint getIndex()Gets the index for a multi-property.- Returns:
- -1 for none, 0 for main part, otherwise one-based index for errored property value.
 
- getQuickFixesString[] getQuickFixes()Gets the quick-fix ID's.- Returns:
- The list of quick-fix ID's or nullfor none.
 
- cloneIPropErrorItem clone()Clones the error item.- Returns:
- A clone.
 
- equalsChecks if two error items are equal.
- loadInitializes the error from XML.- Parameters:
- element- The- errorItemelement.
- Throws:
- Exception- For errors in XML.
 
- saveSaves the item to XML.- Parameters:
- element- The- errorItemelement to save the data to.
 
- isChildPropErrordefault boolean isChildPropError()Returns the flag indicating this error should be put in a child property with the name returned by- getChildPropName().
- getChildPropNameGets the name of the child property that is "missing".- Returns:
- The name of the child property, or null if not a child property error, i.e. isChildPropError()returns false.