org.jbind.xml.schema.cmp
Class AttrRefOrDecl

java.lang.Object
  extended byorg.jbind.xml.schema.cmp.Component
      extended byorg.jbind.xml.schema.cmp.AttrDesc
          extended byorg.jbind.xml.schema.cmp.AttrRefOrDecl
All Implemented Interfaces:
IAttrDesc, IAttrRefOrDecl, IComponent, IDataDesc, IDataRefOrDecl, IDefaultTextContentProvider, IHasBindingAttributes, IHasLocation, ISourceInfo
Direct Known Subclasses:
AttrDecl, AttrRef

public abstract class AttrRefOrDecl
extends AttrDesc
implements IAttrRefOrDecl


Field Summary
protected  ISimpleData myDefault
           
protected  ISimpleData myFixed
           
 
Constructor Summary
AttrRefOrDecl(ISourceInfo aSourceInfo, java.lang.String aNamespace, java.lang.String aName, AttributeOccurence anOccurence)
           
 
Method Summary
 ISimpleData getDefault()
          Gets the default value.
 ISimpleData getFixed()
          Gets the fixed value.
 AttributeOccurence getOccurence()
           
 void validate(IConstraintViolations aViolations)
          Validates the component.
 
Methods inherited from class org.jbind.xml.schema.cmp.AttrDesc
checkValueConstraints, createData, createEmptyData, createUncheckedData, getDefaultTextContent, getSymbolspace, isActive, isActive
 
Methods inherited from class org.jbind.xml.schema.cmp.Component
addSubComponent, getAnnotation, getBindingAttribute, getBindings, getDefaultedLocalBindingAttribute, getDefaultedLocalStringBindingAttribute, getGlobalRef, getLocalBindingAttribute, getLocalStringBindingAttribute, getLocation, getName, getNamespace, getParentComponent, getPrefixToNamespaceMapping, getStringBindingAttribute, isAnonymous, isTopLevelComponent, setBindings, setParentComponent, visitSubComponents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jbind.xml.core.content.IAttrRefOrDecl
hasDefaultType
 
Methods inherited from interface org.jbind.xml.core.content.IDataDesc
checkValueConstraints, createData, createEmptyData, createUncheckedData, getType, isActive, isActive
 
Methods inherited from interface org.jbind.xml.core.bridge.IDefaultTextContentProvider
getDefaultTextContent
 
Methods inherited from interface org.jbind.xml.core.cmp.IComponent
accept, addSubComponent, getBindings, getGlobalRef, getName, getNamespace, getParentComponent, getSymbolspace, isAnonymous, isReference, isTopLevelComponent, setBindings, setParentComponent
 
Methods inherited from interface org.jbind.xml.core.cmp.ISourceInfo
getAnnotation, getPrefixToNamespaceMapping
 
Methods inherited from interface org.jbind.xml.base.IHasLocation
getLocation
 
Methods inherited from interface org.jbind.xml.base.IHasBindingAttributes
getBindingAttribute, getDefaultedLocalBindingAttribute, getDefaultedLocalStringBindingAttribute, getLocalBindingAttribute, getLocalStringBindingAttribute, getStringBindingAttribute
 
Methods inherited from interface org.jbind.xml.core.content.IDataRefOrDecl
addValueConstraints
 

Field Detail

myDefault

protected ISimpleData myDefault

myFixed

protected ISimpleData myFixed
Constructor Detail

AttrRefOrDecl

public AttrRefOrDecl(ISourceInfo aSourceInfo,
                     java.lang.String aNamespace,
                     java.lang.String aName,
                     AttributeOccurence anOccurence)
Method Detail

getOccurence

public AttributeOccurence getOccurence()
Specified by:
getOccurence in interface IAttrRefOrDecl

getDefault

public ISimpleData getDefault()
Description copied from interface: IDataDesc
Gets the default value. If a fixed value is specified then it is also returned as the default value.

Specified by:
getDefault in interface IDataDesc
Returns:
(optional).

getFixed

public ISimpleData getFixed()
Description copied from interface: IDataDesc
Gets the fixed value. If a fixed value is specified then it is also returned as the default value.

Specified by:
getFixed in interface IDataDesc
Returns:
(optional).

validate

public void validate(IConstraintViolations aViolations)
Description copied from interface: IComponent
Validates the component. This method is called as the last step of the component construction.

Specified by:
validate in interface IComponent
Parameters:
aViolations - (required).