Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.hivemind.schema.impl
Class ElementModelImpl  view ElementModelImpl download ElementModelImpl.java

java.lang.Object
  extended byorg.apache.hivemind.impl.BaseLocatable
      extended byorg.apache.hivemind.parse.BaseAnnotationHolder
          extended byorg.apache.hivemind.schema.impl.SchemaImpl
              extended byorg.apache.hivemind.schema.impl.ElementModelImpl
All Implemented Interfaces:
org.apache.hivemind.parse.AnnotationHolder, org.apache.hivemind.schema.ElementModel, org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, org.apache.hivemind.schema.Schema

public class ElementModelImpl
extends SchemaImpl
implements org.apache.hivemind.schema.ElementModel

Implementation of org.apache.hivemind.schema.ElementModel.


Field Summary
private  java.util.List _attributeModels
           
private  java.lang.String _contentTranslator
           
private  java.lang.String _elementName
           
private  java.lang.String _keyAttribute
           
private  java.util.List _rules
           
private  java.util.List _shareableAttributeModels
           
private  java.util.List _shareableRules
           
 
Fields inherited from class org.apache.hivemind.schema.impl.SchemaImpl
 
Fields inherited from class org.apache.hivemind.parse.BaseAnnotationHolder
 
Fields inherited from class org.apache.hivemind.impl.BaseLocatable
 
Constructor Summary
ElementModelImpl()
           
 
Method Summary
 void addAttributeModel(org.apache.hivemind.schema.AttributeModel attributeModel)
           
 void addRule(org.apache.hivemind.schema.Rule rule)
           
 org.apache.hivemind.schema.AttributeModel getAttributeModel(java.lang.String name)
           
 java.util.List getAttributeModels()
          Returns a List of org.apache.hivemind.schema.AttributeModels.
 java.lang.String getContentTranslator()
          Returns the translator used for character content within the body of the element; may return null.
 java.lang.String getElementName()
          Returns the name of the element.
 java.lang.String getKeyAttribute()
          Returns the name of the attribute whose value can be used as a key for an instance of an Element with this ElementModel.
 java.util.List getRules()
          Returns a List of org.apache.hivemind.schema.Rule.
 void setContentTranslator(java.lang.String string)
           
 void setElementName(java.lang.String string)
           
 void setKeyAttribute(java.lang.String keyAttribute)
           
 
Methods inherited from class org.apache.hivemind.schema.impl.SchemaImpl
addElementModel, canInstancesBeKeyed, getDefiningModule, getElementModel, getId, getModuleId, getVisibility, setId, setModule, setVisibility, validateKeyAttributes, visibleToModule
 
Methods inherited from class org.apache.hivemind.parse.BaseAnnotationHolder
getAnnotation, setAnnotation
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hivemind.schema.ElementModel
getElementModel
 
Methods inherited from interface org.apache.hivemind.parse.AnnotationHolder
getAnnotation, setAnnotation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Field Detail

_elementName

private java.lang.String _elementName

_attributeModels

private java.util.List _attributeModels

_shareableAttributeModels

private java.util.List _shareableAttributeModels

_keyAttribute

private java.lang.String _keyAttribute

_rules

private java.util.List _rules

_shareableRules

private java.util.List _shareableRules

_contentTranslator

private java.lang.String _contentTranslator
Constructor Detail

ElementModelImpl

public ElementModelImpl()
Method Detail

getElementName

public java.lang.String getElementName()
Description copied from interface: org.apache.hivemind.schema.ElementModel
Returns the name of the element.

Specified by:
getElementName in interface org.apache.hivemind.schema.ElementModel

setElementName

public void setElementName(java.lang.String string)

addAttributeModel

public void addAttributeModel(org.apache.hivemind.schema.AttributeModel attributeModel)

getAttributeModels

public java.util.List getAttributeModels()
Description copied from interface: org.apache.hivemind.schema.ElementModel
Returns a List of org.apache.hivemind.schema.AttributeModels. The List is unmodifiable and won't be null, but may be empty.

Specified by:
getAttributeModels in interface org.apache.hivemind.schema.ElementModel

getAttributeModel

public org.apache.hivemind.schema.AttributeModel getAttributeModel(java.lang.String name)
Specified by:
getAttributeModel in interface org.apache.hivemind.schema.ElementModel

setKeyAttribute

public void setKeyAttribute(java.lang.String keyAttribute)

getKeyAttribute

public java.lang.String getKeyAttribute()
Description copied from interface: org.apache.hivemind.schema.ElementModel
Returns the name of the attribute whose value can be used as a key for an instance of an Element with this ElementModel. This key is usually used to index a configuration contribution inside a Map.

Specified by:
getKeyAttribute in interface org.apache.hivemind.schema.ElementModel

addRule

public void addRule(org.apache.hivemind.schema.Rule rule)

getRules

public java.util.List getRules()
Description copied from interface: org.apache.hivemind.schema.ElementModel
Returns a List of org.apache.hivemind.schema.Rule. The List is unmodifiable and won't but null, but could be empty.

Specified by:
getRules in interface org.apache.hivemind.schema.ElementModel

getContentTranslator

public java.lang.String getContentTranslator()
Description copied from interface: org.apache.hivemind.schema.ElementModel
Returns the translator used for character content within the body of the element; may return null.

Specified by:
getContentTranslator in interface org.apache.hivemind.schema.ElementModel

setContentTranslator

public void setContentTranslator(java.lang.String string)