Package adams.core.io.filecomplete
Class XML
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,SizeOfHandler,Serializable
public class XML extends AbstractFileCompleteCheck
Checks whether the XML can be parsed.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanm_ExpandEntityReferencesSpecifies that the parser produced by this code will expand entity reference nodes.protected booleanm_NameSpaceAwarewhether the parser is namespace aware.protected booleanm_Validatingwhether the parser is validating or not.protected booleanm_XIncludeAwareSet state of XInclude processing.-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description XML()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineOptions()Adds options to the internal list of options.StringexpandEntityReferencesTipText()Returns the tip text for this property.booleangetExpandEntityReferences()Returns whether a parser expands entity references.booleangetNameSpaceAware()Returns whether a namespace aware parser used.booleangetValidating()Returns whether a validating parser is used.booleangetXIncludeAware()Returns whether a X-include aware parser is used.StringglobalInfo()Returns a string describing the object.booleanisComplete(byte[] buffer)Checks whether the byte buffer is complete.booleanisComplete(File file)Checks whether the file is complete.StringnameSpaceAwareTipText()Returns the tip text for this property.voidsetExpandEntityReferences(boolean value)Sets whether to expand entity references.voidsetNameSpaceAware(boolean value)Sets whether to use a namespace aware parser.voidsetValidating(boolean value)Sets whether to use a validating parser.voidsetXIncludeAware(boolean value)Sets whether to use a X-include aware parser.StringvalidatingTipText()Returns the tip text for this property.StringXIncludeAwareTipText()Returns the tip text for this property.-
Methods inherited from class adams.core.io.filecomplete.AbstractFileCompleteCheck
read
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_Validating
protected boolean m_Validating
whether the parser is validating or not.
-
m_NameSpaceAware
protected boolean m_NameSpaceAware
whether the parser is namespace aware.
-
m_XIncludeAware
protected boolean m_XIncludeAware
Set state of XInclude processing.
-
m_ExpandEntityReferences
protected boolean m_ExpandEntityReferences
Specifies that the parser produced by this code will expand entity reference nodes.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractOptionHandler
-
setValidating
public void setValidating(boolean value)
Sets whether to use a validating parser.- Parameters:
value- true if to use validating parser
-
getValidating
public boolean getValidating()
Returns whether a validating parser is used.- Returns:
- true if validating parser
-
validatingTipText
public String validatingTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setNameSpaceAware
public void setNameSpaceAware(boolean value)
Sets whether to use a namespace aware parser.- Parameters:
value- true if to use namespace aware parser
-
getNameSpaceAware
public boolean getNameSpaceAware()
Returns whether a namespace aware parser used.- Returns:
- true if namespace aware
-
nameSpaceAwareTipText
public String nameSpaceAwareTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setXIncludeAware
public void setXIncludeAware(boolean value)
Sets whether to use a X-include aware parser.- Parameters:
value- true if to use X-include aware parser
-
getXIncludeAware
public boolean getXIncludeAware()
Returns whether a X-include aware parser is used.- Returns:
- true if X-include aware parser
-
XIncludeAwareTipText
public String XIncludeAwareTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setExpandEntityReferences
public void setExpandEntityReferences(boolean value)
Sets whether to expand entity references.- Parameters:
value- true if to expand entity references
-
getExpandEntityReferences
public boolean getExpandEntityReferences()
Returns whether a parser expands entity references.- Returns:
- true if parser expands entity references
-
expandEntityReferencesTipText
public String expandEntityReferencesTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
isComplete
public boolean isComplete(byte[] buffer)
Checks whether the byte buffer is complete.- Specified by:
isCompletein classAbstractFileCompleteCheck- Parameters:
buffer- the buffer to check- Returns:
- true if complete
-
isComplete
public boolean isComplete(File file)
Checks whether the file is complete.- Specified by:
isCompletein classAbstractFileCompleteCheck- Parameters:
file- the file to check- Returns:
- true if complete
-
-