Package system.security
Class SecurityElement
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.security.SecurityElement
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class SecurityElement extends NetObject
The base .NET class managing System.Security.SecurityElement, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.See: https://docs.microsoft.com/en-us/dotnet/api/System.Security.SecurityElement
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static String
assemblyShortName
Assembly name: mscorlibstatic String
className
Qualified class name: System.Security.SecurityElementstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description SecurityElement()
SecurityElement(Object instance)
Internal constructor.SecurityElement(String tag)
SecurityElement(String tag, String text)
-
Method Summary
-
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: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: mscorlib- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.Security.SecurityElement- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SecurityElement
public SecurityElement(Object instance) throws Throwable
Internal constructor. Use with caution- Throws:
Throwable
-
SecurityElement
public SecurityElement(String tag) throws Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException
-
SecurityElement
public SecurityElement(String tag, String text) throws Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException
-
-
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 SecurityElement cast(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoSecurityElement
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
SecurityElement
instance- Throws:
Throwable
- in case of error during cast operation
-
Equal
public boolean Equal(SecurityElement other) throws Throwable, ArgumentOutOfRangeException
- Throws:
Throwable
ArgumentOutOfRangeException
-
IsValidAttributeName
public static boolean IsValidAttributeName(String name) throws Throwable
- Throws:
Throwable
-
IsValidAttributeValue
public static boolean IsValidAttributeValue(String value) throws Throwable
- Throws:
Throwable
-
Copy
public SecurityElement Copy() throws Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException
-
FromString
public static SecurityElement FromString(String xml) throws Throwable, ArgumentNullException, ArgumentException, FormatException, XmlSyntaxException, ArgumentOutOfRangeException, CultureNotFoundException, OutOfMemoryException, NotSupportedException
-
SearchForChildByTag
public SecurityElement SearchForChildByTag(String tag) throws Throwable, ArgumentNullException
- Throws:
Throwable
ArgumentNullException
-
Attribute
public String Attribute(String name) throws Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, OutOfMemoryException, FormatException, ArgumentException, IndexOutOfRangeException, ObjectDisposedException, CultureNotFoundException
-
Escape
public static String Escape(String str) throws Throwable, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, OutOfMemoryException, FormatException
-
SearchForTextOfTag
public String SearchForTextOfTag(String tag) throws Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, OutOfMemoryException, FormatException, ArgumentException, IndexOutOfRangeException, ObjectDisposedException, CultureNotFoundException
-
AddAttribute
public void AddAttribute(String name, String value) throws Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException
-
AddChild
public void AddChild(SecurityElement child) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException
-
getChildren
public NetArrayList getChildren() throws Throwable, ArgumentOutOfRangeException
- Throws:
Throwable
ArgumentOutOfRangeException
-
setChildren
public void setChildren(NetArrayList Children) throws Throwable, ArgumentException
- Throws:
Throwable
ArgumentException
-
getAttributes
public Hashtable getAttributes() throws Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, FormatException
-
setAttributes
public void setAttributes(Hashtable Attributes) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException
-
setTag
public void setTag(String Tag) throws Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException
-
getText
public String getText() throws Throwable, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, OutOfMemoryException, FormatException, ArgumentException, IndexOutOfRangeException, ObjectDisposedException, CultureNotFoundException
-
setText
public void setText(String Text) throws Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException
-
-