Class ProjectJarProperties.Jar
- java.lang.Object
-
- com.ensoftcorp.open.java.commons.project.ProjectJarProperties.Jar
-
- Enclosing class:
- ProjectJarProperties
public static class ProjectJarProperties.Jar extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()booleanequals(java.lang.Object obj)java.io.FilegetFile()Returns a file of the location of the jarjava.util.Map<java.lang.String,java.lang.String>getJarAttributes()ProjectJarProperties.JarTypegetJarType()java.lang.StringgetManifestMainClass()Returns the qualified type of the Jar's Manifest declared Main-Class attribute or null if not specifiedjava.lang.StringgetName()Returns the file name of the jarjava.lang.StringgetPortablePath()Returns an OS portable string representing the Jar path Path is relative if Jar is contained in project, else path is absoluteorg.eclipse.core.resources.IProjectgetProject()inthashCode()voidsetJarAttribute(java.lang.String name, java.lang.String value)voidsetJarAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)voidsetJarType(ProjectJarProperties.JarType type)java.lang.StringtoString()
-
-
-
Method Detail
-
getProject
public org.eclipse.core.resources.IProject getProject()
-
getJarAttributes
public java.util.Map<java.lang.String,java.lang.String> getJarAttributes()
-
setJarAttribute
public void setJarAttribute(java.lang.String name, java.lang.String value) throws java.lang.Exception- Throws:
java.lang.Exception
-
setJarAttributes
public void setJarAttributes(java.util.Map<java.lang.String,java.lang.String> attributes) throws java.lang.Exception- Throws:
java.lang.Exception
-
delete
public void delete() throws java.lang.Exception- Throws:
java.lang.Exception
-
getJarType
public ProjectJarProperties.JarType getJarType()
-
setJarType
public void setJarType(ProjectJarProperties.JarType type) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getName
public java.lang.String getName()
Returns the file name of the jar- Returns:
-
getFile
public java.io.File getFile()
Returns a file of the location of the jar- Returns:
-
getManifestMainClass
public java.lang.String getManifestMainClass()
Returns the qualified type of the Jar's Manifest declared Main-Class attribute or null if not specified- Returns:
-
getPortablePath
public java.lang.String getPortablePath()
Returns an OS portable string representing the Jar path Path is relative if Jar is contained in project, else path is absolute- Returns:
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-