All Downloads are FREE. Search and download functionalities are using the official Maven repository.

system.web.SiteMapNode Maven / Gradle / Ivy

/*
 *  MIT License
 *
 *  Copyright (c) 2024 MASES s.r.l.
 *
 *  Permission is hereby granted, free of charge, to any person obtaining a copy
 *  of this software and associated documentation files (the "Software"), to deal
 *  in the Software without restriction, including without limitation the rights
 *  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 *  copies of the Software, and to permit persons to whom the Software is
 *  furnished to do so, subject to the following conditions:
 *
 *  The above copyright notice and this permission notice shall be included in all
 *  copies or substantial portions of the Software.
 *
 *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 *  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 *  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 *  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 *  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 *  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 *  SOFTWARE.
 */

/**************************************************************************************
 * 
 *      This code was generated from a template using JCOReflector v. 1.15.0.0
 * 
 *      Manual changes to this file may cause unexpected behavior in your application.
 *      Manual changes to this file will be overwritten if the code is regenerated.
 * 
 *************************************************************************************/

package system.web;

import org.mases.jcobridge.*;
import org.mases.jcobridge.netreflection.*;
import java.util.ArrayList;

// Import section
import system.web.SiteMapProvider;
import system.collections.IList;
import system.collections.IListImplementation;
import system.collections.specialized.NameValueCollection;
import system.web.HttpContext;
import system.web.SiteMapNode;
import system.web.SiteMapNodeCollection;
import system.web.ui.webcontrols.SiteMapDataSourceView;
import system.web.ui.webcontrols.SiteMapDataSource;
import system.web.ui.webcontrols.SiteMapHierarchicalDataSourceView;
import system.web.ui.IHierarchicalEnumerable;
import system.web.ui.IHierarchicalEnumerableImplementation;
import system.web.ui.IHierarchyData;
import system.web.ui.IHierarchyDataImplementation;


