|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.purl.sword.base.SwordValidationInfo
public class SwordValidationInfo
Represents an validation information item about the elements/attributes.
| Field Summary | |
|---|---|
static String |
DUPLICATE_ELEMENT
|
static String |
ERROR_WITH_CONTENT
|
static String |
MISSING_ATTRIBUTE_WARNING
|
static String |
MISSING_CONTENT
|
static String |
MISSING_ELEMENT_ERROR
|
static String |
MISSING_ELEMENT_WARNING
|
static String |
UNKNOWN_ATTRIBUTE
|
static String |
UNKNOWN_ELEMENT
|
| Constructor Summary | |
|---|---|
SwordValidationInfo(XmlName element)
Create a new information object for the specified element. |
|
SwordValidationInfo(XmlName element,
String theMessage,
SwordValidationInfoType theType)
Create a new instance of a validation information object that reports on an element. |
|
SwordValidationInfo(XmlName element,
XmlName attribute)
Create a new information object for the specified element's attribute. |
|
SwordValidationInfo(XmlName element,
XmlName attribute,
String theMessage,
SwordValidationInfoType theType)
Create a new instance of a validation information object that reports on an attribute in the specified element. |
|
| Method Summary | |
|---|---|
void |
addAttributeValidationInfo(SwordValidationInfo attribute)
|
void |
addUnmarshallAttributeInfo(SwordValidationInfo unmarshallAttribute)
|
void |
addUnmarshallElementInfo(SwordValidationInfo unmarshallElement)
|
void |
addUnmarshallValidationInfo(ArrayList<SwordValidationInfo> elementItems,
ArrayList<SwordValidationInfo> attributeItems)
|
void |
addUnmarshallValidationInfo(SwordValidationInfo other)
|
void |
addValidationInfo(SwordValidationInfo item)
Add a related information item to this resource. |
void |
clearUnmarshallItems()
Clear the list of unmarshalled info items. |
void |
clearValidationItems()
Clear the list of validation info items. |
void |
createString(SwordValidationInfo info,
StringBuffer buffer,
String indent)
Utility method that will recursively print out the list of items for the specified validation info object. |
XmlName |
getAttribute()
Return the attribute that this information describes. |
String |
getContentDescription()
|
XmlName |
getElement()
Return the element that this information describes. |
String |
getMessage()
Return the information message. |
SwordValidationInfoType |
getType()
Return the type of information. |
Iterator<SwordValidationInfo> |
getUnmarshallAttributeInfoIterator()
|
Iterator<SwordValidationInfo> |
getUnmarshallElementInfoIterator()
|
Iterator<SwordValidationInfo> |
getValidationAttributeInfoIterator()
|
Iterator<SwordValidationInfo> |
getValidationElementInfoIterator()
Return an iterator to view the nested validation info objects. |
protected void |
resetType()
|
protected void |
resetType(Iterator<SwordValidationInfo> iterator)
|
void |
setAttribute(XmlName attribute)
Set the attribute that this information describes. |
void |
setContentDescription(String contentDescription)
|
void |
setElement(XmlName element)
Set the element that this information describes. |
void |
setMessage(String message)
Set the information message. |
void |
setType(SwordValidationInfoType type)
Set the type of information |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String UNKNOWN_ELEMENT
public static final String UNKNOWN_ATTRIBUTE
public static final String MISSING_ELEMENT_WARNING
public static final String MISSING_ATTRIBUTE_WARNING
public static final String DUPLICATE_ELEMENT
public static final String MISSING_CONTENT
public static final String MISSING_ELEMENT_ERROR
public static final String ERROR_WITH_CONTENT
| Constructor Detail |
|---|
public SwordValidationInfo(XmlName element)
theElement - The element.
public SwordValidationInfo(XmlName element,
XmlName attribute)
theElement - the element.theAttribute - the attribute.
public SwordValidationInfo(XmlName element,
String theMessage,
SwordValidationInfoType theType)
theElement - The element.theMessage - The information message.theType - The type of message.
public SwordValidationInfo(XmlName element,
XmlName attribute,
String theMessage,
SwordValidationInfoType theType)
elementPrefix - Prefix for the element.elementName - The local name for the element.attributePrefix - Prefix for the attribute.attributeName - The attribute.theMessage - The information message.theType - The type of message.| Method Detail |
|---|
public String getMessage()
public void setMessage(String message)
message - the message to setpublic SwordValidationInfoType getType()
public void setType(SwordValidationInfoType type)
type - the type to setpublic XmlName getElement()
public void setElement(XmlName element)
element - the element to setpublic XmlName getAttribute()
public void setAttribute(XmlName attribute)
attribute - the attribute to setpublic void addValidationInfo(SwordValidationInfo item)
item - The information item to store.public void addAttributeValidationInfo(SwordValidationInfo attribute)
public void addUnmarshallElementInfo(SwordValidationInfo unmarshallElement)
public void addUnmarshallAttributeInfo(SwordValidationInfo unmarshallAttribute)
public void clearValidationItems()
public void clearUnmarshallItems()
protected void resetType()
protected void resetType(Iterator<SwordValidationInfo> iterator)
public Iterator<SwordValidationInfo> getValidationElementInfoIterator()
public Iterator<SwordValidationInfo> getValidationAttributeInfoIterator()
public Iterator<SwordValidationInfo> getUnmarshallElementInfoIterator()
public Iterator<SwordValidationInfo> getUnmarshallAttributeInfoIterator()
public String getContentDescription()
public void setContentDescription(String contentDescription)
contentDescription - the contentDescription to set
public void addUnmarshallValidationInfo(ArrayList<SwordValidationInfo> elementItems,
ArrayList<SwordValidationInfo> attributeItems)
elementItems - attributeItems - public void addUnmarshallValidationInfo(SwordValidationInfo other)
public String toString()
toString in class Object
public void createString(SwordValidationInfo info,
StringBuffer buffer,
String indent)
info - The validation info object to display.indent - The level of indent, expressed as a number of space characters.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||