org.apache.ace.client.repository.helper.bundle.impl
Class BundleHelperImpl
java.lang.Object
org.apache.ace.client.repository.helper.bundle.impl.BundleHelperImpl
- All Implemented Interfaces:
- org.apache.ace.client.repository.helper.ArtifactHelper, org.apache.ace.client.repository.helper.ArtifactRecognizer, org.apache.ace.client.repository.helper.bundle.BundleHelper
public class BundleHelperImpl
- extends Object
- implements org.apache.ace.client.repository.helper.ArtifactRecognizer, org.apache.ace.client.repository.helper.bundle.BundleHelper
BundleHelperImpl provides the Artifact Repository with Helper and Recognizer services.
Fields inherited from interface org.apache.ace.client.repository.helper.bundle.BundleHelper |
KEY_ASSOCIATION_VERSIONSTATEMENT, KEY_NAME, KEY_RESOURCE_PROCESSOR_PID, KEY_SYMBOLICNAME, KEY_VENDOR, KEY_VERSION, MIMETYPE |
Fields inherited from interface org.apache.ace.client.repository.helper.ArtifactHelper |
KEY_MIMETYPE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BundleHelperImpl
public BundleHelperImpl()
canUse
public boolean canUse(org.apache.ace.client.repository.object.ArtifactObject object)
- Specified by:
canUse
in interface org.apache.ace.client.repository.helper.ArtifactHelper
getAssociationFilter
public <TYPE extends org.apache.ace.client.repository.object.ArtifactObject> String getAssociationFilter(TYPE obj,
Map<String,String> properties)
- Specified by:
getAssociationFilter
in interface org.apache.ace.client.repository.helper.ArtifactHelper
getCardinality
public <TYPE extends org.apache.ace.client.repository.object.ArtifactObject> int getCardinality(TYPE obj,
Map<String,String> properties)
- Specified by:
getCardinality
in interface org.apache.ace.client.repository.helper.ArtifactHelper
getComparator
public Comparator<org.apache.ace.client.repository.object.ArtifactObject> getComparator()
- Specified by:
getComparator
in interface org.apache.ace.client.repository.helper.ArtifactHelper
checkAttributes
public Map<String,String> checkAttributes(Map<String,String> attributes)
- Specified by:
checkAttributes
in interface org.apache.ace.client.repository.helper.ArtifactHelper
getDefiningKeys
public String[] getDefiningKeys()
- Specified by:
getDefiningKeys
in interface org.apache.ace.client.repository.helper.ArtifactHelper
getMandatoryAttributes
public String[] getMandatoryAttributes()
- Specified by:
getMandatoryAttributes
in interface org.apache.ace.client.repository.helper.ArtifactHelper
getResourceProcessorPIDs
public String getResourceProcessorPIDs(org.apache.ace.client.repository.object.ArtifactObject object)
- Specified by:
getResourceProcessorPIDs
in interface org.apache.ace.client.repository.helper.bundle.BundleHelper
getSymbolicName
public String getSymbolicName(org.apache.ace.client.repository.object.ArtifactObject object)
- Specified by:
getSymbolicName
in interface org.apache.ace.client.repository.helper.bundle.BundleHelper
getName
public String getName(org.apache.ace.client.repository.object.ArtifactObject object)
- Specified by:
getName
in interface org.apache.ace.client.repository.helper.bundle.BundleHelper
getVersion
public String getVersion(org.apache.ace.client.repository.object.ArtifactObject object)
- Specified by:
getVersion
in interface org.apache.ace.client.repository.helper.bundle.BundleHelper
getVendor
public String getVendor(org.apache.ace.client.repository.object.ArtifactObject object)
- Specified by:
getVendor
in interface org.apache.ace.client.repository.helper.bundle.BundleHelper
isResourceProcessor
public boolean isResourceProcessor(org.apache.ace.client.repository.object.ArtifactObject object)
- Specified by:
isResourceProcessor
in interface org.apache.ace.client.repository.helper.bundle.BundleHelper
canHandle
public boolean canHandle(String mimetype)
- Specified by:
canHandle
in interface org.apache.ace.client.repository.helper.ArtifactRecognizer
extractMetaData
public Map<String,String> extractMetaData(URL artifact)
throws IllegalArgumentException
- Specified by:
extractMetaData
in interface org.apache.ace.client.repository.helper.ArtifactRecognizer
- Throws:
IllegalArgumentException
recognize
public String recognize(URL artifact)
- Specified by:
recognize
in interface org.apache.ace.client.repository.helper.ArtifactRecognizer
getPreprocessor
public org.apache.ace.client.repository.helper.ArtifactPreprocessor getPreprocessor()
- Specified by:
getPreprocessor
in interface org.apache.ace.client.repository.helper.ArtifactHelper
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.