Class DefaultExtendsDescriptor
- java.lang.Object
-
- org.apache.ivy.core.module.descriptor.DefaultExtendsDescriptor
-
- All Implemented Interfaces:
ExtendsDescriptor
public class DefaultExtendsDescriptor extends java.lang.Object implements ExtendsDescriptor
-
-
Constructor Summary
Constructors Constructor Description DefaultExtendsDescriptor(ModuleDescriptor parent, java.lang.String location, java.lang.String[] types)DefaultExtendsDescriptor(ModuleDescriptor parent, java.lang.String location, java.lang.String[] types, boolean local)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanareConfigurationsInherited()booleanareDependenciesInherited()java.lang.String[]getExtendsTypes()Get the parts of the parent descriptor that are inherited.java.lang.StringgetLocation()If there is an explicit path to check for the parent descriptor, return it.ModuleDescriptorgetParentMd()ModuleRevisionIdgetParentRevisionId()get the module revision id of the declared parent descriptorModuleRevisionIdgetResolvedParentRevisionId()get the resolved revision id forExtendsDescriptor.getParentRevisionId(), seeModuleDescriptor.getResolvedModuleRevisionId()booleanisAllInherited()booleanisDescriptionInherited()booleanisInfoInherited()booleanisLocal()
-
-
-
Constructor Detail
-
DefaultExtendsDescriptor
public DefaultExtendsDescriptor(ModuleDescriptor parent, java.lang.String location, java.lang.String[] types)
-
DefaultExtendsDescriptor
public DefaultExtendsDescriptor(ModuleDescriptor parent, java.lang.String location, java.lang.String[] types, boolean local)
-
-
Method Detail
-
getParentRevisionId
public ModuleRevisionId getParentRevisionId()
Description copied from interface:ExtendsDescriptorget the module revision id of the declared parent descriptor- Specified by:
getParentRevisionIdin interfaceExtendsDescriptor- Returns:
- ModuleRevisionId
-
getResolvedParentRevisionId
public ModuleRevisionId getResolvedParentRevisionId()
Description copied from interface:ExtendsDescriptorget the resolved revision id forExtendsDescriptor.getParentRevisionId(), seeModuleDescriptor.getResolvedModuleRevisionId()- Specified by:
getResolvedParentRevisionIdin interfaceExtendsDescriptor- Returns:
- ModuleRevisionId
-
getParentMd
public ModuleDescriptor getParentMd()
- Specified by:
getParentMdin interfaceExtendsDescriptor
-
getLocation
public java.lang.String getLocation()
Description copied from interface:ExtendsDescriptorIf there is an explicit path to check for the parent descriptor, return it. Otherwise returns null.- Specified by:
getLocationin interfaceExtendsDescriptor- Returns:
- String
-
getExtendsTypes
public java.lang.String[] getExtendsTypes()
Description copied from interface:ExtendsDescriptorGet the parts of the parent descriptor that are inherited. Default supported types areinfo,description,configurations,dependencies, and/orall. Ivy extensions may add support for additional extends types.- Specified by:
getExtendsTypesin interfaceExtendsDescriptor- Returns:
- String[]
-
isAllInherited
public boolean isAllInherited()
- Specified by:
isAllInheritedin interfaceExtendsDescriptor- Returns:
- true if the
allextend type is specified, implying all other types
-
isInfoInherited
public boolean isInfoInherited()
- Specified by:
isInfoInheritedin interfaceExtendsDescriptor- Returns:
- true if parent info attributes are inherited (organisation, branch, revision, etc)
-
isDescriptionInherited
public boolean isDescriptionInherited()
- Specified by:
isDescriptionInheritedin interfaceExtendsDescriptor- Returns:
- true if parent description is inherited
-
areConfigurationsInherited
public boolean areConfigurationsInherited()
- Specified by:
areConfigurationsInheritedin interfaceExtendsDescriptor- Returns:
- true if parent configurations are inherited
-
areDependenciesInherited
public boolean areDependenciesInherited()
- Specified by:
areDependenciesInheritedin interfaceExtendsDescriptor- Returns:
- true if parent dependencies are inherited
-
isLocal
public boolean isLocal()
- Specified by:
isLocalin interfaceExtendsDescriptor
-
-