org.jbind.xml.schema.cmp
Class AttrWildcard

java.lang.Object
  extended byorg.jbind.xml.schema.cmp.Component
      extended byorg.jbind.xml.schema.cmp.AttrDesc
          extended byorg.jbind.xml.schema.cmp.AttrWildcard
All Implemented Interfaces:
IAttrDesc, IAttrWildcard, IComponent, IDataDesc, IDefaultTextContentProvider, IHasBindingAttributes, IHasLocation, IPartWildcard, ISourceInfo

public class AttrWildcard
extends AttrDesc
implements IAttrWildcard


Constructor Summary
AttrWildcard(ISourceInfo aSourceInfo, IWildcard aWildcard)
           
 
Method Summary
 void accept(IComponentVisitor aVisitor)
          Accepts a visitor.
 ISimpleData getDefault()
          Gets the default value.
 ISimpleData getFixed()
          Gets the fixed value.
 IAnyType getType()
          Gets the data type.
 IWildcard getWildcard()
           
 boolean isReference()
          Checks if this component is defined as a reference to another component.
 void setWildcard(IWildcard aWildcard)
           
 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.IDataDesc
checkValueConstraints, createData, createEmptyData, createUncheckedData, isActive, isActive
 
Methods inherited from interface org.jbind.xml.core.bridge.IDefaultTextContentProvider
getDefaultTextContent
 
Methods inherited from interface org.jbind.xml.core.cmp.IComponent
addSubComponent, getBindings, getGlobalRef, getName, getNamespace, getParentComponent, getSymbolspace, isAnonymous, 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
 

Constructor Detail

AttrWildcard

public AttrWildcard(ISourceInfo aSourceInfo,
                    IWildcard aWildcard)
Method Detail

getWildcard

public IWildcard getWildcard()
Specified by:
getWildcard in interface IPartWildcard

setWildcard

public void setWildcard(IWildcard aWildcard)
Specified by:
setWildcard in interface IAttrWildcard

accept

public void accept(IComponentVisitor aVisitor)
            throws XmlException
Description copied from interface: IComponent
Accepts a visitor. The implementation calls the corresponding visitXXXStart and vistXXXEnd methods of the visitor (e.g. visitComplexTypeStart and visitComplexTypeEnd).

Specified by:
accept in interface IComponent
Parameters:
aVisitor - (required).
Throws:
XmlException

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).

getType

public IAnyType getType()
Description copied from interface: IDataDesc
Gets the data type.

Specified by:
getType in interface IDataDesc
Returns:
(required).

isReference

public boolean isReference()
Description copied from interface: IComponent
Checks if this component is defined as a reference to another component.

Specified by:
isReference in interface IComponent
Returns:
Returns true iff this component is a reference to another component.

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).