|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.tool.xml.ObjectXmlProfile
public class ObjectXmlProfile
Contains information and code for validating files intended for a specific ObjectXmlReader configuration.
Constructor Summary | |
---|---|
ObjectXmlProfile()
|
Method Summary | |
---|---|
boolean |
canHandleSignature(java.lang.String signature)
Returns true if this validator can handle the specified XML signature. |
java.util.List |
getImports()
Returns the list of standard imported packages the will be applied to handlers. |
java.lang.Exception |
getLastError()
Returns the any exception processed during the last isValid() call. |
java.util.List |
getObjectHandlers()
Returns the list of handlers needed to read the XML correctly. |
java.lang.String |
getRootTag()
|
java.lang.String |
getSignaturePattern()
Returns a single signature pattern that will be used to determine if this validator should handle a particular XML signature. |
java.util.List |
getSignaturePatterns()
Returns a list of regular expressions that will be used to determine if this validator should handle a particular XML signature. |
protected ObjectXmlReader |
getXmlReader()
Returns an appropriately configured reader. |
boolean |
isValid(java.io.Reader in)
Returns true if the XML in the reader is valid for this profile. |
void |
setImports(java.util.List imports)
Sets the list of standard imported packages that will be applied to handlers. |
void |
setObjectHandlers(java.util.List handlers)
Sets the list of handlers needed to read the XML correctly. |
void |
setRootTag(java.lang.String tag)
Sets the root tag for the profile. |
void |
setSignaturePattern(java.lang.String pattern)
Sets a single signature pattern that will be used to determine if this validator should handle a particular XML signature. |
void |
setSignaturePatterns(java.util.List patterns)
Sets a list of regular expressions that will be used to determine if this validator should handle a particular XML signature. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectXmlProfile()
Method Detail |
---|
public void setRootTag(java.lang.String tag)
public java.lang.String getRootTag()
protected ObjectXmlReader getXmlReader()
public boolean canHandleSignature(java.lang.String signature)
public boolean isValid(java.io.Reader in)
public java.lang.Exception getLastError()
public void setSignaturePatterns(java.util.List patterns)
public java.util.List getSignaturePatterns()
public void setSignaturePattern(java.lang.String pattern)
public java.lang.String getSignaturePattern()
public void setImports(java.util.List imports)
public java.util.List getImports()
public void setObjectHandlers(java.util.List handlers)
public java.util.List getObjectHandlers()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |