org.jibx.binding.model
Class NestingAttributes

java.lang.Object
  extended by org.jibx.binding.model.AttributeBase
      extended by org.jibx.binding.model.NestingAttributes

public class NestingAttributes
extends AttributeBase

Model component for nesting attribute group in binding definition.

Author:
Dennis M. Sosnoski

Field Summary
static int ATTRIBUTE_STYLE
           
static int ELEMENT_STYLE
           
static StringArray s_allowedAttributes
          Enumeration of allowed attribute names
 
Constructor Summary
NestingAttributes()
           
 
Method Summary
 int getStyle()
          Get style value.
 String getStyleName()
          Get style string value.
 void prevalidate(ValidationContext vctx)
          Prevalidate attribute information.
 void setStyleName(String name)
          Set style name.
 
Methods inherited from class org.jibx.binding.model.AttributeBase
validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

s_allowedAttributes

public static final StringArray s_allowedAttributes
Enumeration of allowed attribute names


ATTRIBUTE_STYLE

public static final int ATTRIBUTE_STYLE
See Also:
Constant Field Values

ELEMENT_STYLE

public static final int ELEMENT_STYLE
See Also:
Constant Field Values
Constructor Detail

NestingAttributes

public NestingAttributes()
Method Detail

getStyleName

public String getStyleName()
Get style string value.

Returns:
style string value (null if undefined at this level)

getStyle

public int getStyle()
Get style value. This method is only usable after a call to AttributeBase.validate(org.jibx.binding.model.ValidationContext).

Returns:
style value

setStyleName

public void setStyleName(String name)
Set style name.

Parameters:
name - style name (null to undefine style at this level)

prevalidate

public void prevalidate(ValidationContext vctx)
Description copied from class: AttributeBase
Prevalidate attribute information. The prevalidation step is used to check attribute values in isolation, such as the settings for enumerated values and class file information. This empty base class implementation should be overridden by each subclass that requires prevalidation handling.

Overrides:
prevalidate in class AttributeBase
Parameters:
vctx - validation context


Copyright © 2005-2011 jibx.org. All Rights Reserved.