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 TypeMethodDescriptionbooleanbooleanString[]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()booleanbooleanbooleanbooleanisLocal()
-
Constructor Details
-
DefaultExtendsDescriptor
-
DefaultExtendsDescriptor
public DefaultExtendsDescriptor(ModuleDescriptor parent, String location, String[] types, boolean local)
-
-
Method Details
-
getParentRevisionId
Description copied from interface:ExtendsDescriptorget the module revision id of the declared parent descriptor- Specified by:
getParentRevisionIdin interfaceExtendsDescriptor- Returns:
- ModuleRevisionId
-
getResolvedParentRevisionId
Description copied from interface:ExtendsDescriptorget the resolved revision id forExtendsDescriptor.getParentRevisionId(), seeModuleDescriptor.getResolvedModuleRevisionId()- Specified by:
getResolvedParentRevisionIdin interfaceExtendsDescriptor- Returns:
- ModuleRevisionId
-
getParentMd
- Specified by:
getParentMdin interfaceExtendsDescriptor
-
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
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
-