public abstract class AbstractAttributeContainer extends Object implements AttributeContainer, Hierarchical
AttributeContainer
. Because in our model all
AttributeContainers
are also Hierarchical
we also implement that here
as well.Modifier and Type | Class and Description |
---|---|
static class |
AbstractAttributeContainer.IndexedPluralAttributeImpl |
static class |
AbstractAttributeContainer.PluralAttributeImpl |
static class |
AbstractAttributeContainer.SingularAttributeImpl |
Constructor and Description |
---|
AbstractAttributeContainer(String name,
String className,
Value<Class<?>> classReference,
Hierarchical superType) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isAssociation, isComponent
public AbstractAttributeContainer(String name, String className, Value<Class<?>> classReference, Hierarchical superType)
public String getName()
Type
public String getClassName()
Type
getClassName
in interface Type
public Class<?> getClassReference()
Type
Class
reference for this typegetClassReference
in interface Type
Class
referencepublic Value<Class<?>> getClassReferenceUnresolved()
getClassReferenceUnresolved
in interface Type
public Hierarchical getSuperType()
Hierarchical
getSuperType
in interface Hierarchical
public Set<Attribute> attributes()
AttributeContainer
attributes
in interface AttributeContainer
public String getRoleBaseName()
AttributeContainer
getRoleBaseName
in interface AttributeContainer
public Attribute locateAttribute(String name)
AttributeContainer
locateAttribute
in interface AttributeContainer
name
- The name of the attribute to retrieve.public SingularAttribute locateSingularAttribute(String name)
locateSingularAttribute
in interface AttributeContainer
public SingularAttribute createSingularAttribute(String name)
createSingularAttribute
in interface AttributeContainer
public SingularAttribute createVirtualSingularAttribute(String name)
createVirtualSingularAttribute
in interface AttributeContainer
public SingularAttribute locateComponentAttribute(String name)
locateComponentAttribute
in interface AttributeContainer
public SingularAttribute createComponentAttribute(String name, Component component)
createComponentAttribute
in interface AttributeContainer
public PluralAttribute locatePluralAttribute(String name)
locatePluralAttribute
in interface AttributeContainer
protected PluralAttribute createPluralAttribute(String name, PluralAttributeNature nature)
public PluralAttribute locateBag(String name)
locateBag
in interface AttributeContainer
public PluralAttribute createBag(String name)
createBag
in interface AttributeContainer
public PluralAttribute locateSet(String name)
locateSet
in interface AttributeContainer
public PluralAttribute createSet(String name)
createSet
in interface AttributeContainer
public IndexedPluralAttribute locateList(String name)
locateList
in interface AttributeContainer
public IndexedPluralAttribute createList(String name)
createList
in interface AttributeContainer
public IndexedPluralAttribute locateMap(String name)
locateMap
in interface AttributeContainer
public IndexedPluralAttribute createMap(String name)
createMap
in interface AttributeContainer
protected void addAttribute(Attribute attribute)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.