Package system.collections.specialized
Class NameValueCollection
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- org.mases.jcobridge.netreflection.NetObjectEnumerable
-
- system.collections.specialized.NameObjectCollectionBase
-
- system.collections.specialized.NameValueCollection
-
- All Implemented Interfaces:
java.lang.Iterable<NetObject>
,IEnumerable
,IJCOBridgeReflected
- Direct Known Subclasses:
WebHeaderCollection
public class NameValueCollection extends NameObjectCollectionBase
The base .NET class managing System.Collections.Specialized.NameValueCollection, System.Collections.Specialized, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Specialized.NameValueCollection
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.Collections.Specialized, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.Collections.Specializedstatic java.lang.String
className
Qualified class name: System.Collections.Specialized.NameValueCollectionstatic JCType
classType
The type managed from JCOBridge.-
Fields inherited from class org.mases.jcobridge.netreflection.NetObjectEnumerable
Null
-
-
Constructor Summary
Constructors Constructor Description NameValueCollection()
NameValueCollection(int capacity)
NameValueCollection(int capacity, IEqualityComparer equalityComparer)
NameValueCollection(int capacity, IHashCodeProvider hashProvider, IComparer comparer)
NameValueCollection(int capacity, NameValueCollection col)
NameValueCollection(java.lang.Object instance)
Internal constructor.NameValueCollection(IEqualityComparer equalityComparer)
NameValueCollection(IHashCodeProvider hashProvider, IComparer comparer)
NameValueCollection(NameValueCollection col)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
Add(java.lang.String name, java.lang.String value)
void
Add(NameValueCollection c)
static NameValueCollection
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoNameValueCollection
, a cast assert is made to check if types are compatible.void
Clear()
void
CopyTo(Array dest, int index)
java.lang.String
Get(int index)
java.lang.String
Get(java.lang.String name)
java.lang.String[]
getAllKeys()
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 Typejava.lang.String
GetKey(int index)
java.lang.String[]
GetValues(int index)
java.lang.String[]
GetValues(java.lang.String name)
boolean
HasKeys()
void
Remove(java.lang.String name)
void
Set(java.lang.String name, java.lang.String value)
void
setJCOInstance(JCObject instance)
-
Methods inherited from class system.collections.specialized.NameObjectCollectionBase
getCount, GetObjectData, OnDeserialization
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObjectEnumerable
GetEnumerator, iterator
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Collections.Specialized, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Collections.Specialized- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Collections.Specialized.NameValueCollection- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NameValueCollection
public NameValueCollection(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
NameValueCollection
public NameValueCollection() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
IndexOutOfRangeException
PlatformNotSupportedException
-
NameValueCollection
public NameValueCollection(int capacity, IEqualityComparer equalityComparer) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, InvalidOperationException, FormatException
-
NameValueCollection
public NameValueCollection(int capacity, IHashCodeProvider hashProvider, IComparer comparer) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException
-
NameValueCollection
public NameValueCollection(int capacity, NameValueCollection col) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
NameValueCollection
public NameValueCollection(int capacity) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException
-
NameValueCollection
public NameValueCollection(IEqualityComparer equalityComparer) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, NotSupportedException, IndexOutOfRangeException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
NotSupportedException
IndexOutOfRangeException
PlatformNotSupportedException
-
NameValueCollection
public NameValueCollection(IHashCodeProvider hashProvider, IComparer comparer) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, NotSupportedException, IndexOutOfRangeException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
NotSupportedException
IndexOutOfRangeException
PlatformNotSupportedException
-
NameValueCollection
public NameValueCollection(NameValueCollection col) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, NotSupportedException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, RankException, ArrayTypeMismatchException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
-
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 classNameObjectCollectionBase
- 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 classNameObjectCollectionBase
- 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 classNameObjectCollectionBase
- 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 classNameObjectCollectionBase
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNameObjectCollectionBase
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNameObjectCollectionBase
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static NameValueCollection cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoNameValueCollection
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
NameValueCollection
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
HasKeys
public boolean HasKeys() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Get
public java.lang.String Get(int index) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, OutOfMemoryException
-
Get
public java.lang.String Get(java.lang.String name) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, ArgumentException, OutOfMemoryException
-
GetKey
public java.lang.String GetKey(int index) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
GetValues
public java.lang.String[] GetValues(int index) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
GetValues
public java.lang.String[] GetValues(java.lang.String name) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, PlatformNotSupportedException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException
-
Add
public void Add(NameValueCollection c) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
-
Add
public void Add(java.lang.String name, java.lang.String value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
-
Clear
public void Clear() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException
-
CopyTo
public void CopyTo(Array dest, int index) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, IndexOutOfRangeException
-
Remove
public void Remove(java.lang.String name) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException
-
Set
public void Set(java.lang.String name, java.lang.String value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
-
getAllKeys
public java.lang.String[] getAllKeys() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
-