com.esri.arcgis.datasourcesfile
Class SMRestriction

java.lang.Object
  extended by com.esri.arcgis.datasourcesfile.SMRestriction
All Implemented Interfaces:
ISMRestriction, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class SMRestriction
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, ISMRestriction

COM Class 'SMRestriction'. Generated 3/19/2015 1:20:42 PM from 'C:\ArcGIS\COM\esriDataSourcesFile.olb'

Description 'Deprecated as of 10.1. The object for defining route restrictions.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.datasourcesfile.ISMRestriction
DISPID_1_GET_NAME, DISPID_1_PUTREF_NAME, DISPID_2_GET_NAME, DISPID_2_PUT_NAME, DISPID_3_GET_NAME, DISPID_3_PUT_NAME, IID, IID3df8d708_18e9_4d3c_bc69_54190a3577d8, xxDummy
 
Constructor Summary
SMRestriction()
          Constructs a SMRestriction using ArcGIS Engine.
SMRestriction(java.lang.Object obj)
          Construct a SMRestriction using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare this object with another
 ISMNetAttribute getAttribute()
          The network attribute used as a restriction.
static java.lang.String getClsid()
          getClsid.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 java.lang.Object getParam()
          The restriction parameter value.
 int getType()
          Restriction type.
 int hashCode()
          the hashcode for this object
 void release()
          Release a SMRestriction.
 void setAttributeByRef(ISMNetAttribute pAttr)
          The network attribute used as a restriction.
 void setParam(java.lang.Object pvParam)
          The restriction parameter value.
 void setType(int pVal)
          Restriction type.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SMRestriction

public SMRestriction()
              throws java.io.IOException,
                     java.net.UnknownHostException
Constructs a SMRestriction using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

SMRestriction

public SMRestriction(java.lang.Object obj)
              throws java.io.IOException
Construct a SMRestriction using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to SMRestriction.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems SMRestriction theSMRestriction = (SMRestriction) obj;
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a SMRestriction.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

getAttribute

public ISMNetAttribute getAttribute()
                             throws java.io.IOException,
                                    AutomationException
The network attribute used as a restriction.

Specified by:
getAttribute in interface ISMRestriction
Returns:
A reference to a com.esri.arcgis.datasourcesfile.ISMNetAttribute
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setAttributeByRef

public void setAttributeByRef(ISMNetAttribute pAttr)
                       throws java.io.IOException,
                              AutomationException
The network attribute used as a restriction.

Specified by:
setAttributeByRef in interface ISMRestriction
Parameters:
pAttr - A reference to a com.esri.arcgis.datasourcesfile.ISMNetAttribute (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getType

public int getType()
            throws java.io.IOException,
                   AutomationException
Restriction type.

Specified by:
getType in interface ISMRestriction
Returns:
A com.esri.arcgis.datasourcesfile.esriSMRestrictionType constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setType

public void setType(int pVal)
             throws java.io.IOException,
                    AutomationException
Restriction type.

Specified by:
setType in interface ISMRestriction
Parameters:
pVal - A com.esri.arcgis.datasourcesfile.esriSMRestrictionType constant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getParam

public java.lang.Object getParam()
                          throws java.io.IOException,
                                 AutomationException
The restriction parameter value.

Specified by:
getParam in interface ISMRestriction
Returns:
A Variant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setParam

public void setParam(java.lang.Object pvParam)
              throws java.io.IOException,
                     AutomationException
The restriction parameter value.

Specified by:
setParam in interface ISMRestriction
Parameters:
pvParam - A Variant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.