Package org.jibx.schema.codegen.extend
Class NameMatchDecoratorBase
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description private java.lang.String
m_matchName
Name pattern to be matched (null
if none).
-
Constructor Summary
Constructors Constructor Description NameMatchDecoratorBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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
-
-