org.jboss.deployers.plugins.structure
Class StructureMetaDataImpl

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

public class StructureMetaDataImpl
extends Object
implements StructureMetaData, Externalizable

StructureMetaDataImpl.

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

Constructor Summary
StructureMetaDataImpl()
           
 
Method Summary
 void addContext(ContextInfo context)
          Add a context
 boolean equals(Object obj)
           
 ContextInfo getContext(String path)
          Get a context by path
 List<ContextInfo> getContexts()
          Get the contexts
 int hashCode()
           
 void readExternal(ObjectInput in)
           
 void removeContext(ContextInfo context)
          Remove a context
 void removeContext(String path)
          Remove a context
 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

StructureMetaDataImpl

public StructureMetaDataImpl()
Method Detail

addContext

public void addContext(ContextInfo context)
Description copied from interface: StructureMetaData
Add a context

Specified by:
addContext in interface StructureMetaData
Parameters:
context - the context to add

getContext

public ContextInfo getContext(String path)
Description copied from interface: StructureMetaData
Get a context by path

Specified by:
getContext in interface StructureMetaData
Parameters:
path - the path of the context
Returns:
the context or null if there is no such context

removeContext

public void removeContext(ContextInfo context)
Description copied from interface: StructureMetaData
Remove a context

Specified by:
removeContext in interface StructureMetaData
Parameters:
context - the context to remove

removeContext

public void removeContext(String path)
Description copied from interface: StructureMetaData
Remove a context

Specified by:
removeContext in interface StructureMetaData
Parameters:
path - the patch of the context to remove

getContexts

public List<ContextInfo> getContexts()
Description copied from interface: StructureMetaData
Get the contexts

Specified by:
getContexts in interface StructureMetaData
Returns:
an immutable set of contexts

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.