|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Provides access to members for managing a PropertySet.
The IPropertySet interface contains methods to set and retrieve the collection of named value pairs in the PropertySet.
| Method Summary | |
void |
getAllProperties(java.lang.Object[] names,
java.lang.Object[] values)
The name and value of all the properties in the property set. |
int |
getCount()
The number of properties contained in the property set. |
void |
getProperties(java.lang.Object names,
java.lang.Object[] values)
The values of the specified properties. |
java.lang.Object |
getProperty(java.lang.String name)
The value of the specified property. |
boolean |
isEqual(IPropertySet propertySet)
True if the property set is the same as the input property set. |
void |
removeProperty(java.lang.String name)
Removes a property from the set. |
void |
setProperties(java.lang.Object names,
java.lang.Object values)
The values of the specified properties. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
The value of the specified property. |
| Method Detail |
public int getCount()
throws java.io.IOException,
AutomationException
The Count value will always be one when used with the XmlPropertySet CoClass. To determine the number of occurances of a metadata element use IXmlPropertySet::CountX
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.com.esri.arcgis.geodatabase.IXmlPropertySet#,
com.esri.arcgis.geodatabase.IXmlPropertySet2#
public java.lang.Object getProperty(java.lang.String name)
throws java.io.IOException,
AutomationException
The Name parameter uses XSL Patterns to specify metadata elements. Additional information on XSL can be found in the the IXmlPropertySet documentation.
name - The name (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.com.esri.arcgis.system.IPropertySet#getProperties(java.lang.Object, [Ljava.lang.Object;),
com.esri.arcgis.system.IPropertySet#getAllProperties([Ljava.lang.Object;, [Ljava.lang.Object;)
public void getProperties(java.lang.Object names,
java.lang.Object[] values)
throws java.io.IOException,
AutomationException
The GetProperties method returns values from a PropertySet CoClass.
The Name parameter for the GetProperties method uses XSL Patterns. More information is available through the IXmlPropertySet documentation.
names - A Variant (in)values - A Variant (out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.getProperty(java.lang.String),
com.esri.arcgis.system.IPropertySet#getAllProperties([Ljava.lang.Object;, [Ljava.lang.Object;)
public void getAllProperties(java.lang.Object[] names,
java.lang.Object[] values)
throws java.io.IOException,
AutomationException
The GetAllProperties retrieves all names and values in the property set.
The Name parameter for the GetAllProperties method uses XSL Patterns. More information is available through the IXmlPropertySet documentation.
names - A Variant (out: use single element array)values - A Variant (out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.getProperty(java.lang.String),
com.esri.arcgis.system.IPropertySet#getProperties(java.lang.Object, [Ljava.lang.Object;)
public void setProperty(java.lang.String name,
java.lang.Object value)
throws java.io.IOException,
AutomationException
name - The name (in)value - A Variant (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setProperties(java.lang.Object names,
java.lang.Object values)
throws java.io.IOException,
AutomationException
names - A Variant (in)values - A Variant (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isEqual(IPropertySet propertySet)
throws java.io.IOException,
AutomationException
propertySet - A reference to a com.esri.arcgis.system.IPropertySet (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeProperty(java.lang.String name)
throws java.io.IOException,
AutomationException
The Name parameter uses XSL Patterns to specify metadata elements. Additional information on XSL can be found in the the IXmlPropertySet documentation.
If the Name parameter specifies an node that contains several elements, all sub-nodes will also be removed. In the image below setting the Name parameter equal to "metainfo/metc/cntinfo" will remove all the ESRI contact information between the highlighted elements.

name - The name (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IXmlPropertySet.deletePropertyByAttribute(java.lang.String, java.lang.String, boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||