com.esri.arcgis.datasourcesraster
Class UniqueValues

java.lang.Object
  extended by com.esri.arcgis.datasourcesraster.UniqueValues
All Implemented Interfaces:
IUniqueDoubleValues, IUniqueDoubleValues2, IUniqueMutliStringValues, IUniqueStringValues, IUniqueStringValues2, IUniqueValues, IUniqueValues2, com.esri.arcgis.interop.RemoteObjRef, IPersist, IPersistStream, IXMLSerialize, java.io.Externalizable, java.io.Serializable

public class UniqueValues
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IUniqueValues, IUniqueValues2, IUniqueStringValues, IUniqueStringValues2, IUniqueMutliStringValues, IUniqueDoubleValues, IUniqueDoubleValues2, IPersist, IPersistStream, IXMLSerialize, java.io.Externalizable

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

Description 'A raster unique value class.' 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
static long serialVersionUID
           
 
Fields inherited from interface com.esri.arcgis.datasourcesraster.IUniqueValues2
IID, IIDbcf576fb_5e01_4b39_b062_d5b167a2e3e5, xxDummy
 
Fields inherited from interface com.esri.arcgis.datasourcesraster.IUniqueValues
IIDb2768ab2_e583_4ccf_831d_36237c2f520a
 
Fields inherited from interface com.esri.arcgis.datasourcesraster.IUniqueStringValues
IID, IIDb39479e3_ec24_49ce_b268_556375700b8a, xxDummy
 
Fields inherited from interface com.esri.arcgis.datasourcesraster.IUniqueStringValues2
IID, IID066dd15a_3646_4c71_bedf_3b3c9dcb1e4a, xxDummy
 
Fields inherited from interface com.esri.arcgis.datasourcesraster.IUniqueMutliStringValues
IID, IIDf6a0372d_21fd_4167_ac40_270c7b2cfe56, xxDummy
 
Fields inherited from interface com.esri.arcgis.datasourcesraster.IUniqueDoubleValues
IID, IIDd8d8e1ef_d10f_45e9_804a_dd1994c9afe3, xxDummy
 
Fields inherited from interface com.esri.arcgis.datasourcesraster.IUniqueDoubleValues2
IID, IIDe07d1c59_c0da_4a19_bdfa_c555ca4e0971, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.IPersistStream
IID, IID00000109_0000_0000_c000_000000000046, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.IPersist
IID0000010c_0000_0000_c000_000000000046
 
Fields inherited from interface com.esri.arcgis.system.IXMLSerialize
IID, IIDc8545045_6615_48e3_af27_52a0e5fc35e2, xxDummy
 
Constructor Summary
UniqueValues()
          Constructs a UniqueValues using ArcGIS Engine.
