|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IShields
Provides access to a container for refining directions with shields.
The IShields interface provides members that are used for refining Directions, by allow the specification of Shield information, such as the type and number of a highway. Unlike the network source level directions information, such as IStreetNameFields , only one set of Shields information can be specified for a network dataset. Shield information is not required for Directions generation.
If shield data exists for a network source, it can be in one of two forms:
Method Summary | |
---|---|
void |
addShield(String type,
String description)
Adds a shield of the given type. |
void |
deleteShield(int index)
Deletes a shield by index. |
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. |
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. |
Method Detail |
---|
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.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTypeFieldName(String name) throws IOException, AutomationException
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setNumberFieldName(String name) throws IOException, AutomationException
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setCombinedFieldName(String name) throws IOException, AutomationException
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setUseCombinedField(boolean useCombined) throws IOException, AutomationException
useCombined
- The useCombined (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getShieldCount() throws IOException, AutomationException
Returns a count of the number of shields that have been specified.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getShieldType(int index) throws IOException, AutomationException
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getShieldDescription(int index) throws IOException, AutomationException
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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 |
type
- The type (in)description
- The description (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void deleteShield(int index) throws IOException, AutomationException
DeleteShield removes the shield of the specified index from the collection.
index
- 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 |