/**
 * The base .NET class managing System.Web.SiteMapNode, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
 * 

* * .NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Web.SiteMapNode *

* * Powered by JCOBridge: more info at https://www.jcobridge.com * * @author MASES s.r.l https://masesgroup.com * @version 1.15.0.0 */ public class SiteMapNode extends NetObject { /** * Fully assembly qualified name: System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a */ public static final String assemblyFullName = "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; /** * Assembly name: System.Web */ public static final String assemblyShortName = "System.Web"; /** * Qualified class name: System.Web.SiteMapNode */ public static final String className = "System.Web.SiteMapNode"; static JCOBridge bridge = JCOBridgeInstance.getInstance(assemblyFullName); /** * The type managed from JCOBridge. See {@link JCType} */ public static JCType classType = createType(); static JCEnum enumInstance = null; JCObject classInstance = null; static JCType createType() { try { String classToCreate = className + ", " + (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); if (JCOReflector.getDebug()) JCOReflector.writeLog("Creating %s", classToCreate); JCType typeCreated = bridge.GetType(classToCreate); if (JCOReflector.getDebug()) JCOReflector.writeLog("Created: %s", (typeCreated != null) ? typeCreated.toString() : "Returned null value"); return typeCreated; } catch (JCException e) { JCOReflector.writeLog(e); return null; } } void addReference(String ref) throws Throwable { try { bridge.AddReference(ref); } catch (JCNativeException jcne) { throw translateException(jcne); } } /** * Internal constructor. Use with caution */ public SiteMapNode(java.lang.Object instance) throws Throwable { super(instance); if (instance instanceof JCObject) { classInstance = (JCObject) instance; } else throw new Exception("Cannot manage object, it is not a JCObject"); } public String getJCOAssemblyName() { return assemblyFullName; } public String getJCOClassName() { return className; } public String getJCOObjectName() { return className + ", " + (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); } public java.lang.Object getJCOInstance() { return classInstance; } public void setJCOInstance(JCObject instance) { classInstance = instance; super.setJCOInstance(classInstance); } public JCType getJCOType() { return classType; } /** * Try to cast the {@link IJCOBridgeReflected} instance into {@link SiteMapNode}, a cast assert is made to check if types are compatible. * @param from {@link IJCOBridgeReflected} instance to be casted * @return {@link SiteMapNode} instance * @throws java.lang.Throwable in case of error during cast operation */ public static SiteMapNode cast(IJCOBridgeReflected from) throws Throwable { NetType.AssertCast(classType, from); return new SiteMapNode(from.getJCOInstance()); } // Constructors section public SiteMapNode() throws Throwable { } public SiteMapNode(SiteMapProvider provider, java.lang.String key) throws Throwable, system.web.HttpException, system.ArgumentNullException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.OutOfMemoryException, system.ArgumentException { try { // add reference to assemblyName.dll file addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); setJCOInstance((JCObject)classType.NewObject(provider == null ? null : provider.getJCOInstance(), key)); } catch (JCNativeException jcne) { throw translateException(jcne); } } public SiteMapNode(SiteMapProvider provider, java.lang.String key, java.lang.String url) throws Throwable, system.web.HttpException, system.ArgumentNullException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.OutOfMemoryException, system.ArgumentException { try { // add reference to assemblyName.dll file addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); setJCOInstance((JCObject)classType.NewObject(provider == null ? null : provider.getJCOInstance(), key, url)); } catch (JCNativeException jcne) { throw translateException(jcne); } } public SiteMapNode(SiteMapProvider provider, java.lang.String key, java.lang.String url, java.lang.String title) throws Throwable, system.web.HttpException, system.ArgumentNullException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.OutOfMemoryException, system.ArgumentException { try { // add reference to assemblyName.dll file addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); setJCOInstance((JCObject)classType.NewObject(provider == null ? null : provider.getJCOInstance(), key, url, title)); } catch (JCNativeException jcne) { throw translateException(jcne); } } public SiteMapNode(SiteMapProvider provider, java.lang.String key, java.lang.String url, java.lang.String title, java.lang.String description) throws Throwable, system.web.HttpException, system.ArgumentNullException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.OutOfMemoryException, system.ArgumentException { try { // add reference to assemblyName.dll file addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); setJCOInstance((JCObject)classType.NewObject(provider == null ? null : provider.getJCOInstance(), key, url, title, description)); } catch (JCNativeException jcne) { throw translateException(jcne); } } public SiteMapNode(SiteMapProvider provider, java.lang.String key, java.lang.String url, java.lang.String title, java.lang.String description, IList roles, NameValueCollection attributes, NameValueCollection explicitResourceKeys, java.lang.String implicitResourceKey) throws Throwable, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.ArgumentOutOfRangeException, system.web.HttpException, system.OutOfMemoryException, system.ArgumentException { try { // add reference to assemblyName.dll file addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); setJCOInstance((JCObject)classType.NewObject(provider == null ? null : provider.getJCOInstance(), key, url, title, description, roles == null ? null : roles.getJCOInstance(), attributes == null ? null : attributes.getJCOInstance(), explicitResourceKeys == null ? null : explicitResourceKeys.getJCOInstance(), implicitResourceKey)); } catch (JCNativeException jcne) { throw translateException(jcne); } } // Methods section public boolean IsAccessibleToUser(HttpContext context) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.web.HttpException, system.globalization.CultureNotFoundException, system.configuration.provider.ProviderException, system.configuration.ConfigurationErrorsException, system.NullReferenceException, system.security.SecurityException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (boolean)classInstance.Invoke("IsAccessibleToUser", context == null ? null : context.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public boolean IsDescendantOf(SiteMapNode node) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (boolean)classInstance.Invoke("IsDescendantOf", node == null ? null : node.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public SiteMapNode Clone() throws Throwable, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.ArgumentException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.NotSupportedException, system.web.HttpException, system.configuration.provider.ProviderException, system.configuration.ConfigurationErrorsException, system.OutOfMemoryException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objClone = (JCObject)classInstance.Invoke("Clone"); return new SiteMapNode(objClone); } catch (JCNativeException jcne) { throw translateException(jcne); } } public SiteMapNode Clone(boolean cloneParentNodes) throws Throwable, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.ArgumentException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ObjectDisposedException, system.InvalidOperationException, system.NotSupportedException, system.IndexOutOfRangeException, system.web.HttpException, system.configuration.provider.ProviderException, system.configuration.ConfigurationErrorsException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objClone = (JCObject)classInstance.Invoke("Clone", cloneParentNodes); return new SiteMapNode(objClone); } catch (JCNativeException jcne) { throw translateException(jcne); } } public SiteMapNodeCollection GetAllNodes() throws Throwable, system.ArgumentNullException, system.FormatException, system.ArgumentOutOfRangeException, system.ArgumentException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objGetAllNodes = (JCObject)classInstance.Invoke("GetAllNodes"); return new SiteMapNodeCollection(objGetAllNodes); } catch (JCNativeException jcne) { throw translateException(jcne); } } public SiteMapDataSourceView GetDataSourceView(SiteMapDataSource owner, java.lang.String viewName) throws Throwable, system.ArgumentNullException, system.MulticastNotSupportedException, system.FormatException, system.ArgumentOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objGetDataSourceView = (JCObject)classInstance.Invoke("GetDataSourceView", owner == null ? null : owner.getJCOInstance(), viewName); return new SiteMapDataSourceView(objGetDataSourceView); } catch (JCNativeException jcne) { throw translateException(jcne); } } public SiteMapHierarchicalDataSourceView GetHierarchicalDataSourceView() throws Throwable, system.ArgumentNullException, system.FormatException, system.ArgumentOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objGetHierarchicalDataSourceView = (JCObject)classInstance.Invoke("GetHierarchicalDataSourceView"); return new SiteMapHierarchicalDataSourceView(objGetHierarchicalDataSourceView); } catch (JCNativeException jcne) { throw translateException(jcne); } } /** * @deprecated Not for public use because the method is implemented in .NET with an explicit interface. * Use the static ToIHierarchyData method available in IHierarchyData to obtain an object with an invocable method */ @Deprecated public IHierarchicalEnumerable GetChildren() throws Throwable { throw new UnsupportedOperationException("Not for public use because the method is implemented with an explicit interface. Use ToIHierarchyData to obtain the full interface."); } /** * @deprecated Not for public use because the method is implemented in .NET with an explicit interface. * Use the static ToIHierarchyData method available in IHierarchyData to obtain an object with an invocable method */ @Deprecated public IHierarchyData GetParent() throws Throwable { throw new UnsupportedOperationException("Not for public use because the method is implemented with an explicit interface. Use ToIHierarchyData to obtain the full interface."); } // Properties section public boolean getHasChildNodes() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (boolean)classInstance.Get("HasChildNodes"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public boolean getReadOnly() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (boolean)classInstance.Get("ReadOnly"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setReadOnly(boolean ReadOnly) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("ReadOnly", ReadOnly); } catch (JCNativeException jcne) { throw translateException(jcne); } } public IList getRoles() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("Roles"); return new IListImplementation(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setRoles(IList Roles) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.NotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("Roles", Roles == null ? null : Roles.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getDescription() throws Throwable, system.ArgumentNullException, system.IndexOutOfRangeException, system.ArgumentException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.web.HttpException, system.configuration.ConfigurationException, system.configuration.provider.ProviderException, system.NotSupportedException, system.NullReferenceException, system.configuration.ConfigurationErrorsException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("Description"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setDescription(java.lang.String Description) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.NotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("Description", Description); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getKey() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("Key"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getResourceKey() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("ResourceKey"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setResourceKey(java.lang.String ResourceKey) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.NotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("ResourceKey", ResourceKey); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getTitle() throws Throwable, system.ArgumentNullException, system.IndexOutOfRangeException, system.ArgumentException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.web.HttpException, system.configuration.ConfigurationException, system.configuration.provider.ProviderException, system.NotSupportedException, system.NullReferenceException, system.configuration.ConfigurationErrorsException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("Title"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setTitle(java.lang.String Title) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.NotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("Title", Title); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getUrl() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("Url"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setUrl(java.lang.String Url) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.NotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.FormatException, system.web.HttpException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("Url", Url); } catch (JCNativeException jcne) { throw translateException(jcne); } } public SiteMapNode getNextSibling() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("NextSibling"); return new SiteMapNode(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public SiteMapNode getParentNode() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("ParentNode"); return new SiteMapNode(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setParentNode(SiteMapNode ParentNode) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.NotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("ParentNode", ParentNode == null ? null : ParentNode.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public SiteMapNode getPreviousSibling() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("PreviousSibling"); return new SiteMapNode(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public SiteMapNode getRootNode() throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.FormatException, system.InvalidOperationException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.configuration.provider.ProviderException, system.web.HttpException, system.configuration.ConfigurationErrorsException, system.configuration.ConfigurationException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("RootNode"); return new SiteMapNode(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public SiteMapNodeCollection getChildNodes() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("ChildNodes"); return new SiteMapNodeCollection(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setChildNodes(SiteMapNodeCollection ChildNodes) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.NotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("ChildNodes", ChildNodes == null ? null : ChildNodes.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public SiteMapProvider getProvider() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("Provider"); return new SiteMapProvider(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } // Instance Events section }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy