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 boolean
areConfigurationsInherited()
boolean
areDependenciesInherited()
java.lang.String[]
getExtendsTypes()
Get the parts of the parent descriptor that are inherited.java.lang.String
getLocation()
If there is an explicit path to check for the parent descriptor, return it.ModuleDescriptor
getParentMd()
ModuleRevisionId
getParentRevisionId()
get the module revision id of the declared parent descriptorModuleRevisionId
getResolvedParentRevisionId()
get the resolved revision id forExtendsDescriptor.getParentRevisionId()
, seeModuleDescriptor.getResolvedModuleRevisionId()
boolean
isAllInherited()
boolean
isDescriptionInherited()
boolean
isInfoInherited()
boolean
isLocal()
-
-
-
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:ExtendsDescriptor
get the module revision id of the declared parent descriptor- Specified by:
getParentRevisionId
in interfaceExtendsDescriptor
- Returns:
- ModuleRevisionId
-
getResolvedParentRevisionId
public ModuleRevisionId getResolvedParentRevisionId()
Description copied from interface:ExtendsDescriptor
get the resolved revision id forExtendsDescriptor.getParentRevisionId()
, seeModuleDescriptor.getResolvedModuleRevisionId()
- Specified by:
getResolvedParentRevisionId
in interfaceExtendsDescriptor
- Returns:
- ModuleRevisionId
-
getParentMd
public ModuleDescriptor getParentMd()
- Specified by:
getParentMd
in interfaceExtendsDescriptor
-
getLocation
public java.lang.String getLocation()
Description copied from interface:ExtendsDescriptor
If there is an explicit path to check for the parent descriptor, return it. Otherwise returns null.- Specified by:
getLocation
in interfaceExtendsDescriptor
- Returns:
- String
-
getExtendsTypes
public java.lang.String[] getExtendsTypes()
Description copied from interface:ExtendsDescriptor
Get 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:
getExtendsTypes
in interfaceExtendsDescriptor
- Returns:
- String[]
-
isAllInherited
public boolean isAllInherited()
- Specified by:
isAllInherited
in interfaceExtendsDescriptor
- Returns:
- true if the
all
extend type is specified, implying all other types
-
isInfoInherited
public boolean isInfoInherited()
- Specified by:
isInfoInherited
in interfaceExtendsDescriptor
- Returns:
- true if parent info attributes are inherited (organisation, branch, revision, etc)
-
isDescriptionInherited
public boolean isDescriptionInherited()
- Specified by:
isDescriptionInherited
in interfaceExtendsDescriptor
- Returns:
- true if parent description is inherited
-
areConfigurationsInherited
public boolean areConfigurationsInherited()
- Specified by:
areConfigurationsInherited
in interfaceExtendsDescriptor
- Returns:
- true if parent configurations are inherited
-
areDependenciesInherited
public boolean areDependenciesInherited()
- Specified by:
areDependenciesInherited
in interfaceExtendsDescriptor
- Returns:
- true if parent dependencies are inherited
-
isLocal
public boolean isLocal()
- Specified by:
isLocal
in interfaceExtendsDescriptor
-
-