|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.system.CategoryFactory
public class CategoryFactory
Component Category Factory.
The CategoryFactory object is used to read the information in the registry to find out what classes are in a particular component category.
The CategoryFactory object provides no facility to retrieve the classes in a component category without instantiating an object. To do this you could use the COM SDK interface ICatInformation though it can be difficult to use this interface from some development environments, for example Visual Basic 6.
Constructor Summary | |
---|---|
CategoryFactory()
Constructs a CategoryFactory using ArcGIS Engine. |
|
CategoryFactory(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. CategoryFactory theCategoryFactory = (CategoryFactory) obj; |
Method Summary | |
---|---|
Object |
createNext()
Creates the next component in the category. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
int |
hashCode()
the hashcode for this object |
void |
setCategoryID(IUID rhs1)
The ID of the category. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public CategoryFactory() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic CategoryFactory(Object obj) throws IOException
CategoryFactory theCategoryFactory = (CategoryFactory) obj;
obj
to CategoryFactory
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void setCategoryID(IUID rhs1) throws IOException, AutomationException
Set the CategoryID to the GUID of the component category to be read.
After the component category was specified with the CategoryID property, it points to the classes registered in that category. If more classes were added to that component category, and the CategoryID property is set second time to the same category to retrieve all registered classes including new ones, the CategoryID still points to the first state of the component category in the registry. No new classes could be retrieved in the same application runtime.
setCategoryID
in interface ICategoryFactory
rhs1
- A reference to a com.esri.arcgis.system.IUID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object createNext() throws IOException, AutomationException
The CreateNext method retrieves classes from the specified component category. Specify the category with the CategoryID property.
createNext
in interface ICategoryFactory
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |