public class LibraryFileGroup extends FileGroup
| Modifier and Type | Field and Description | 
|---|---|
| static int | ARCHIVES_AS_FILESConstant that means that selected libraries should be deployed as
  the jar files themselves. | 
| static int | ARCHIVES_AS_VIRTUAL_DIRECTORIESConstant that means that the selected libraries should collectively
  serve as a virtual path from which files will be extracted and
  repackaged during deployment. | 
| static java.lang.String | DEFAULT_INTERNAL_NAME | 
| static java.lang.String | SELECTED_LIBRARIES | 
| static java.lang.String | UNSELECTED_LIBRARIES | 
_hash, LIBRARY_FILE_GROUP, MODULE_FILE_GROUP, PACKAGING_FILE_GROUP, PROJECT_FILE_GROUP| Constructor and Description | 
|---|
| LibraryFileGroup() | 
| LibraryFileGroup(HashStructure hash) | 
| LibraryFileGroup(java.lang.String displayName) | 
| LibraryFileGroup(java.lang.String displayName,
                java.lang.String internalName) | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.Object | copyTo(java.lang.Object target)Copies the internal state of  thisobject to the
  specifiedcopy. | 
| boolean | equals(java.lang.Object o) | 
| static URLPath | getContribPath(LibraryFileGroup group,
              java.util.List<JLibrary> deployedLibs)Returns a URLPath given a LibraryFileGroup and a list of dependent libraries. | 
| SelectionRules | getFilters() | 
| java.lang.String[] | getSelectedLibraries()Returns the the list of libraries that are explicitly selected as
  contributors for this file group. | 
| int | getSelectionMode()Returns one of:
  
     ARCHIVES_AS_FILESARCHIVES_AS_VIRTUAL_DIRECTORIES | 
| URLPath | getSourceRoots(Profile profile)Deprecated.  | 
| java.lang.String[] | getUnselectedLibraries()Returns the the list of libraries that are explicitly unselected from
  being contributors for this file group. | 
| static LibraryFileGroup | newDefaultGroup(java.lang.String displayName) | 
| void | selectLibrary(java.lang.String id)Checks to see if a id was previously unselected, if so removes
  it from the unselected list, else adds the specified library 
  to the list of unique selected libraries. | 
| void | setFilters(SelectionRules filters) | 
| void | setSelectedLibraries(java.lang.String[] selectedLibraries) | 
| void | setSelectionMode(int selectionMode) | 
| void | setUnselectedLibraries(java.lang.String[] unselectedLibraries) | 
| int | type() | 
| void | unselectLibrary(java.lang.String id)Checks to see if a id was previously selected, if so removes
  it from the selected list, else adds the specified library 
  to the list of unique unselected libraries. | 
copyToImpl, equalsImpl, getDisplayName, getHashStructure, getInternalName, getTargetWithinJar, hasInternalName, setDisplayName, setInternalName, setTargetWithinJar, toPathWithinJarcompare, compareTo, linkContainingDirtyable, linkEmbeddedDirtyable, linkEmbeddedDirtyable, linkEmbeddedDirtyables, markDirty, setOwner, unlinkContainingDirtyable, unlinkEmbeddedDirtyable, unlinkEmbeddedDirtyable, unlinkEmbeddedDirtyablesdirtyLabel, dirtyLabel, dirtyLabel, isDirtypublic static final java.lang.String DEFAULT_INTERNAL_NAME
public static final java.lang.String SELECTED_LIBRARIES
public static final java.lang.String UNSELECTED_LIBRARIES
public static final int ARCHIVES_AS_FILES
public static final int ARCHIVES_AS_VIRTUAL_DIRECTORIES
public LibraryFileGroup()
public LibraryFileGroup(HashStructure hash)
public LibraryFileGroup(java.lang.String displayName)
public LibraryFileGroup(java.lang.String displayName,
                        java.lang.String internalName)
public static LibraryFileGroup newDefaultGroup(java.lang.String displayName)
public final int type()
public java.lang.Object copyTo(java.lang.Object target)
Copyablethis object to the
  specified copy.  If copy is
  null, then this method should create a new instance
  of this class and proceed to copy the internal state
  to the newly created object.  Generally, only the persistent
  state of the object should be copied, but whether or not it is
  appropriate to copy transient properties is at the discretion
  of the individual implementor.
  Regardless of whether the copy occurs to an existing object or to
  a newly created object, the return value is object to which
  this object's state was copied.
  There is a standard implementation pattern for the
  copyTo method that helps avoid problems that arise
  when a Copyable object is subclassed.  The pattern
  is:
    public Object copyTo( Object target )
    {
      final <this_class> copy =
        target != null ? (<this_class>) target : new <this_class>();
      copyToImpl( copy );
      return copy;
    }
    protected final void copyToImpl( <this_class> copy )
    {
      super.copyToImpl( copy );  //  if necessary
      //  put code here for copying the properties of <this_class>
    }
  copyToImpl method is
  the same type of this class.  The responsibility of
  copyToImpl is to copy the state of this
  class through direct access of the fields.  The
  copyToImpl method should not use getters and setters
  since these may be overridden, causing the state of
  this class to be incompletely copied.copyTo in interface CopyablecopyTo in class FileGrouptarget - The target object to which the state of
  this object should be copied.  If target
  is null, then the copyTo method will
  return a new instance of this class.this
  object was copied.  If the target was
  non-null, then the return value is the same as the
  target object that was passed in; otherwise, the
  return value is a new instance of this class.public java.lang.String[] getSelectedLibraries()
public void setSelectedLibraries(java.lang.String[] selectedLibraries)
public java.lang.String[] getUnselectedLibraries()
public void setUnselectedLibraries(java.lang.String[] unselectedLibraries)
public void selectLibrary(java.lang.String id)
public void unselectLibrary(java.lang.String id)
public int getSelectionMode()
public void setSelectionMode(int selectionMode)
int must be one of:
  public SelectionRules getFilters()
public void setFilters(SelectionRules filters)
@Deprecated public URLPath getSourceRoots(Profile profile)
getSourceRoots in class FileGroupprofile - the profile for which you want to get the source/target roots. It is used in order to derive the DataContainer
        as well as other relevant information.public static URLPath getContribPath(LibraryFileGroup group, java.util.List<JLibrary> deployedLibs)
group - The LibraryFileGroup. It is used to properly process the libraries given it's 
              selectionMode.deployedLibs - The Dependent Libraries that should be used to construct a URLPath.