XCMS Toolkit

schemajic.schema
Class NamedValue

java.lang.Object
  extended by schemajic.schema.NamedValue

public class NamedValue
extends java.lang.Object

Processing support for named (identified) values of ASN.1 types.

Version:
1.00 - 2006/01/21
Author:
support@phillipgriffin.com

Field Summary
 java.lang.String _name
           
 TypeReference _type
           
 java.lang.String _value
           
 
Constructor Summary
NamedValue(TypeLookup lookup, java.lang.String name, java.lang.String type, java.lang.String value)
          Sets the current ASN.1 value, value name, and value type.
 
Method Summary
 java.lang.String getDeclaration()
          Gets a valid Java type name declaration.
 java.lang.String getInitialization()
          Gets a valid Java initialization statement.
 java.lang.String getJavaName()
          Converts a valid ASN.1 name to a valid Java name.
 java.lang.String getName()
          Returns the current ASN.1 value name.
 Type getType()
          Returns the current ASN.1 type.
 java.lang.String getValue()
          Returns the current ASN.1 named value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_name

public java.lang.String _name

_type

public TypeReference _type

_value

public java.lang.String _value
Constructor Detail

NamedValue

public NamedValue(TypeLookup lookup,
                  java.lang.String name,
                  java.lang.String type,
                  java.lang.String value)
Sets the current ASN.1 value, value name, and value type.

Parameters:
lookup - type reference look up
name - becomes the current value name
type - becomes the current ASN.1 type
value - becomes the current named value
Method Detail

getType

public Type getType()
Returns the current ASN.1 type.


getName

public java.lang.String getName()
Returns the current ASN.1 value name.


getValue

public java.lang.String getValue()
Returns the current ASN.1 named value.


getJavaName

public java.lang.String getJavaName()
Converts a valid ASN.1 name to a valid Java name.

Returns:
the name in uppercase with hyphens converted to Java valid underscore characters

getDeclaration

public java.lang.String getDeclaration()
Gets a valid Java type name declaration.

Returns:
a valid Java type declaration

getInitialization

public java.lang.String getInitialization()
Gets a valid Java initialization statement.

Returns:
a valid new Java type with initization value

XCMS Toolkit


Copyright © 2005-2006 GRIFFIN Consulting. All Rights Reserved.