Package system.xml
Class XmlValidatingReader
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.xml.XmlReader
-
- system.xml.XmlValidatingReader
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
public class XmlValidatingReader extends XmlReader
The base .NET class managing System.Xml.XmlValidatingReader, System.Private.Xml, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Xml.XmlValidatingReader
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Private.Xml, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static java.lang.String
assemblyShortName
Assembly name: System.Private.Xmlstatic java.lang.String
className
Qualified class name: System.Xml.XmlValidatingReaderstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description XmlValidatingReader()
XmlValidatingReader(java.lang.Object instance)
Internal constructor.XmlValidatingReader(java.lang.String xmlFragment, XmlNodeType fragType, XmlParserContext context)
XmlValidatingReader(Stream xmlFragment, XmlNodeType fragType, XmlParserContext context)
XmlValidatingReader(XmlReader reader)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addValidationEventHandler(ValidationEventHandler handler)
static XmlValidatingReader
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoXmlValidatingReader
, a cast assert is made to check if types are compatible.void
Close()
java.lang.String
GetAttribute(int i)
java.lang.String
GetAttribute(java.lang.String name)
java.lang.String
GetAttribute(java.lang.String localName, java.lang.String namespaceURI)
Encoding
getEncoding()
EntityHandling
getEntityHandling()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typeint
getLineNumber()
int
getLinePosition()
boolean
getNamespaces()
XmlReader
getReader()
XmlSchemaCollection
getSchemas()
NetObject
getSchemaType()
ValidationType
getValidationType()
boolean
HasLineInfo()
java.lang.String
LookupNamespace(java.lang.String prefix)
void
MoveToAttribute(int i)
boolean
MoveToAttribute(java.lang.String name)
boolean
MoveToAttribute(java.lang.String localName, java.lang.String namespaceURI)
boolean
MoveToElement()
boolean
MoveToFirstAttribute()
boolean
MoveToNextAttribute()
boolean
Read()
boolean
ReadAttributeValue()
int
ReadContentAsBase64(byte[] buffer, int index, int count)
int
ReadContentAsBase64(JCORefOut dupParam0, int dupParam1, int dupParam2)
int
ReadContentAsBinHex(byte[] buffer, int index, int count)
int
ReadContentAsBinHex(JCORefOut dupParam0, int dupParam1, int dupParam2)
int
ReadElementContentAsBase64(byte[] buffer, int index, int count)
int
ReadElementContentAsBase64(JCORefOut dupParam0, int dupParam1, int dupParam2)
int
ReadElementContentAsBinHex(byte[] buffer, int index, int count)
int
ReadElementContentAsBinHex(JCORefOut dupParam0, int dupParam1, int dupParam2)
java.lang.String
ReadString()
NetObject
ReadTypedValue()
void
removeValidationEventHandler(ValidationEventHandler handler)
void
ResolveEntity()
void
setEntityHandling(EntityHandling EntityHandling)
void
setJCOInstance(JCObject instance)
void
setNamespaces(boolean Namespaces)
void
setValidationType(ValidationType ValidationType)
void
setXmlResolver(XmlResolver XmlResolver)
-
Methods inherited from class system.xml.XmlReader
close, Create, Create, Create, Create, Create, Create, Create, Create, Create, Create, Create, Create, Dispose, getAttributeCount, getBaseURI, getCanReadBinaryContent, getCanReadValueChunk, getCanResolveEntity, getDepth, getEOF, getHasAttributes, getHasValue, getIsDefault, getIsEmptyElement, getLocalName, getName, getNamespaceURI, getNameTable, getNodeType, getPrefix, getQuoteChar, getReadState, getSchemaInfo, getSettings, getValue, getValueType, getXmlLang, getXmlSpace, IsName, IsNameToken, IsStartElement, IsStartElement, IsStartElement, MoveToContent, ReadContentAs, ReadContentAsBoolean, ReadContentAsDateTime, ReadContentAsDateTimeOffset, ReadContentAsDecimal, ReadContentAsDouble, ReadContentAsFloat, ReadContentAsInt, ReadContentAsLong, ReadContentAsObject, ReadContentAsString, ReadElementContentAs, ReadElementContentAs, ReadElementContentAsBoolean, ReadElementContentAsBoolean, ReadElementContentAsDateTime, ReadElementContentAsDateTime, ReadElementContentAsDecimal, ReadElementContentAsDecimal, ReadElementContentAsDouble, ReadElementContentAsDouble, ReadElementContentAsFloat, ReadElementContentAsFloat, ReadElementContentAsInt, ReadElementContentAsInt, ReadElementContentAsLong, ReadElementContentAsLong, ReadElementContentAsObject, ReadElementContentAsObject, ReadElementContentAsString, ReadElementContentAsString, ReadElementString, ReadElementString, ReadElementString, ReadEndElement, ReadInnerXml, ReadOuterXml, ReadStartElement, ReadStartElement, ReadStartElement, ReadSubtree, ReadToDescendant, ReadToDescendant, ReadToFollowing, ReadToFollowing, ReadToNextSibling, ReadToNextSibling, ReadValueChunk, ReadValueChunk, Skip, SkipAsync
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Private.Xml, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Private.Xml- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Xml.XmlValidatingReader- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XmlValidatingReader
public XmlValidatingReader(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
XmlValidatingReader
public XmlValidatingReader() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
XmlValidatingReader
public XmlValidatingReader(Stream xmlFragment, XmlNodeType fragType, XmlParserContext context) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IOException, OutOfMemoryException, XmlException, XmlSchemaException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IOException
OutOfMemoryException
XmlException
XmlSchemaException
-
XmlValidatingReader
public XmlValidatingReader(java.lang.String xmlFragment, XmlNodeType fragType, XmlParserContext context) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, XmlException, IndexOutOfRangeException, XmlSchemaException
-
XmlValidatingReader
public XmlValidatingReader(XmlReader reader) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, OutOfMemoryException, XmlException, XmlSchemaException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, UnreachableException, NotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
OutOfMemoryException
XmlException
XmlSchemaException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
UnreachableException
NotSupportedException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classXmlReader
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classXmlReader
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classXmlReader
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classXmlReader
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classXmlReader
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classXmlReader
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static XmlValidatingReader cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoXmlValidatingReader
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
XmlValidatingReader
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
HasLineInfo
public boolean HasLineInfo() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
MoveToAttribute
public boolean MoveToAttribute(java.lang.String localName, java.lang.String namespaceURI) throws java.lang.Throwable
- Overrides:
MoveToAttribute
in classXmlReader
- Throws:
java.lang.Throwable
-
MoveToAttribute
public boolean MoveToAttribute(java.lang.String name) throws java.lang.Throwable
- Overrides:
MoveToAttribute
in classXmlReader
- Throws:
java.lang.Throwable
-
MoveToElement
public boolean MoveToElement() throws java.lang.Throwable
- Overrides:
MoveToElement
in classXmlReader
- Throws:
java.lang.Throwable
-
MoveToFirstAttribute
public boolean MoveToFirstAttribute() throws java.lang.Throwable
- Overrides:
MoveToFirstAttribute
in classXmlReader
- Throws:
java.lang.Throwable
-
MoveToNextAttribute
public boolean MoveToNextAttribute() throws java.lang.Throwable
- Overrides:
MoveToNextAttribute
in classXmlReader
- Throws:
java.lang.Throwable
-
Read
public boolean Read() throws java.lang.Throwable
-
ReadAttributeValue
public boolean ReadAttributeValue() throws java.lang.Throwable
- Overrides:
ReadAttributeValue
in classXmlReader
- Throws:
java.lang.Throwable
-
ReadContentAsBase64
public int ReadContentAsBase64(byte[] buffer, int index, int count) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException
- Overrides:
ReadContentAsBase64
in classXmlReader
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
NotSupportedException
-
ReadContentAsBase64
public int ReadContentAsBase64(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException
- Overrides:
ReadContentAsBase64
in classXmlReader
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
NotSupportedException
-
ReadContentAsBinHex
public int ReadContentAsBinHex(byte[] buffer, int index, int count) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException
- Overrides:
ReadContentAsBinHex
in classXmlReader
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
NotSupportedException
-
ReadContentAsBinHex
public int ReadContentAsBinHex(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException
- Overrides:
ReadContentAsBinHex
in classXmlReader
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
NotSupportedException
-
ReadElementContentAsBase64
public int ReadElementContentAsBase64(byte[] buffer, int index, int count) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException
- Overrides:
ReadElementContentAsBase64
in classXmlReader
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
NotSupportedException
-
ReadElementContentAsBase64
public int ReadElementContentAsBase64(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException
- Overrides:
ReadElementContentAsBase64
in classXmlReader
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
NotSupportedException
-
ReadElementContentAsBinHex
public int ReadElementContentAsBinHex(byte[] buffer, int index, int count) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException
- Overrides:
ReadElementContentAsBinHex
in classXmlReader
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
NotSupportedException
-
ReadElementContentAsBinHex
public int ReadElementContentAsBinHex(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException
- Overrides:
ReadElementContentAsBinHex
in classXmlReader
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
NotSupportedException
-
ReadTypedValue
public NetObject ReadTypedValue() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, FormatException, OutOfMemoryException, XmlException
-
GetAttribute
public java.lang.String GetAttribute(int i) throws java.lang.Throwable
- Overrides:
GetAttribute
in classXmlReader
- Throws:
java.lang.Throwable
-
GetAttribute
public java.lang.String GetAttribute(java.lang.String localName, java.lang.String namespaceURI) throws java.lang.Throwable
- Overrides:
GetAttribute
in classXmlReader
- Throws:
java.lang.Throwable
-
GetAttribute
public java.lang.String GetAttribute(java.lang.String name) throws java.lang.Throwable
- Overrides:
GetAttribute
in classXmlReader
- Throws:
java.lang.Throwable
-
LookupNamespace
public java.lang.String LookupNamespace(java.lang.String prefix) throws java.lang.Throwable
- Overrides:
LookupNamespace
in classXmlReader
- Throws:
java.lang.Throwable
-
ReadString
public java.lang.String ReadString() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, OutOfMemoryException
- Overrides:
ReadString
in classXmlReader
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
OutOfMemoryException
-
Close
public void Close() throws java.lang.Throwable
-
MoveToAttribute
public void MoveToAttribute(int i) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
- Overrides:
MoveToAttribute
in classXmlReader
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
IndexOutOfRangeException
FormatException
-
ResolveEntity
public void ResolveEntity() throws java.lang.Throwable
- Overrides:
ResolveEntity
in classXmlReader
- Throws:
java.lang.Throwable
-
getNamespaces
public boolean getNamespaces() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setNamespaces
public void setNamespaces(boolean Namespaces) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
-
getLineNumber
public int getLineNumber() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getLinePosition
public int getLinePosition() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSchemaType
public NetObject getSchemaType() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NotSupportedException
-
getEncoding
public Encoding getEncoding() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getEntityHandling
public EntityHandling getEntityHandling() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setEntityHandling
public void setEntityHandling(EntityHandling EntityHandling) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, FormatException, OutOfMemoryException, XmlException
-
getSchemas
public XmlSchemaCollection getSchemas() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getValidationType
public ValidationType getValidationType() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setValidationType
public void setValidationType(ValidationType ValidationType) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, XmlException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, UnreachableException, NotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
XmlException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
UnreachableException
NotSupportedException
-
getReader
public XmlReader getReader() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setXmlResolver
public void setXmlResolver(XmlResolver XmlResolver) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addValidationEventHandler
public void addValidationEventHandler(ValidationEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeValidationEventHandler
public void removeValidationEventHandler(ValidationEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-