Package org.dmd.dms.generated.dmw

Examples of org.dmd.dms.generated.dmw.AttributeDefinitionDMW


     */

//  public void setParentObject(LDAPHierarchicObject p, boolean buildFQN) throws ResultException, DmcValueException {
    @Override
    public void setParentObject(HierarchicObject p, boolean buildFQN) throws ResultException, DmcValueException {
      AttributeDefinitionDMW   naAD     = LDAPClassAUX.getNamingAttribute(this.getConstructionClass());
        DmcAttribute<?>     nameAttr    = core.get(naAD.getDmdID());
       
        if (nameAttr == null){
          ResultException ex = new ResultException();
          ex.addError("Missing value for naming attribute: " + naAD.getName());
          throw(ex);
        }
       
//      DmcObjectNameIF  naAttr = (DmcObjectNameIF) nameAttr.getSV();
       
View Full Code Here


     * @throws DmcValueException
     */
//  public void resetParent(LDAPHierarchicObject newParent) throws ResultException, DmcValueException {
    @Override
    public void resetParent(HierarchicObject newParent) throws ResultException, DmcValueException {
      AttributeDefinitionDMW naAD = LDAPClassAUX.getNamingAttribute(this.getConstructionClass());
        DmcAttribute<?>   nameAttr  = core.get(naAD.getDmdID());
       
        if (nameAttr == null){
          ResultException ex = new ResultException();
          ex.addError("Missing value for naming attribute: " + naAD.getName());
          throw(ex);
        }

//        DmcObjectNameIF  naAttr = (DmcObjectNameIF) nameAttr.getSV();

View Full Code Here

   * Returns the name of this object in the repository.
   * @return The repository ID.
   */
  public String getRepositoryID() throws ResultException {
    if (repositoryID == null){
        AttributeDefinitionDMW naAD = LDAPClassAUX.getNamingAttribute(this.getConstructionClass());
          DmcAttribute<?>   nameAttr  = core.get(naAD.getName().getNameString());
          if (nameAttr == null){
            ResultException ex = new ResultException();
            ex.addError("Missing value for naming attribute: " + naAD.getName());
            throw(ex);
          }

          DmcObjectNameIF  naAttr = (DmcObjectNameIF) nameAttr.getSV();
         
View Full Code Here

TOP

Related Classes of org.dmd.dms.generated.dmw.AttributeDefinitionDMW

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.