org.jibx.schema.codegen.extend
Class NameMatchDecoratorBase

java.lang.Object
  extended by org.jibx.schema.codegen.extend.NameMatchDecoratorBase
All Implemented Interfaces:
ClassDecorator
Direct Known Subclasses:
ExtensionDecorator

public abstract class NameMatchDecoratorBase
extends java.lang.Object
implements ClassDecorator

Base class for decorators which match on the generated class name.


Field Summary
private  java.lang.String m_matchName
          Name pattern to be matched (null if none).
 
Constructor Summary
NameMatchDecoratorBase()
           
 
Method Summary
protected  boolean matchName(java.lang.String name)
          Match class name against pattern.
 void setMatchName(java.lang.String match)
          Set name pattern to be matched.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jibx.schema.codegen.extend.ClassDecorator
finish, start, valueAdded
 

Field Detail

m_matchName

private java.lang.String m_matchName
Name pattern to be matched (null if none).

Constructor Detail

NameMatchDecoratorBase

public NameMatchDecoratorBase()
Method Detail

setMatchName

public void setMatchName(java.lang.String match)
Set name pattern to be matched.

Parameters:
match - pattern to be matched (null if none, meaning match every name)

matchName

protected boolean matchName(java.lang.String name)
Match class name against pattern.

Parameters:
name -
Returns:
true if name matches pattern, false if not


Project Web Site