XCMS Toolkit

schemajic.schema
Class Field

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

public class Field
extends java.lang.Object

Processing of constructed ASN.1 type fields.

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

Constructor Summary
Field(Module module, java.lang.String name, java.lang.String type, java.lang.String tags, Modifier modifier)
          Constructor for Field with parameter.
 
Method Summary
 Modifier getModifier()
          Returns the current modifier.
 Module getModule()
          Returns the current module.
 java.lang.String getName()
          Returns the current name.
 TagList getTags()
          Returns the current tags.
 Type getType()
          Returns the type.
 java.lang.String getTypeName()
          Returns the type name.
 java.lang.String getXMLFormat()
          Returns the current XML markup format.
 boolean isDefault()
          Determines if the curent modifier is the ASN.1 DEFAULT.
 boolean isOptional()
          Determines if the curent modifier is the ASN.1 OPTIONAL.
 void setXMLFormat(java.lang.String format)
          Sets the current XML markup format.
 java.lang.String toString()
          Returns a formatted string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Field

public Field(Module module,
             java.lang.String name,
             java.lang.String type,
             java.lang.String tags,
             Modifier modifier)
Constructor for Field with parameter.

Parameters:
module - an ASN.1 module
name - identifier of an ASN.1 value
type - an ASN.1 type
tags - context specific tags
modifier - an ASN.1 type modifier
Throws:
java.lang.IllegalArgumentException
Method Detail

getModifier

public Modifier getModifier()
Returns the current modifier.

Returns:
Modifier

getName

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

Returns:
String

getModule

public Module getModule()
Returns the current module.


getTags

public TagList getTags()
Returns the current tags.

Returns:
TagList

getType

public Type getType()
Returns the type.

Returns:
TypeReference

getTypeName

public java.lang.String getTypeName()
Returns the type name.


isDefault

public boolean isDefault()
Determines if the curent modifier is the ASN.1 DEFAULT.


isOptional

public boolean isOptional()
Determines if the curent modifier is the ASN.1 OPTIONAL.


getXMLFormat

public java.lang.String getXMLFormat()
Returns the current XML markup format.


setXMLFormat

public void setXMLFormat(java.lang.String format)
Sets the current XML markup format.

Parameters:
format - the XML markup format to be set

toString

public java.lang.String toString()
Returns a formatted string.

Overrides:
toString in class java.lang.Object

XCMS Toolkit


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