org.apache.ivy.util.extendable
Interface ExtendableItem

All Known Subinterfaces:
Artifact, DependencyArtifactDescriptor, DependencyDescriptor, ExcludeRule, IncludeRule, ModuleDescriptor
All Known Implementing Classes:
AbstractArtifact, AbstractIncludeExcludeRule, ArtifactRevisionId, Configuration, DefaultArtifact, DefaultDependencyArtifactDescriptor, DefaultDependencyDescriptor, DefaultExcludeRule, DefaultExtendableItem, DefaultIncludeRule, DefaultModuleDescriptor, IvyPublish.PublishArtifact, MDArtifact, ModuleRevisionId, UnmodifiableExtendableItem

public interface ExtendableItem


Method Summary
 java.lang.String getAttribute(java.lang.String attName)
          Gets the value of an attribute Can be used to access the value of a standard attribute (like organisation, revision) or of an extra attribute.
 java.util.Map getAttributes()
          Returns a Map of all attributes of this extendable item, including standard and extra ones.
 java.lang.String getExtraAttribute(java.lang.String attName)
          Gets the value of an extra attribute Can be used only to access the value of an extra attribute, not a standard one (like organisation, revision)
 java.util.Map getExtraAttributes()
          Returns a Map of all extra attributes of this extendable item.
 java.lang.String getStandardAttribute(java.lang.String attName)
          Gets the value of a standard attribute Can be used only to access the value of a standard attribute (like organisation, revision), not an extra one
 java.util.Map getStandardAttributes()
          Returns a Map of all standard attributes of this extendable item.
 

Method Detail

getAttribute

java.lang.String getAttribute(java.lang.String attName)
Gets the value of an attribute Can be used to access the value of a standard attribute (like organisation, revision) or of an extra attribute.

Parameters:
attName - the name of the attribute to get
Returns:
the value of the attribute, null if the attribute doesn't exist

getStandardAttribute

java.lang.String getStandardAttribute(java.lang.String attName)
Gets the value of a standard attribute Can be used only to access the value of a standard attribute (like organisation, revision), not an extra one

Parameters:
attName - the name of the standard attribute to get
Returns:
the value of the attribute, null if the attribute doesn't exist

getExtraAttribute

java.lang.String getExtraAttribute(java.lang.String attName)
Gets the value of an extra attribute Can be used only to access the value of an extra attribute, not a standard one (like organisation, revision)

Parameters:
attName - the name of the extra attribute to get
Returns:
the value of the attribute, null if the attribute doesn't exist

getAttributes

java.util.Map getAttributes()
Returns a Map of all attributes of this extendable item, including standard and extra ones. The Map keys are attribute names as Strings, and values are corresponding attribute values (as String too)

Returns:

getStandardAttributes

java.util.Map getStandardAttributes()
Returns a Map of all standard attributes of this extendable item. The Map keys are attribute names as Strings, and values are corresponding attribute values (as String too)

Returns:

getExtraAttributes

java.util.Map getExtraAttributes()
Returns a Map of all extra attributes of this extendable item. The Map keys are attribute names as Strings, and values are corresponding attribute values (as String too)

Returns: