|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.carto.EditTemplate
public class EditTemplate
EditTemplate Class
Constructor Summary | |
---|---|
EditTemplate()
Constructs a EditTemplate using ArcGIS Engine. |
|
EditTemplate(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. EditTemplate theEditTemplate = (EditTemplate) obj; |
Method Summary | |
---|---|
void |
clearDefaultValues()
Removes all the default values currently set. |
boolean |
equals(Object o)
Compare this object with another |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
int |
getCreateCount()
Returns the number of times this template has created a feature. |
Object |
getDefaultValue(String field)
Gets the default value for the given field. |
String |
getDescription()
Gets the description of the template. |
ILayer |
getLayer()
Gets the layer of the template. |
String |
getName()
Gets the name of the template. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
String |
getTags()
The tags of the item. |
GUID |
getTool()
Gets the tool for the template. |
int |
hashCode()
the hashcode for this object |
void |
isDirty()
isDirty |
void |
load(IStream pstm)
load |
void |
readExternal(ObjectInput in)
|
void |
save(IStream pstm,
int fClearDirty)
save |
void |
setDefaultValue(String field,
Object value,
boolean initDefaultValues)
Sets the default value for the given field. |
void |
setDefaultValues(IFeature feature)
Sets the default values on the given feature. |
void |
setDescription(String description)
Gets the description of the template. |
void |
setLayerByRef(ILayer layer)
Gets the layer of the template. |
void |
setName(String name)
Gets the name of the template. |
void |
setTags(String tags)
The tags of the item. |
void |
setTool(GUID tool)
Gets the tool for the template. |
void |
writeExternal(ObjectOutput out)
|
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 EditTemplate() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic EditTemplate(Object obj) throws IOException
EditTemplate theEditTemplate = (EditTemplate) obj;
obj
to EditTemplate
.
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 String getName() throws IOException, AutomationException
Set or return the name of the template.
getName
in interface IEditTemplate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setName(String name) throws IOException, AutomationException
setName
in interface IEditTemplate
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getDescription() throws IOException, AutomationException
Set or return the description of the template.
getDescription
in interface IEditTemplate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDescription(String description) throws IOException, AutomationException
setDescription
in interface IEditTemplate
description
- The description (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ILayer getLayer() throws IOException, AutomationException
Set or return the layer associated with the template.
getLayer
in interface IEditTemplate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setLayerByRef(ILayer layer) throws IOException, AutomationException
setLayerByRef
in interface IEditTemplate
layer
- A reference to a com.esri.arcgis.carto.ILayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public GUID getTool() throws IOException, AutomationException
Set or return the default tool for the template. The value is the GUID of the tool.
getTool
in interface IEditTemplate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTool(GUID tool) throws IOException, AutomationException
setTool
in interface IEditTemplate
tool
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void clearDefaultValues() throws IOException, AutomationException
Sets the value of each field to the default value for that field type. The field value will be set to null if null values are allowed.
clearDefaultValues
in interface IEditTemplate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getDefaultValue(String field) throws IOException, AutomationException
getDefaultValue
in interface IEditTemplate
field
- The field (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDefaultValue(String field, Object value, boolean initDefaultValues) throws IOException, AutomationException
Sets the value of a given field to the supplied value.
An exception will be raised if the supplied value is not valid for the given field type e.g. If you try to set a text value for an integer field.
For subtype fields, the supplied value can either be the integer code or the text description. When initdefaultvalues is true the default values for that subtype are used to set the default values for other fields. Initdefaultvalues has no effect on non-subtype fields.
setDefaultValue
in interface IEditTemplate
field
- The field (in)value
- A Variant (in)initDefaultValues
- The initDefaultValues (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDefaultValues(IFeature feature) throws IOException, AutomationException
This method populates the fields of an IFeature with the default values of the current template. It is used to populate the fields of a feature that may have been created programmatically.
setDefaultValues
in interface IEditTemplate
feature
- A reference to a com.esri.arcgis.geodatabase.IFeature (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getCreateCount() throws IOException, AutomationException
getCreateCount
in interface IEditTemplate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getTags() throws IOException, AutomationException
Set or return the tags for the template. Multiple tags are comma delimited.
getTags
in interface IEditTemplate
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTags(String tags) throws IOException, AutomationException
setTags
in interface IEditTemplate
tags
- The tags (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getClassID(GUID[] pClassID) throws IOException, AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID
in interface IPersist
pClassID
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void isDirty() throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty
in interface IPersistStream
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void load(IStream pstm) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void save(IStream pstm, int fClearDirty) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)fClearDirty
- The fClearDirty (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getSizeMax(_ULARGE_INTEGER[] pcbSize) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax
in interface IPersistStream
pcbSize
- A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |