Package system.resources
Class ResourceManager
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.resources.ResourceManager
-
- All Implemented Interfaces:
IJCOBridgeReflected
- Direct Known Subclasses:
ComponentResourceManager
public class ResourceManager extends NetObject
The base .NET class managing System.Resources.ResourceManager, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Resources.ResourceManager
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.StringassemblyFullNameFully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: mscorlibstatic java.lang.StringclassNameQualified class name: System.Resources.ResourceManagerstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description ResourceManager()ResourceManager(java.lang.Object instance)Internal constructor.ResourceManager(java.lang.String baseName, Assembly assembly)ResourceManager(java.lang.String baseName, Assembly assembly, NetType usingResourceSet)ResourceManager(NetType resourceSource)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResourceManagercast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoResourceManager, a cast assert is made to check if types are compatible.static ResourceManagerCreateFileBasedResourceManager(java.lang.String baseName, java.lang.String resourceDir, NetType usingResourceSet)java.lang.StringgetBaseName()booleangetIgnoreCase()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeNetObjectGetObject(java.lang.String name)NetObjectGetObject(java.lang.String name, CultureInfo culture)ResourceSetGetResourceSet(CultureInfo culture, boolean createIfNotExists, boolean tryParents)NetTypegetResourceSetType()UnmanagedMemoryStreamGetStream(java.lang.String name)UnmanagedMemoryStreamGetStream(java.lang.String name, CultureInfo culture)java.lang.StringGetString(java.lang.String name)java.lang.StringGetString(java.lang.String name, CultureInfo culture)voidReleaseAllResources()voidsetIgnoreCase(boolean IgnoreCase)voidsetJCOInstance(JCObject instance)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: mscorlib- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Resources.ResourceManager- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ResourceManager
public ResourceManager(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
ResourceManager
public ResourceManager() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
ResourceManager
public ResourceManager(java.lang.String baseName, Assembly assembly) throws java.lang.Throwable, ArgumentNullException, ArgumentException, TypeLoadException, InvalidOperationException, SecurityException, MissingMethodException, TargetInvocationException, NotSupportedException, NotImplementedException, ArgumentOutOfRangeException, EventSourceException, OutOfMemoryException, ObjectDisposedException, AbandonedMutexException, CultureNotFoundException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionTypeLoadExceptionInvalidOperationExceptionSecurityExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionNotImplementedExceptionArgumentOutOfRangeExceptionEventSourceExceptionOutOfMemoryExceptionObjectDisposedExceptionAbandonedMutexExceptionCultureNotFoundException
-
ResourceManager
public ResourceManager(java.lang.String baseName, Assembly assembly, NetType usingResourceSet) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, MissingMethodException, TargetInvocationException, FormatException, NotImplementedException, EventSourceException
-
ResourceManager
public ResourceManager(NetType resourceSource) throws java.lang.Throwable, ArgumentNullException, ArgumentException, TypeLoadException, InvalidOperationException, SecurityException, MissingMethodException, TargetInvocationException, NotSupportedException, NotImplementedException, ArgumentOutOfRangeException, EventSourceException, OutOfMemoryException, ObjectDisposedException, AbandonedMutexException, CultureNotFoundException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionTypeLoadExceptionInvalidOperationExceptionSecurityExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionNotImplementedExceptionArgumentOutOfRangeExceptionEventSourceExceptionOutOfMemoryExceptionObjectDisposedExceptionAbandonedMutexExceptionCultureNotFoundException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static ResourceManager cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoResourceManager, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
ResourceManagerinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
GetStream
public UnmanagedMemoryStream GetStream(java.lang.String name) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, EventSourceException, ArgumentOutOfRangeException, ObjectDisposedException, AbandonedMutexException
-
GetStream
public UnmanagedMemoryStream GetStream(java.lang.String name, CultureInfo culture) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, NotImplementedException, EventSourceException, OutOfMemoryException, ArgumentOutOfRangeException, ObjectDisposedException, AbandonedMutexException
- Throws:
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionNotImplementedExceptionEventSourceExceptionOutOfMemoryExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionAbandonedMutexException
-
GetObject
public NetObject GetObject(java.lang.String name) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, NotImplementedException, EventSourceException, OutOfMemoryException, ArgumentOutOfRangeException, ObjectDisposedException, AbandonedMutexException
- Throws:
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionNotImplementedExceptionEventSourceExceptionOutOfMemoryExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionAbandonedMutexException
-
GetObject
public NetObject GetObject(java.lang.String name, CultureInfo culture) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, NotImplementedException, EventSourceException, OutOfMemoryException, ArgumentOutOfRangeException, ObjectDisposedException, AbandonedMutexException
- Throws:
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionNotImplementedExceptionEventSourceExceptionOutOfMemoryExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionAbandonedMutexException
-
CreateFileBasedResourceManager
public static ResourceManager CreateFileBasedResourceManager(java.lang.String baseName, java.lang.String resourceDir, NetType usingResourceSet) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, FormatException, NotImplementedException, EventSourceException, OutOfMemoryException
-
GetResourceSet
public ResourceSet GetResourceSet(CultureInfo culture, boolean createIfNotExists, boolean tryParents) throws java.lang.Throwable, ArgumentNullException, ArgumentException, FormatException, ArgumentOutOfRangeException, InvalidOperationException, NotImplementedException, ObjectDisposedException, EndOfStreamException, IOException, OutOfMemoryException, NotSupportedException, IndexOutOfRangeException, CultureNotFoundException, BadImageFormatException, SecurityException, MissingMethodException, TargetInvocationException, TypeLoadException, EventSourceException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionFormatExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotImplementedExceptionObjectDisposedExceptionEndOfStreamExceptionIOExceptionOutOfMemoryExceptionNotSupportedExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionBadImageFormatExceptionSecurityExceptionMissingMethodExceptionTargetInvocationExceptionTypeLoadExceptionEventSourceException
-
GetString
public java.lang.String GetString(java.lang.String name) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, MissingManifestResourceException, NotImplementedException, EventSourceException, OutOfMemoryException, ArgumentOutOfRangeException, ObjectDisposedException, AbandonedMutexException- Throws:
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionMissingManifestResourceExceptionNotImplementedExceptionEventSourceExceptionOutOfMemoryExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionAbandonedMutexException
-
GetString
public java.lang.String GetString(java.lang.String name, CultureInfo culture) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, MissingManifestResourceException, NotImplementedException, IndexOutOfRangeException, EventSourceException, OutOfMemoryException, ArgumentOutOfRangeException, ObjectDisposedException, AbandonedMutexException- Throws:
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionMissingManifestResourceExceptionNotImplementedExceptionIndexOutOfRangeExceptionEventSourceExceptionOutOfMemoryExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionAbandonedMutexException
-
ReleaseAllResources
public void ReleaseAllResources() throws java.lang.Throwable, NotImplementedException, IndexOutOfRangeException, EventSourceException, ArgumentNullException, OutOfMemoryException, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException
-
getIgnoreCase
public boolean getIgnoreCase() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setIgnoreCase
public void setIgnoreCase(boolean IgnoreCase) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getBaseName
public java.lang.String getBaseName() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getResourceSetType
public NetType getResourceSetType() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-