Class MetaData
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.runtime.remoting.metadataservices.MetaData
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class MetaData extends NetObject
The base .NET class managing System.Runtime.Remoting.MetadataServices.MetaData, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.See: https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.Remoting.MetadataServices.MetaData
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static String
assemblyShortName
Assembly name: System.Runtime.Remotingstatic String
className
Qualified class name: System.Runtime.Remoting.MetadataServices.MetaDatastatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MetaData
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoMetaData
, a cast assert is made to check if types are compatible.static void
ConvertCodeSourceFileToAssemblyFile(String codePath, String assemblyPath, String strongNameFilename)
static void
ConvertCodeSourceStreamToAssemblyFile(NetArrayList outCodeStreamList, String assemblyPath, String strongNameFilename)
static void
ConvertSchemaStreamToCodeSourceStream(boolean clientProxy, String outputDirectory, Stream inputStream, NetArrayList outCodeStreamList)
static void
ConvertSchemaStreamToCodeSourceStream(boolean clientProxy, String outputDirectory, Stream inputStream, NetArrayList outCodeStreamList, String proxyUrl)
static void
ConvertSchemaStreamToCodeSourceStream(boolean clientProxy, String outputDirectory, Stream inputStream, NetArrayList outCodeStreamList, String proxyUrl, String proxyNamespace)
static void
ConvertTypesToSchemaToFile(NetType[] types, SdlType sdlType, String path)
static void
ConvertTypesToSchemaToFile(ServiceType[] types, SdlType sdlType, String path)
static void
ConvertTypesToSchemaToStream(NetType[] types, SdlType sdlType, Stream outputStream)
static void
ConvertTypesToSchemaToStream(ServiceType[] serviceTypes, SdlType sdlType, Stream outputStream)
String
getJCOAssemblyName()
Returns the reflected Assembly nameString
getJCOClassName()
Returns the reflected Class nameObject
getJCOInstance()
Returns the instantiated classString
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typestatic void
RetrieveSchemaFromUrlToFile(String url, String path)
static void
RetrieveSchemaFromUrlToStream(String url, Stream outputStream)
static void
SaveStreamToFile(Stream inputStream, String path)
void
setJCOInstance(JCObject instance)
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: System.Runtime.Remoting- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.Runtime.Remoting.MetadataServices.MetaData- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public 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 classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static MetaData cast(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoMetaData
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
MetaData
instance- Throws:
Throwable
- in case of error during cast operation
-
ConvertCodeSourceFileToAssemblyFile
public static void ConvertCodeSourceFileToAssemblyFile(String codePath, String assemblyPath, String strongNameFilename) throws Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, IndexOutOfRangeException, FormatException, PathTooLongException, NotSupportedException, NullReferenceException, SecurityException, IOException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, AbandonedMutexException, RemotingException, OutOfMemoryException
- Throws:
Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
IndexOutOfRangeException
FormatException
PathTooLongException
NotSupportedException
NullReferenceException
SecurityException
IOException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
AbandonedMutexException
RemotingException
OutOfMemoryException
-
ConvertCodeSourceStreamToAssemblyFile
public static void ConvertCodeSourceStreamToAssemblyFile(NetArrayList outCodeStreamList, String assemblyPath, String strongNameFilename) throws Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, IndexOutOfRangeException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NotSupportedException, NullReferenceException, SecurityException, FormatException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, AbandonedMutexException, RemotingException
- Throws:
Throwable
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
CultureNotFoundException
IndexOutOfRangeException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
NotSupportedException
NullReferenceException
SecurityException
FormatException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
AbandonedMutexException
RemotingException
-
ConvertSchemaStreamToCodeSourceStream
public static void ConvertSchemaStreamToCodeSourceStream(boolean clientProxy, String outputDirectory, Stream inputStream, NetArrayList outCodeStreamList) throws Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, FormatException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, XmlException, NotImplementedException, SUDSParserException
-
ConvertSchemaStreamToCodeSourceStream
public static void ConvertSchemaStreamToCodeSourceStream(boolean clientProxy, String outputDirectory, Stream inputStream, NetArrayList outCodeStreamList, String proxyUrl) throws Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, FormatException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, XmlException, NotImplementedException, SUDSParserException
-
ConvertSchemaStreamToCodeSourceStream
public static void ConvertSchemaStreamToCodeSourceStream(boolean clientProxy, String outputDirectory, Stream inputStream, NetArrayList outCodeStreamList, String proxyUrl, String proxyNamespace) throws Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, FormatException, IndexOutOfRangeException, NotImplementedException, NotSupportedException, InvalidOperationException, MissingManifestResourceException, ObjectDisposedException, XmlException, SUDSParserException
-
ConvertTypesToSchemaToFile
public static void ConvertTypesToSchemaToFile(ServiceType[] types, SdlType sdlType, String path) throws Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NotSupportedException, InvalidOperationException, NullReferenceException, SecurityException, NotImplementedException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
- Throws:
Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
FormatException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
NotSupportedException
InvalidOperationException
NullReferenceException
SecurityException
NotImplementedException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
-
ConvertTypesToSchemaToFile
public static void ConvertTypesToSchemaToFile(NetType[] types, SdlType sdlType, String path) throws Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NotSupportedException, InvalidOperationException, NullReferenceException, SecurityException, NotImplementedException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException
- Throws:
Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
FormatException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
NotSupportedException
InvalidOperationException
NullReferenceException
SecurityException
NotImplementedException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IndexOutOfRangeException
-
ConvertTypesToSchemaToStream
public static void ConvertTypesToSchemaToStream(ServiceType[] serviceTypes, SdlType sdlType, Stream outputStream) throws Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, NotImplementedException, OutOfMemoryException, MissingManifestResourceException, ObjectDisposedException, SecurityException, FormatException
- Throws:
Throwable
ArgumentNullException
TypeLoadException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotSupportedException
CultureNotFoundException
ArgumentOutOfRangeException
NotImplementedException
OutOfMemoryException
MissingManifestResourceException
ObjectDisposedException
SecurityException
FormatException
-
ConvertTypesToSchemaToStream
public static void ConvertTypesToSchemaToStream(NetType[] types, SdlType sdlType, Stream outputStream) throws Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, NotImplementedException, ArgumentOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, FormatException, IndexOutOfRangeException
- Throws:
Throwable
ArgumentNullException
TypeLoadException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotSupportedException
CultureNotFoundException
NotImplementedException
ArgumentOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
FormatException
IndexOutOfRangeException
-
RetrieveSchemaFromUrlToFile
public static void RetrieveSchemaFromUrlToFile(String url, String path) throws Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NotSupportedException, InvalidOperationException, NullReferenceException, SecurityException, IndexOutOfRangeException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, UriFormatException, OutOfMemoryException, ConfigurationErrorsException, MulticastNotSupportedException, InvalidCastException, MissingMethodException, TargetInvocationException
- Throws:
Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
FormatException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
NotSupportedException
InvalidOperationException
NullReferenceException
SecurityException
IndexOutOfRangeException
MissingManifestResourceException
NotImplementedException
ObjectDisposedException
UriFormatException
OutOfMemoryException
ConfigurationErrorsException
MulticastNotSupportedException
InvalidCastException
MissingMethodException
TargetInvocationException
-
RetrieveSchemaFromUrlToStream
public static void RetrieveSchemaFromUrlToStream(String url, Stream outputStream) throws Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, SecurityException, NotSupportedException, OutOfMemoryException, FormatException, IndexOutOfRangeException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, MemberAccessException, NullReferenceException, UriFormatException, ConfigurationErrorsException, MulticastNotSupportedException, InvalidCastException, MissingMethodException
- Throws:
Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
SecurityException
NotSupportedException
OutOfMemoryException
FormatException
IndexOutOfRangeException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
MemberAccessException
NullReferenceException
UriFormatException
ConfigurationErrorsException
MulticastNotSupportedException
InvalidCastException
MissingMethodException
-
SaveStreamToFile
public static void SaveStreamToFile(Stream inputStream, String path) throws Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NotSupportedException, InvalidOperationException, NullReferenceException, SecurityException, IndexOutOfRangeException, OutOfMemoryException
- Throws:
Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
FormatException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
NotSupportedException
InvalidOperationException
NullReferenceException
SecurityException
IndexOutOfRangeException
OutOfMemoryException
-
-