UniqueValues(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
UniqueValues theUniqueValues = (UniqueValues) obj;
 
Method Summary
 int add(double value, double count)
          Adds a value if necessary and returns its value ID.
 int add(double value, int count)
          Adds a value if necessary and returns its value ID.
 int add(int value, int count)
          Adds a value if necessary and returns its value ID.
 int add(java.lang.Object stringArray, int count)
          add
 int add(java.lang.String value, double count)
          Adds a value if necessary and returns its value ID.
 int add(java.lang.String value, int count)
          Adds a value if necessary and returns its value ID.
 void delete(double value)
          Deletes a value.
 void delete(int value)
          Deletes a value.
 void delete(java.lang.Object stringArray)
          delete
 void delete(java.lang.String value)
          Deletes a value.
 void deserialize(IXMLSerializeData data)
          Deserializes an object from XML.
 void empty()
          Empties unique values.
 boolean equals(java.lang.Object o)
          Compare this object with another
 void getClassID(GUID[] pClassID)
          getClassID
static java.lang.String getClsid()
          getClsid.
 int getCount()
          The total number of unique values.
 void getHistogram(java.lang.Object[] pUniqueValues, java.lang.Object[] pCounts)
          The historgram of values.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 void getLargeHistogram(java.lang.Object[] pUniqueValues, java.lang.Object[] pCounts)
          The historgram of values.
 double getLargeUniqueCount(int idnex)
          The unique value count at a given index.
 int getMax()
          The maximum of values.
 int getMin()
          The minimum of values.
 void getSizeMax(_ULARGE_INTEGER[] pcbSize)
          getSizeMax
 int getUniqueCount(int idnex)
          The unique value count at a given index.
 java.lang.Object getUniqueValue(int index)
          The unique value at a given index.
 int hashCode()
          the hashcode for this object
 void isDirty()
          isDirty
 void load(IStream pstm)
          load
 int lookup(double value)
          Looks up unique index of a given value.
 int lookup(int value)
          Looks up unique index of a given value.
 int lookup(java.lang.String value)
          Looks up unique index of a given value.
 void readExternal(java.io.ObjectInput in)
           
 void release()
          Release a UniqueValues.
 void save(IStream pstm, int fClearDirty)
          save
 void serialize(IXMLSerializeData data)
          Serializes an object to XML.
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

UniqueValues

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

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

UniqueValues

public UniqueValues(java.lang.Object obj)
             throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
UniqueValues theUniqueValues = (UniqueValues) obj;

Construct a UniqueValues using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to UniqueValues.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
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 UniqueValues.

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

lookup

public int lookup(int value)
           throws java.io.IOException,
                  AutomationException
Looks up unique index of a given value.

Specified by:
lookup in interface IUniqueValues
Parameters:
value - The value (in)
Returns:
The index
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

add

public int add(int value,
               int count)
        throws java.io.IOException,
               AutomationException
Adds a value if necessary and returns its value ID.

Specified by:
add in interface IUniqueValues
Parameters:
value - The value (in)
count - The count (in)
Returns:
The index
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

delete

public void delete(int value)
            throws java.io.IOException,
                   AutomationException
Deletes a value.

Specified by:
delete in interface IUniqueValues
Parameters:
value - The value (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

empty

public void empty()
           throws java.io.IOException,
                  AutomationException
Empties unique values.

Specified by:
empty in interface IUniqueValues
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getUniqueValue

public java.lang.Object getUniqueValue(int index)
                                throws java.io.IOException,
                                       AutomationException
The unique value at a given index.

Specified by:
getUniqueValue in interface IUniqueValues
Parameters:
index - The index (in)
Returns:
A Variant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getUniqueCount

public int getUniqueCount(int idnex)
                   throws java.io.IOException,
                          AutomationException
The unique value count at a given index.

Specified by:
getUniqueCount in interface IUniqueValues
Parameters:
idnex - The idnex (in)
Returns:
The uniqueCount
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCount

public int getCount()
             throws java.io.IOException,
                    AutomationException
The total number of unique values.

Specified by:
getCount in interface IUniqueValues
Returns:
The count
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMin

public int getMin()
           throws java.io.IOException,
                  AutomationException
The minimum of values.

Specified by:
getMin in interface IUniqueValues
Returns:
The min
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMax

public int getMax()
           throws java.io.IOException,
                  AutomationException
The maximum of values.

Specified by:
getMax in interface IUniqueValues
Returns:
The max
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getHistogram

public void getHistogram(java.lang.Object[] pUniqueValues,
                         java.lang.Object[] pCounts)
                  throws java.io.IOException,
                         AutomationException
The historgram of values.

Specified by:
getHistogram in interface IUniqueValues
Parameters:
pUniqueValues - A Variant (out: use single element array)
pCounts - A Variant (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLargeUniqueCount

public double getLargeUniqueCount(int idnex)
                           throws java.io.IOException,
                                  AutomationException
The unique value count at a given index.

Specified by:
getLargeUniqueCount in interface IUniqueValues2
Parameters:
idnex - The idnex (in)
Returns:
The uniqueCount
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLargeHistogram

public void getLargeHistogram(java.lang.Object[] pUniqueValues,
                              java.lang.Object[] pCounts)
                       throws java.io.IOException,
                              AutomationException
The historgram of values.

Specified by:
getLargeHistogram in interface IUniqueValues2
Parameters:
pUniqueValues - A Variant (out: use single element array)
pCounts - A Variant (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

lookup

public int lookup(java.lang.String value)
           throws java.io.IOException,
                  AutomationException
Looks up unique index of a given value.

Specified by:
lookup in interface IUniqueStringValues
Parameters:
value - The value (in)
Returns:
The index
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

add

public int add(java.lang.String value,
               int count)
        throws java.io.IOException,
               AutomationException
Adds a value if necessary and returns its value ID.

Specified by:
add in interface IUniqueStringValues
Parameters:
value - The value (in)
count - The count (in)
Returns:
The index
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

delete

public void delete(java.lang.String value)
            throws java.io.IOException,
                   AutomationException
Deletes a value.

Specified by:
delete in interface IUniqueStringValues
Parameters:
value - The value (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

add

public int add(java.lang.String value,
               double count)
        throws java.io.IOException,
               AutomationException
Adds a value if necessary and returns its value ID.

Specified by:
add in interface IUniqueStringValues2
Parameters:
value - The value (in)
count - The count (in)
Returns:
The index
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

add

public int add(java.lang.Object stringArray,
               int count)
        throws java.io.IOException,
               AutomationException
add

Specified by:
add in interface IUniqueMutliStringValues
Parameters:
stringArray - A Variant (in)
count - The count (in)
Returns:
The index
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

delete

public void delete(java.lang.Object stringArray)
            throws java.io.IOException,
                   AutomationException
delete

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

lookup

public int lookup(double value)
           throws java.io.IOException,
                  AutomationException
Looks up unique index of a given value.

Specified by:
lookup in interface IUniqueDoubleValues
Parameters:
value - The value (in)
Returns:
The index
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

add

public int add(double value,
               int count)
        throws java.io.IOException,
               AutomationException
Adds a value if necessary and returns its value ID.

Specified by:
add in interface IUniqueDoubleValues
Parameters:
value - The value (in)
count - The count (in)
Returns:
The index
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

delete

public void delete(double value)
            throws java.io.IOException,
                   AutomationException
Deletes a value.

Specified by:
delete in interface IUniqueDoubleValues
Parameters:
value - The value (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

add

public int add(double value,
               double count)
        throws java.io.IOException,
               AutomationException
Adds a value if necessary and returns its value ID.

Specified by:
add in interface IUniqueDoubleValues2
Parameters:
value - The value (in)
count - The count (in)
Returns:
The index
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getClassID

public void getClassID(GUID[] pClassID)
                throws java.io.IOException,
                       AutomationException
getClassID

Specified by:
getClassID in interface IPersist
Parameters:
pClassID - A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isDirty

public void isDirty()
             throws java.io.IOException,
                    AutomationException
isDirty

Specified by:
isDirty in interface IPersistStream
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

load

public void load(IStream pstm)
          throws java.io.IOException,
                 AutomationException
load

Specified by:
load in interface IPersistStream
Parameters:
pstm - A reference to a com.esri.arcgis.system.IStream (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

save

public void save(IStream pstm,
                 int fClearDirty)
          throws java.io.IOException,
                 AutomationException
save

Specified by:
save in interface IPersistStream
Parameters:
pstm - A reference to a com.esri.arcgis.system.IStream (in)
fClearDirty - The fClearDirty (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSizeMax

public void getSizeMax(_ULARGE_INTEGER[] pcbSize)
                throws java.io.IOException,
                       AutomationException
getSizeMax

Specified by:
getSizeMax in interface IPersistStream
Parameters:
pcbSize - A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

serialize

public void serialize(IXMLSerializeData data)
               throws java.io.IOException,
                      AutomationException
Serializes an object to XML.

Specified by:
serialize in interface IXMLSerialize
Parameters:
data - A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deserialize

public void deserialize(IXMLSerializeData data)
                 throws java.io.IOException,
                        AutomationException
Deserializes an object from XML.

Specified by:
deserialize in interface IXMLSerialize
Parameters:
data - A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException