Class DefaultExtendsDescriptor
java.lang.Object
org.apache.ivy.core.module.descriptor.DefaultExtendsDescriptor
- All Implemented Interfaces:
ExtendsDescriptor
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultExtendsDescriptor
(ModuleDescriptor parent, String location, String[] types) DefaultExtendsDescriptor
(ModuleDescriptor parent, String location, String[] types, boolean local) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
String[]
Get the parts of the parent descriptor that are inherited.If there is an explicit path to check for the parent descriptor, return it.get the module revision id of the declared parent descriptorget the resolved revision id forExtendsDescriptor.getParentRevisionId()
, seeModuleDescriptor.getResolvedModuleRevisionId()
boolean
boolean
boolean
boolean
isLocal()
-
Constructor Details
-
DefaultExtendsDescriptor
-
DefaultExtendsDescriptor
public DefaultExtendsDescriptor(ModuleDescriptor parent, String location, String[] types, boolean local)
-
-
Method Details
-
getParentRevisionId
Description copied from interface:ExtendsDescriptor
get the module revision id of the declared parent descriptor- Specified by:
getParentRevisionId
in interfaceExtendsDescriptor
- Returns:
- ModuleRevisionId
-
getResolvedParentRevisionId
Description copied from interface:ExtendsDescriptor
get the resolved revision id forExtendsDescriptor.getParentRevisionId()
, seeModuleDescriptor.getResolvedModuleRevisionId()
- Specified by:
getResolvedParentRevisionId
in interfaceExtendsDescriptor
- Returns:
- ModuleRevisionId
-
getParentMd
- Specified by:
getParentMd
in interfaceExtendsDescriptor
-
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
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
-