|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.schematic.NgDiagramType
public class NgDiagramType
Graphic diagram type object.
| Constructor Summary | |
|---|---|
NgDiagramType(Object obj)
Construct a NgDiagramType using a reference to such an object returned from ArcGIS Engine or Server. |
|
| Method Summary | |
|---|---|
void |
associateElementType(INgElementType elementType)
Associates the 'ElementType' element type with the diagram type. |
INgAttribute |
createAttribute(String attributeName,
int attributeType)
Creates a new attribute named 'attributeName' whose type is 'attributeType' for the object type. |
void |
delete(boolean deleteDescendants)
Deletes the diagram type. |
void |
deleteUserData(INgUserData userData)
Delete the specified userdata defined for the object type. |
void |
dissociateElementType(INgElementType elementType)
Dissociates the 'ElementType' element type with the diagram type. |
boolean |
equals(Object o)
Compare this object with another |
INgDiagramTypes |
getAncestors()
List of the ancestor diagram types for the diagram type. |
INgElementTypes |
getAssociatedElementTypes()
List of the element types associated with the diagram type. |
INgAttribute |
getAttribute(String attributeName)
Returns the attibute named 'attributeName' defined for the object type. |
INgAttributes |
getAttributes()
List of the attributes defined for the object type. |
INgDiagramTypes |
getChildren()
List of the child diagram types for the diagram type. |
INgDataSource |
getDataSource()
Data source related to the object type. |
INgDiagramTypes |
getDescendants()
List of the descendant diagram types for the diagram type. |
INgDiagram |
getDiagram(String diagramName)
Returns the diagram named 'diagramName' implemented by the diagram type. |
INgNames |
getDiagramNames()
List of the names of the diagrams implemented by the diagram type. |
INgDiagrams |
getDiagrams()
List of diagrams implemented by the diagram type. |
INgNames |
getFieldNames()
List of the query field names used to build up each object identifier implemented by the object type. |
String |
getName()
Name of the diagram type. |
INgParameters |
getParameters()
List of the query parameters. |
INgDiagramType |
getParent()
Parent diagram type of the diagram type. |
INgProject |
getProject()
Project of the object type. |
String |
getQueryString()
Query, name of the query, or name of the table that returns all objects of the object type. |
Object |
getUserDataValue(INgUserData userData)
Returns the value of the specified userdata defined for the object type. |
int |
hashCode()
the hashcode for this object |
boolean |
isElementTypeAssociated(INgElementType elementType)
Indicates if the 'ElementType' element type is associated with the diagram type. |
INgDiagram |
openDiagram(String diagramName,
boolean restore)
Opens the diagram named 'diagramName' implemented by the diagram type. |
void |
setDataSource(INgDataSource pVal)
Data source related to the object type. |
void |
setFieldNames(INgNames pVal)
List of the query field names used to build up each object identifier implemented by the object type. |
void |
setName(String pVal)
Name of the diagram type. |
void |
setParameters(INgParameters pVal)
List of the query parameters. |
void |
setParent(INgDiagramType pVal)
Parent diagram type of the diagram type. |
void |
setQueryString(String pVal)
Query, name of the query, or name of the table that returns all objects of the object type. |
void |
setUserDataValue(INgUserData userData,
Object userDataValue)
Modifies the value of the 'specified userdata defined for the object type. |
| 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 NgDiagramType(Object obj)
throws IOException
obj to NgDiagramType. *
NgDiagramType o = (NgDiagramType)obj; // will not work
NgDiagramType o = new NgDiagramType(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException - if there are interop problems
NgDiagramType theNgDiagramType = (NgDiagramType) obj;| Method Detail |
|---|
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public String getName()
throws IOException,
AutomationException
This name is defined when the diagram type is created:
- either by calling the INgProjectBuilder CreateDiagramType method in the code,
- or when the diagram type is created through ArcGIS Schematics Designer.
getName in interface INgDiagramTypegetName in interface INgObjectTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiagramType.getName(),
INgElementType.getName()
public void setName(String pVal)
throws IOException,
AutomationException
setName in interface INgDiagramTypesetName in interface INgObjectTypepVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgElementTypes getAssociatedElementTypes()
throws IOException,
AutomationException
getAssociatedElementTypes in interface INgDiagramTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiagramType.associateElementType(com.esri.arcgis.schematic.INgElementType)
public INgDiagrams getDiagrams()
throws IOException,
AutomationException
getDiagrams in interface INgDiagramTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgDiagram getDiagram(String diagramName)
throws IOException,
AutomationException
getDiagram in interface INgDiagramTypediagramName - The diagramName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgDiagram openDiagram(String diagramName,
boolean restore)
throws IOException,
AutomationException
Note that the diagramName parameter must be consistent with the diagram name identifier definition for its associated diagram type.
Several Schematic event procedures are automatically chained during a diagram opening. For more details on these events' chaining, please see the Remarks section available from the INgDiagram Open method help-page.
openDiagram in interface INgDiagramTypediagramName - The diagramName (in)restore - The restore (in, optional, pass true if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectEvents.beforeOpenDiagram(com.esri.arcgis.schematic.INgProjectEventsBeforeOpenDiagramEvent),
INgProject.openDiagram(com.esri.arcgis.schematic.INgDiagramType, String, boolean),
INgDiagram.open()
public INgDiagramType getParent()
throws IOException,
AutomationException
getParent in interface INgDiagramTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiagramType.getDescendants(),
INgDiagramType.getChildren(),
INgDiagramType.getAncestors()
public void setParent(INgDiagramType pVal)
throws IOException,
AutomationException
setParent in interface INgDiagramTypepVal - A reference to a com.esri.arcgis.schematic.INgDiagramType (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgDiagramTypes getAncestors()
throws IOException,
AutomationException
Note that the diagram type ancestors list is returned in ascending hierarchy order; that is from the parent to the most distant ancestor.
getAncestors in interface INgDiagramTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiagramType.getDescendants(),
INgDiagramType.getParent(),
INgDiagramType.getChildren()
public INgDiagramTypes getChildren()
throws IOException,
AutomationException
getChildren in interface INgDiagramTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiagramType.getDescendants(),
INgDiagramType.getParent(),
INgDiagramType.getAncestors()
public INgDiagramTypes getDescendants()
throws IOException,
AutomationException
getDescendants in interface INgDiagramTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiagramType.getParent(),
INgDiagramType.getChildren(),
INgDiagramType.getAncestors()
public void delete(boolean deleteDescendants)
throws IOException,
AutomationException
Note that the TRUE value is the default value for the deleteDescendants parameter.
delete in interface INgDiagramTypedelete in interface INgObjectTypedeleteDescendants - The deleteDescendants (in, optional, pass true if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgNames getDiagramNames()
throws IOException,
AutomationException
getDiagramNames in interface INgDiagramTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void associateElementType(INgElementType elementType)
throws IOException,
AutomationException
associateElementType in interface INgDiagramTypeelementType - A reference to a com.esri.arcgis.schematic.INgElementType (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiagramType.getAssociatedElementTypes()
public void dissociateElementType(INgElementType elementType)
throws IOException,
AutomationException
dissociateElementType in interface INgDiagramTypeelementType - A reference to a com.esri.arcgis.schematic.INgElementType (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiagramType.associateElementType(com.esri.arcgis.schematic.INgElementType)
public boolean isElementTypeAssociated(INgElementType elementType)
throws IOException,
AutomationException
isElementTypeAssociated in interface INgDiagramTypeelementType - A reference to a com.esri.arcgis.schematic.INgElementType (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgAttributes getAttributes()
throws IOException,
AutomationException
These attributes could have been defined:
- either by calling the INgObjectType CreateAttribute method in the code
- or when its associated element type or diagram type has been created through ArcGIS Schematics Designer.
The Attributes property can returnNULL when no attribute is defined for the associated element type or diagram type.
getAttributes in interface INgObjectTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgObjectType.getAttribute(String)
public INgAttribute getAttribute(String attributeName)
throws IOException,
AutomationException
getAttribute in interface INgObjectTypeattributeName - The attributeName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgAttribute createAttribute(String attributeName,
int attributeType)
throws IOException,
AutomationException
createAttribute in interface INgObjectTypeattributeName - The attributeName (in)attributeType - A com.esri.arcgis.schematic.esriNgAttributeType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgObjectType.getAttributes(),
INgObjectType.getAttribute(String)
public INgNames getFieldNames()
throws IOException,
AutomationException
When several field names are specified, the object type identifier is obtained by concatenating all the fields in their entry sequence order (the concatenated fields are hyphenated). If one or several field names do(es) not correspond to a field returned by the query, Schematics considers the corresponding name as a character string to be concatenated with the other fields to identify the objects of this type.
If there is only one obejct of the given type, the obejct type identifier can be set to NULL
This list can be defined:
- when defining the related element type or diagram type through ArcGIS Schematics Designer,
- or by code
getFieldNames in interface INgObjectTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setFieldNames(INgNames pVal)
throws IOException,
AutomationException
setFieldNames in interface INgObjectTypepVal - A reference to a com.esri.arcgis.schematic.INgNames (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgDataSource getDataSource()
throws IOException,
AutomationException
This property identifies the name of the data source used to connect the database where schematic objects are stored; that is, it specifies the database related to the the query that will return all objects of this type.
This data source can have been specified:
- when defining the related element type or diagram type through ArcGIS Schematics Designer,
- or by code.
The Datasource property can also be set to NULL if no query is associated to this object type.
getDataSource in interface INgObjectTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDataSource(INgDataSource pVal)
throws IOException,
AutomationException
setDataSource in interface INgObjectTypepVal - A reference to a com.esri.arcgis.schematic.INgDataSource (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getQueryString()
throws IOException,
AutomationException
The Datasource property identifies the datasource used to connect the database the query is related to. The query can be parameterized or not. In the case of a parameterized query, the Parameters property specifies the list of the parameters.
Note: In the case of an ADO connection without parameters, Schematics considers the attributes passed to the query as being text type attributes, by default. Any non textual attribute passed as a parameter must be followed by the ':' character sign.
getQueryString in interface INgObjectTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setQueryString(String pVal)
throws IOException,
AutomationException
setQueryString in interface INgObjectTypepVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgParameters getParameters()
throws IOException,
AutomationException
getParameters in interface INgObjectTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setParameters(INgParameters pVal)
throws IOException,
AutomationException
setParameters in interface INgObjectTypepVal - A reference to a com.esri.arcgis.schematic.INgParameters (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgProject getProject()
throws IOException,
AutomationException
getProject in interface INgObjectTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getUserDataValue(INgUserData userData)
throws IOException,
AutomationException
getUserDataValue in interface INgObjectTypeDatasuserData - A reference to a com.esri.arcgis.schematic.INgUserData (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgObjectTypeDatas.deleteUserData(com.esri.arcgis.schematic.INgUserData),
INgObjectTypeDatas.setUserDataValue(com.esri.arcgis.schematic.INgUserData, java.lang.Object)
public void setUserDataValue(INgUserData userData,
Object userDataValue)
throws IOException,
AutomationException
setUserDataValue in interface INgObjectTypeDatasuserData - A reference to a com.esri.arcgis.schematic.INgUserData (in)userDataValue - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgObjectTypeDatas.deleteUserData(com.esri.arcgis.schematic.INgUserData),
INgObjectTypeDatas.getUserDataValue(com.esri.arcgis.schematic.INgUserData)
public void deleteUserData(INgUserData userData)
throws IOException,
AutomationException
deleteUserData in interface INgObjectTypeDatasuserData - A reference to a com.esri.arcgis.schematic.INgUserData (in)
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 | ||||||||