org.jboss.deployers.plugins.structure
Class ClassPathEntryImpl

java.lang.Object
  extended by org.jboss.deployers.plugins.structure.ClassPathEntryImpl
All Implemented Interfaces:
Externalizable, Serializable, ClassPathEntry

public class ClassPathEntryImpl
extends Object
implements ClassPathEntry, Externalizable

ClassPathEntry.

Version:
$Revision: 1.1 $
Author:
Adrian Brock
See Also:
Serialized Form

Constructor Summary
ClassPathEntryImpl()
          Create a new ClassPathEntryImpl.
ClassPathEntryImpl(String path)
          Create a new ClassPathEntryImpl.
ClassPathEntryImpl(String path, String suffixes)
          Create a new ClassPathEntryImpl.
 
Method Summary
 boolean equals(Object obj)
           
 String getPath()
          Get the path relative to the context virtual file
 String getSuffixes()
          Get the suffixes
 int hashCode()
           
 void readExternal(ObjectInput in)
           
 void setPath(String path)
          Set the path.
 void setSuffixes(String suffixes)
          Set the suffixes.
 String toString()
           
protected  void toString(StringBuilder builder)
          For subclasses to override toString()
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassPathEntryImpl

public ClassPathEntryImpl()
Create a new ClassPathEntryImpl.


ClassPathEntryImpl

public ClassPathEntryImpl(String path)
Create a new ClassPathEntryImpl.

Parameters:
path - the path
Throws:
IllegalArgumentException - for a null path

ClassPathEntryImpl

public ClassPathEntryImpl(String path,
                          String suffixes)
Create a new ClassPathEntryImpl.

Parameters:
path - the path
suffixes - the suffixes
Throws:
IllegalArgumentException - for a null path
Method Detail

getPath

public String getPath()
Description copied from interface: ClassPathEntry
Get the path relative to the context virtual file

Specified by:
getPath in interface ClassPathEntry
Returns:
the path.

setPath

public void setPath(String path)
Set the path.

Parameters:
path - the path.
Throws:
IllegalArgumentException - for a null path

getSuffixes

public String getSuffixes()
Description copied from interface: ClassPathEntry
Get the suffixes

Specified by:
getSuffixes in interface ClassPathEntry
Returns:
the suffixes.

setSuffixes

public void setSuffixes(String suffixes)
Set the suffixes.

Parameters:
suffixes - the suffixes.

toString

public String toString()
Overrides:
toString in class Object

toString

protected void toString(StringBuilder builder)
For subclasses to override toString()

Parameters:
builder - the builder

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Parameters:
out - the output
Throws:
IOException - for any error


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.