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 booleanMatch class name against pattern.voidsetMatchName(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, waitMethods inherited from interface org.jibx.schema.codegen.extend.ClassDecorator
finish, start, valueAdded
-
Field Details
-
m_matchName
Name pattern to be matched (nullif none).
-
-
Constructor Details
-
NameMatchDecoratorBase
public NameMatchDecoratorBase()
-
-
Method Details
-
setMatchName
Set name pattern to be matched.- Parameters:
match- pattern to be matched (nullif none, meaning match every name)
-
matchName
Match class name against pattern.- Parameters:
name-- Returns:
trueif name matches pattern,falseif not
-