us.mitre.ShapeChange.Model.GSIP
Class PackageInfoGSIP

java.lang.Object
  extended by de.interactive_instruments.ShapeChange.Model.InfoImpl
      extended by de.interactive_instruments.ShapeChange.Model.PackageInfoImpl
          extended by us.mitre.ShapeChange.Model.GSIP.PackageInfoGSIP
All Implemented Interfaces:
Info, PackageInfo

public class PackageInfoGSIP
extends PackageInfoImpl
implements PackageInfo


Field Summary
protected  HashSet<ClassInfoGSIP> childCI
          Set of child classes
protected  HashSet<PackageInfoGSIP> childPI
          Set of child package objects
protected  GSIPDocument document
          The Model object
protected  String gsipName
          Name of the Package
protected  String gsipPackageId
          TODO What should the Package ID be?
protected  boolean isSchema
           
protected  PackageInfoGSIP parentPI
          The parent package object
protected  PackageInfoGSIP schema
          The schema that this package ultimately belongs to
protected  String stereotype
          For now we're assuming that each package has only one stereotype for GSIP.
protected  HashSet<String> supplierIds
           
protected  HashMap<String,String> taggedValuesCache
          Cache map for tagged values
 
Fields inherited from class de.interactive_instruments.ShapeChange.Model.PackageInfoImpl
diagrams
 
Fields inherited from class de.interactive_instruments.ShapeChange.Model.InfoImpl
aliasName, definition, description, documentation
 
Constructor Summary
PackageInfoGSIP(GSIPDocument doc, PackageInfoGSIP ppi, HashMap<String,Object> properties)
           
PackageInfoGSIP(GSIPDocument doc, PackageInfoGSIP ppi, HashMap<String,Object> properties, boolean isSchema)
           
 
Method Summary
 HashSet<PackageInfo> containedPackages()
           
 String id()
           
 Model model()
           
 String name()
           
 Options options()
           
 PackageInfo owner()
           
 ShapeChangeResult result()
           
 PackageInfo rootPackage()
           
 Set<String> stereotypes()
          Return the normalized stereotype of the package.
 HashSet<String> supplierIds()
           
 String taggedValue(String tag)
          Return the tagged value for the tag given or null if missing.
 HashMap<String,String> taggedValues()
           
 HashMap<String,String> taggedValues(String tagList)
          Return all the tagged values listed in the input string.
 
Methods inherited from class de.interactive_instruments.ShapeChange.Model.PackageInfoImpl
encodingRule, fullName, getDiagrams, gmlProfileSchema, isAppSchema, isSchema, mapPackageNameToFilename, postprocessAfterLoadingAndValidate, schemaId, setDiagrams, targetNamespace, version, xmlns, xsdDocument
 
Methods inherited from class de.interactive_instruments.ShapeChange.Model.InfoImpl
aliasName, definition, description, documentation, matches, 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.PackageInfo
getDiagrams, gmlProfileSchema, isAppSchema, isSchema, schemaId, setDiagrams, targetNamespace, version, xmlns, xsdDocument
 
Methods inherited from interface de.interactive_instruments.ShapeChange.Model.Info
aliasName, definition, description, documentation, encodingRule, fullName, matches, postprocessAfterLoadingAndValidate, stereotype
 

Field Detail

document

protected GSIPDocument document
The Model object


parentPI

protected PackageInfoGSIP parentPI
The parent package object


schema

protected PackageInfoGSIP schema
The schema that this package ultimately belongs to


childPI

protected HashSet<PackageInfoGSIP> childPI
Set of child package objects


childCI

protected HashSet<ClassInfoGSIP> childCI
Set of child classes


gsipName

protected String gsipName
Name of the Package


gsipPackageId

protected String gsipPackageId
TODO What should the Package ID be?


taggedValuesCache

protected HashMap<String,String> taggedValuesCache
Cache map for tagged values


stereotype

protected String stereotype
For now we're assuming that each package has only one stereotype for GSIP.


isSchema

protected boolean isSchema

supplierIds

protected HashSet<String> supplierIds
Constructor Detail

PackageInfoGSIP

public PackageInfoGSIP(GSIPDocument doc,
                       PackageInfoGSIP ppi,
                       HashMap<String,Object> properties)

PackageInfoGSIP

public PackageInfoGSIP(GSIPDocument doc,
                       PackageInfoGSIP ppi,
                       HashMap<String,Object> properties,
                       boolean isSchema)
Method Detail

containedPackages

public HashSet<PackageInfo> containedPackages()
Specified by:
containedPackages in interface PackageInfo
Returns:
a set of directly contained (child) packages (shallow copy, NOT deep copy). One or more of these packages may belong to a different schema / targetNamespace.

owner

public PackageInfo owner()
Specified by:
owner in interface PackageInfo

rootPackage

public PackageInfo rootPackage()
Specified by:
rootPackage in interface PackageInfo

supplierIds

public HashSet<String> supplierIds()
Specified by:
supplierIds in interface PackageInfo

id

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

model

public Model model()
Specified by:
model in interface Info

name

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

options

public Options options()
Specified by:
options in interface Info

result

public ShapeChangeResult result()
Specified by:
result in interface Info

taggedValue

public String taggedValue(String tag)
Return the tagged value for the tag given or null if missing.

Specified by:
taggedValue in interface Info
Parameters:
tag - name of the tagged value to look up
Returns:
the tagged value for the tag given or null if the tagged value is missing.

taggedValues

public HashMap<String,String> taggedValues(String tagList)
Return all the tagged values listed in the input string. Tags are assumed to be separated by commas.

Specified by:
taggedValues in interface Info

taggedValues

public HashMap<String,String> taggedValues()
Specified by:
taggedValues in interface Info
Returns:
a map with the tagged values defined for this object (key: tagged value name, value: the value of the tagged value); can be an empty map but not null

stereotypes

public Set<String> stereotypes()
Return the normalized stereotype of the package. NOTE: GSIP MDB models only allow one stereotype, as distinct from EA-- thus the stereotype handling is a good deal simpler.

Specified by:
stereotypes in interface Info


Copyright © 2015. All rights reserved.