org.jboss.kernel.plugins.deployment.props.vertex
Class KeywordLevelVertexFactory

java.lang.Object
  extended by org.jboss.kernel.plugins.deployment.props.vertex.AbstractLevelVertexFactory
      extended by org.jboss.kernel.plugins.deployment.props.vertex.KeywordLevelVertexFactory
All Implemented Interfaces:
LevelVertexFactory
Direct Known Subclasses:
ClassVertexFactory

public abstract class KeywordLevelVertexFactory
extends AbstractLevelVertexFactory

Keyword matching level vertex factory.

Author:
Ales Justin

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.kernel.plugins.deployment.props.vertex.LevelVertexFactory
LevelVertexFactory.LevelVertexFactoryComparator
 
Field Summary
 
Fields inherited from interface org.jboss.kernel.plugins.deployment.props.vertex.LevelVertexFactory
COMPARATOR
 
Constructor Summary
protected KeywordLevelVertexFactory(String keyword)
           
 
Method Summary
 TreeVertex createVertex(String name)
          Create new vertex.
protected abstract  TreeVertex createVertex(String name, String keyword)
          Create vertex from name and keyword.
 
Methods inherited from class org.jboss.kernel.plugins.deployment.props.vertex.AbstractLevelVertexFactory
getOrder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeywordLevelVertexFactory

protected KeywordLevelVertexFactory(String keyword)
Method Detail

createVertex

public TreeVertex createVertex(String name)
Description copied from interface: LevelVertexFactory
Create new vertex. If name doesn't match factory's creation return null.

Parameters:
name - the name
Returns:
new vertex instance or null if cannot create vertex from name

createVertex

protected abstract TreeVertex createVertex(String name,
                                           String keyword)
Create vertex from name and keyword.

Parameters:
name - the name
keyword - the keyword
Returns:
new vertex instance


Copyright ? 2007 JBoss Inc.. All Rights Reserved.