de.interactive_instruments.ShapeChange.Model
Class InfoImpl

java.lang.Object
  extended by de.interactive_instruments.ShapeChange.Model.InfoImpl
All Implemented Interfaces:
Info
Direct Known Subclasses:
AssociationInfoImpl, ClassInfoImpl, OperationInfoImpl, PackageInfoImpl, PropertyInfoImpl

public abstract class InfoImpl
extends Object
implements Info


Field Summary
protected  String aliasName
           
protected  String definition
           
protected  String description
           
protected  String documentation
           
 
Constructor Summary
InfoImpl()
           
 
Method Summary
 String aliasName()
          Retrieve the alias, typically a human readable name
 String definition()
          Retrieve the part of a documentation of an information item that is considered a definition
 String description()
          Retrieve the part of a documentation of an information item that is considered an informative description
 String documentation()
           
 String encodingRule(String platform)
          Return the encoding rule relevant on the element, given the platform
 boolean matches(String rule)
           
 void postprocessAfterLoadingAndValidate()
          1.
 boolean stereotype(String stereotype)
          Test whether the element carries a certain stereotype
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.interactive_instruments.ShapeChange.Model.Info
fullName, id, model, name, options, result, stereotypes, taggedValue, taggedValues, taggedValues
 

Field Detail

documentation

protected String documentation

aliasName

protected String aliasName

definition

protected String definition

description

protected String description
Constructor Detail

InfoImpl

public InfoImpl()
Method Detail

aliasName

public String aliasName()
Retrieve the alias, typically a human readable name

Specified by:
aliasName in interface Info
Returns:
the human readable name or an empty string if none exists

documentation

public String documentation()
Specified by:
documentation in interface Info

encodingRule

public String encodingRule(String platform)
Return the encoding rule relevant on the element, given the platform

Specified by:
encodingRule in interface Info
Returns:
the encoding rule relevant on the element

matches

public boolean matches(String rule)
Specified by:
matches in interface Info

postprocessAfterLoadingAndValidate

public void postprocessAfterLoadingAndValidate()
1. Postprocess the model element to execute any actions that require that the complete model has been loaded. 2. Validate the model element against all applicable requirements and recommendations. All rules applicable to all model elements are validated here, the more specific rules are all validated in the subclasses.

Specified by:
postprocessAfterLoadingAndValidate in interface Info

definition

public String definition()
Retrieve the part of a documentation of an information item that is considered a definition

Specified by:
definition in interface Info
Returns:
the definition or an empty string if none exists

description

public String description()
Retrieve the part of a documentation of an information item that is considered an informative description

Specified by:
description in interface Info
Returns:
the description or null if none exists

stereotype

public boolean stereotype(String stereotype)
Description copied from interface: Info
Test whether the element carries a certain stereotype

Specified by:
stereotype in interface Info


Copyright © 2015. All rights reserved.