|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.geodatabase.Shields
public class Shields
A container for describing how driving directions are refined using shields.
Sheilds provides access to members that refine the driving directions generated on a network result analysis, by allowing the number and type of a highway to be specified. In some cases, this can also include a general direction of travel, such as North (N) or South (S).
| Constructor Summary | |
|---|---|
Shields()
Constructs a Shields using ArcGIS Engine. |
|
Shields(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. Shields theShields = (Shields) obj; |
|
| Method Summary | |
|---|---|
void |
addShield(String type,
String description)
Adds a shield of the given type. |
void |
deleteShield(int index)
Deletes a shield by index. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
String |
getCombinedFieldName()
The field name whose values contain the whole address description. |
String |
getNumberFieldName()
The field name whose values contain the house number. |
int |
getShieldCount()
The number of shields. |
String |
getShieldDescription(int index)
The shield description by index. |
String |
getShieldType(int index)
The shield type by index. |
String |
getTypeFieldName()
The field name whose values contain the street type. |
int |
hashCode()
the hashcode for this object |
boolean |
isUseCombinedField()
Indicates if the combined field should be used for directions. |
void |
setCombinedFieldName(String name)
The field name whose values contain the whole address description. |
void |
setNumberFieldName(String name)
The field name whose values contain the house number. |
void |
setTypeFieldName(String name)
The field name whose values contain the street type. |
void |
setUseCombinedField(boolean useCombined)
Indicates if the combined field should be used for directions. |
| 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 Shields()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public Shields(Object obj)
throws IOException
Shields theShields = (Shields) obj;
obj to Shields.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public String getTypeFieldName()
throws IOException,
AutomationException
If Shields information is specified in two different fields, the field containing the Type information can be accessed and specified with the TypeFieldName property.
getTypeFieldName in interface IShieldsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTypeFieldName(String name)
throws IOException,
AutomationException
setTypeFieldName in interface IShieldsname - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getNumberFieldName()
throws IOException,
AutomationException
If Shields information is specified in two different fields, the field containing the Number information can be accessed and specified with the NumberFieldName property.
getNumberFieldName in interface IShieldsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setNumberFieldName(String name)
throws IOException,
AutomationException
setNumberFieldName in interface IShieldsname - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getCombinedFieldName()
throws IOException,
AutomationException
If the Shields information is specified within a single field, the field name can be specified and accessed through hte CombinedFieldName property.
getCombinedFieldName in interface IShieldsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCombinedFieldName(String name)
throws IOException,
AutomationException
setCombinedFieldName in interface IShieldsname - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isUseCombinedField()
throws IOException,
AutomationException
If the Shields information is specified in a single field, the UseCombinedField should be set to True. If the Shields information is contained within two different fields, the UseCombinedField should be set to False.
isUseCombinedField in interface IShieldsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setUseCombinedField(boolean useCombined)
throws IOException,
AutomationException
setUseCombinedField in interface IShieldsuseCombined - The useCombined (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getShieldCount()
throws IOException,
AutomationException
Returns a count of the number of shields that have been specified.
getShieldCount in interface IShieldsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getShieldType(int index)
throws IOException,
AutomationException
getShieldType in interface IShieldsindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getShieldDescription(int index)
throws IOException,
AutomationException
getShieldDescription in interface IShieldsindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addShield(String type,
String description)
throws IOException,
AutomationException
The AddShield method should be used to add ShieldType, ShieldDescription pairs. When Directions are generated, the ShieldType value will be replaced by it's corresponding ShieldDescription. Examples of ShieldType and ShieldDescription pairs include:
| ShieldType | ShieldDescription |
|---|---|
| I | Interstate |
| S | State |
| T | Trans Canada |
addShield in interface IShieldstype - The type (in)description - The description (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void deleteShield(int index)
throws IOException,
AutomationException
DeleteShield removes the shield of the specified index from the collection.
deleteShield in interface IShieldsindex - The index (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 | ||||||||