org.omg.model1.jdo2
Class Attribute

java.lang.Object
  extended by org.oasisopen.jdo2.Identifiable
      extended by org.w3c.jdo2.AbstractObject
          extended by org.omg.model1.jdo2.Element
              extended by org.omg.model1.jdo2.Attribute
All Implemented Interfaces:
Serializable, Attribute, Element, Feature, StructuralFeature, TypedElement, BasicObject, ContextCapable, ExtentCapable, ViewCapable

public class Attribute
extends Element
implements Attribute

Class Attribute

See Also:
Serialized Form

Nested Class Summary
static class Attribute.Slice
          Slice object hold the Attribute's multivalued attributes
 
Nested classes/interfaces inherited from class org.omg.model1.jdo2.Element
Element.Identity
 
Nested classes/interfaces inherited from class org.w3c.jdo2.AbstractObject
org.w3c.jdo2.AbstractObject.EmbeddedList<E>, org.w3c.jdo2.AbstractObject.EmbeddedSet<E>
 
Nested classes/interfaces inherited from interface org.omg.model1.cci2.Element
Element.Identity
 
Field Summary
static List<String> CLASS
          Define the model class org::omg::model1::Attribute
 
Fields inherited from class org.omg.model1.jdo2.Element
BASE_CLASS
 
Constructor Summary
Attribute()
           
 
Method Summary
 int getMaxLength()
          Retrieves the value for the attribute maxLength.
 String getMultiplicity()
          Retrieves the value for the attribute multiplicity.
 String getScope()
          Retrieves the value for the attribute scope.
 Classifier getType()
          Retrieves the value for the reference type.
 String getVisibility()
          Retrieves the value for the attribute visibility.
 boolean isChangeable()
          Retrieves the value for the attribute isChangeable.
 boolean isDerived()
          Retrieves the value for the attribute isDerived.
static Element.Identity newIdentity(Segment.Identity segment, boolean qualifiedNameIsPersistent, String qualifiedName)
           
protected  org.w3c.jdo2.AbstractObject.Slice newSlice(int index)
           
protected  List<String> openmdxjdoGetClass()
          Retrieve the model class
protected  int openmdxjdoGetSize(int field)
           
protected  void openmdxjdoSetSize(int field, int size)
           
static Element.Identity openmdxjdoToIdentity(ObjectId objectId)
           
 void setChangeable(boolean isChangeable)
          Sets a new value for the attribute isChangeable.
 void setDerived(boolean isDerived)
          Sets a new value for the attribute isDerived.
 void setMaxLength(int maxLength)
          Sets a new value for the attribute maxLength.
 void setMultiplicity(String multiplicity)
          Sets a new value for the attribute multiplicity.
 void setScope(String scope)
          Sets a new value for the attribute scope.
 void setType(Classifier type)
          Sets a new value for the reference type.
 void setVisibility(String visibility)
          Sets a new value for the attribute visibility.
 
Methods inherited from class org.omg.model1.jdo2.Element
addToSegment, addToSegment, getAnnotation, getContainer, getCreatedAt, getCreatedBy, getIdentity, getModifiedAt, getModifiedBy, getName, getQualifiedName, getSegment, getStereotype, getView, getView, openmdxjdoGetObjectId, openmdxjdoGetObjectsByParent, openmdxjdoGetSlices, setAnnotation, setContainer, setStereotype
 
Methods inherited from class org.w3c.jdo2.AbstractObject
openmdxjdoClassName, openmdxjdoGetIdentityBuilder, openmdxjdoGetList, openmdxjdoGetObjectsByParent, openmdxjdoGetSet, openmdxjdoGetSparseArray, openmdxjdoNewSlice, openmdxjdoSetArray, openmdxjdoSetCollection, openmdxjdoToArray, openmdxjdoToArray, openmdxjdoValidateElement
 
Methods inherited from class org.oasisopen.jdo2.Identifiable
openmdxjdoGetObject, openmdxjdoGetObjectById, openmdxjdoGetObjectId, openmdxjdoGetObjectSet, openmdxjdoNewObjectId, openmdxjdoNewObjectId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.omg.model1.cci2.Element
getAnnotation, getContainer, getName, getQualifiedName, getSegment, getStereotype, setAnnotation, setContainer, setStereotype
 
