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_NameSpaceAwarewhether the parser is namespace aware.protected booleanm_Validatingwhether the parser is validating or not.-
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.booleangetNameSpaceAware()Returns whether a namespace aware parser used.booleangetValidating()Returns whether a validating 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.voidsetNameSpaceAware(boolean value)Sets whether to use a namespace aware parser.voidsetValidating(boolean value)Sets whether to use a validating parser.StringvalidatingTipText()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, toCommandLine, toString
-
Methods inherited from class adams.core.logging.CustomLoggingLevelObject
setLoggingLevel
-
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
-
-
-
-
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.
-
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
-
-