Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.io.xsd.constraint
Class XmlAttributeFlag

java.lang.Object
  extended by eu.esdihumboldt.hale.common.schema.model.constraint.AbstractFlagConstraint
      extended by eu.esdihumboldt.hale.io.xsd.constraint.XmlAttributeFlag
All Implemented Interfaces:
PropertyConstraint

@Immutable
public final class XmlAttributeFlag
extends AbstractFlagConstraint
implements PropertyConstraint

Flags if a property is represented by a XML attribute, disabled by default

Author:
Simon Templer

Field Summary
static XmlAttributeFlag DISABLED
          Disabled XML attribute flag
static XmlAttributeFlag ENABLED
          Enabled XML attribute flag
 
Constructor Summary
XmlAttributeFlag()
          Creates a default XML attribute flag, which is disabled.
 
Method Summary
static XmlAttributeFlag get(boolean isAttribute)
          Get the XML attribute flag
 
Methods inherited from class eu.esdihumboldt.hale.common.schema.model.constraint.AbstractFlagConstraint
isEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENABLED

public static final XmlAttributeFlag ENABLED
Enabled XML attribute flag


DISABLED

public static final XmlAttributeFlag DISABLED
Disabled XML attribute flag

Constructor Detail

XmlAttributeFlag

public XmlAttributeFlag()
Creates a default XML attribute flag, which is disabled. If possible, instead of creating an instance, use get(boolean), ENABLED or DISABLED.

See Also:
Constraint
Method Detail

get

public static XmlAttributeFlag get(boolean isAttribute)
Get the XML attribute flag

Parameters:
isAttribute - if the flag shall be enabled
Returns:
the flag

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d