Methods inherited from interface org.openmdx.base.cci2.BasicObject
getCreatedAt, getCreatedBy, getModifiedAt, getModifiedBy
 
Methods inherited from interface org.openmdx.base.cci2.ExtentCapable
getIdentity
 
Methods inherited from interface org.openmdx.compatibility.view1.cci2.ViewCapable
getView, getView
 

Field Detail

CLASS

public static final List<String> CLASS
Define the model class org::omg::model1::Attribute

Constructor Detail

Attribute

public Attribute()
Method Detail

getScope

public String getScope()
Retrieves the value for the attribute scope.

Specified by:
getScope in interface Feature
Returns:
The non-null value for attribute scope.

setScope

public void setScope(String scope)
Sets a new value for the attribute scope.

Specified by:
setScope in interface Feature
Parameters:
scope - The non-null new value for attribute scope.

isChangeable

public boolean isChangeable()
Retrieves the value for the attribute isChangeable.

Specified by:
isChangeable in interface StructuralFeature
Returns:
The non-null value for attribute isChangeable.

setChangeable

public void setChangeable(boolean isChangeable)
Sets a new value for the attribute isChangeable.

Specified by:
setChangeable in interface StructuralFeature
Parameters:
isChangeable - The non-null new value for attribute isChangeable.

isDerived

public boolean isDerived()
Retrieves the value for the attribute isDerived.

Specified by:
isDerived in interface Attribute
Returns:
The non-null value for attribute isDerived.

setDerived

public void setDerived(boolean isDerived)
Sets a new value for the attribute isDerived.

Specified by:
setDerived in interface Attribute
Parameters:
isDerived - The non-null new value for attribute isDerived.

getVisibility

public String getVisibility()
Retrieves the value for the attribute visibility.

Specified by:
getVisibility in interface Feature
Returns:
The non-null value for attribute visibility.

setVisibility

public void setVisibility(String visibility)
Sets a new value for the attribute visibility.

Specified by:
setVisibility in interface Feature
Parameters:
visibility - The non-null new value for attribute visibility.

getMultiplicity

public String getMultiplicity()
Retrieves the value for the attribute multiplicity.

Specified by:
getMultiplicity in interface StructuralFeature
Returns:
The non-null value for attribute multiplicity.

setMultiplicity

public void setMultiplicity(String multiplicity)
Sets a new value for the attribute multiplicity.

Specified by:
setMultiplicity in interface StructuralFeature
Parameters:
multiplicity - The non-null new value for attribute multiplicity.

getType

public Classifier getType()
Retrieves the value for the reference type.

Specified by:
getType in interface TypedElement
Returns:
The non-null value for this reference.

setType

public void setType(Classifier type)
Sets a new value for the reference type.

Specified by:
setType in interface TypedElement
Parameters:
type - The non-null new value for this reference.

getMaxLength

public int getMaxLength()
Retrieves the value for the attribute maxLength.

Specified by:
getMaxLength in interface Attribute
Returns:
The non-null value for attribute maxLength.

setMaxLength

public void setMaxLength(int maxLength)
Sets a new value for the attribute maxLength.

Specified by:
setMaxLength in interface Attribute
Parameters:
maxLength - The non-null new value for attribute maxLength.

openmdxjdoGetSize

protected int openmdxjdoGetSize(int field)
Overrides:
openmdxjdoGetSize in class Element

openmdxjdoSetSize

protected void openmdxjdoSetSize(int field,
                                 int size)
Overrides:
openmdxjdoSetSize in class Element

newSlice

protected org.w3c.jdo2.AbstractObject.Slice newSlice(int index)
Overrides:
newSlice in class Element

openmdxjdoGetClass

protected List<String> openmdxjdoGetClass()
Retrieve the model class

Overrides:
openmdxjdoGetClass in class Element
Returns:
the model class
See Also:
Attribute.CLASS

newIdentity

public static Element.Identity newIdentity(Segment.Identity segment,
                                           boolean qualifiedNameIsPersistent,
                                           String qualifiedName)

openmdxjdoToIdentity

public static Element.Identity openmdxjdoToIdentity(ObjectId objectId)


This software is published under the BSD license. Copyright © 2003-2008, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.