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
Base class for decorators which match on the generated class name.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Match class name against pattern.void
setMatchName
(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 Details
-
m_matchName
Name pattern to be matched (null
if none).
-
-
Constructor Details
-
NameMatchDecoratorBase
public NameMatchDecoratorBase()
-
-
Method Details
-
setMatchName
Set name pattern to be matched.- Parameters:
match
- pattern to be matched (null
if none, meaning match every name)
-
matchName
Match class name against pattern.- Parameters:
name
-- Returns:
true
if name matches pattern,false
if not
-