|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.carto.AnnotationExpressionParser
public class AnnotationExpressionParser
The expression parser handed out by the AnnotationExpressionEngine.
Constructor Summary | |
---|---|
AnnotationExpressionParser(Object obj)
Construct a AnnotationExpressionParser using a reference to such an object returned from ArcGIS Engine or Server. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
String |
findLabel(IFeature feature)
The label for a given feature based on the annotation expression. |
String |
findLabel(IFeature feature,
ILayerFields pLayerFields)
The label for a given feature based on the annotation expression. |
String |
getAttribute(int index)
The attribute fields in the expression. |
int |
getAttributeCount()
The number of attribute fields in the expression. |
String |
getExpression()
The annotation expression. |
int |
hashCode()
the hashcode for this object |
boolean |
isUseCodedValue()
Indicates if coded values are used. |
void |
lastError(int[] number,
int[] line,
String[] description)
Reports error that occurred in FindLabel method. |
void |
setUseCodedValue(boolean flag)
Indicates if coded values are used. |
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 AnnotationExpressionParser(Object obj) throws IOException
obj
to AnnotationExpressionParser
. *
AnnotationExpressionParser o = (AnnotationExpressionParser)obj; // will not work
AnnotationExpressionParser o = new AnnotationExpressionParser(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException
- if there are interop problems
AnnotationExpressionParser theAnnotationExpressionParser = (AnnotationExpressionParser) obj;
Method Detail |
---|
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getExpression() throws IOException, AutomationException
getExpression
in interface IAnnotationExpressionParser
getExpression
in interface IAnnotationExpressionParser2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getAttributeCount() throws IOException, AutomationException
getAttributeCount
in interface IAnnotationExpressionParser
getAttributeCount
in interface IAnnotationExpressionParser2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getAttribute(int index) throws IOException, AutomationException
getAttribute
in interface IAnnotationExpressionParser
getAttribute
in interface IAnnotationExpressionParser2
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String findLabel(IFeature feature) throws IOException, AutomationException
findLabel
in interface IAnnotationExpressionParser
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 void lastError(int[] number, int[] line, String[] description) throws IOException, AutomationException
lastError
in interface IAnnotationExpressionParser
lastError
in interface IAnnotationExpressionParser2
number
- The number (in/out: use single element array)line
- The line (in/out: use single element array)description
- The description (in/out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String findLabel(IFeature feature, ILayerFields pLayerFields) throws IOException, AutomationException
findLabel
in interface IAnnotationExpressionParser2
feature
- A reference to a com.esri.arcgis.geodatabase.IFeature (in)pLayerFields
- A reference to a com.esri.arcgis.carto.ILayerFields (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isUseCodedValue() throws IOException, AutomationException
isUseCodedValue
in interface ICodedValueAttributes
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setUseCodedValue(boolean flag) throws IOException, AutomationException
setUseCodedValue
in interface ICodedValueAttributes
flag
- The flag (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 |