Class NameMatchDecoratorBase

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

public abstract class NameMatchDecoratorBase extends Object implements ClassDecorator
Base class for decorators which match on the generated class name.
  • Field Details

    • m_matchName

      private String m_matchName
      Name pattern to be matched (null if none).
  • Constructor Details

    • NameMatchDecoratorBase

      public NameMatchDecoratorBase()
  • Method Details

    • setMatchName

      public void setMatchName(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(String name)
      Match class name against pattern.
      Parameters:
      name -
      Returns:
      true if name matches pattern, false if not