org.jvyaml
Class BaseConstructorImpl

java.lang.Object
  extended by org.jvyaml.BaseConstructorImpl
All Implemented Interfaces:
Constructor
Direct Known Subclasses:
SafeConstructorImpl

public class BaseConstructorImpl
extends java.lang.Object
implements Constructor


Nested Class Summary
static class BaseConstructorImpl.YamlMultiAdapter
           
 
Nested classes/interfaces inherited from interface org.jvyaml.Constructor
Constructor.YamlConstructor, Constructor.YamlMultiConstructor
 
Field Summary
static Constructor.YamlConstructor CONSTRUCT_MAPPING
           
static Constructor.YamlConstructor CONSTRUCT_PRIMITIVE
           
static Constructor.YamlConstructor CONSTRUCT_PRIVATE
           
static Constructor.YamlConstructor CONSTRUCT_SCALAR
           
static Constructor.YamlConstructor CONSTRUCT_SEQUENCE
           
 
Constructor Summary
BaseConstructorImpl(Composer composer)
           
 
Method Summary
static void addConstructor(java.lang.String tag, Constructor.YamlConstructor ctor)
           
static void addMultiConstructor(java.lang.String tagPrefix, Constructor.YamlMultiConstructor ctor)
           
 boolean checkData()
           
 java.lang.Object constructDocument(Node node)
           
 java.lang.Object constructMapping(Node node)
           
 java.lang.Object constructObject(Node node)
           
 java.lang.Object constructPairs(Node node)
           
 java.lang.Object constructPrimitive(Node node)
           
 java.lang.Object constructPrivateType(Node node)
           
 java.lang.Object constructScalar(Node node)
           
 java.lang.Object constructSequence(Node node)
           
 java.util.Iterator eachDocument()
           
 java.lang.Object getData()
           
 Constructor.YamlConstructor getYamlConstructor(java.lang.Object key)
           
 Constructor.YamlMultiConstructor getYamlMultiConstructor(java.lang.Object key)
           
 java.util.regex.Pattern getYamlMultiRegexp(java.lang.Object key)
           
 java.util.Set getYamlMultiRegexps()
           
 java.util.Iterator iterator()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONSTRUCT_PRIMITIVE

public static final Constructor.YamlConstructor CONSTRUCT_PRIMITIVE

CONSTRUCT_SCALAR

public static final Constructor.YamlConstructor CONSTRUCT_SCALAR

CONSTRUCT_PRIVATE

public static final Constructor.YamlConstructor CONSTRUCT_PRIVATE

CONSTRUCT_SEQUENCE

public static final Constructor.YamlConstructor CONSTRUCT_SEQUENCE

CONSTRUCT_MAPPING

public static final Constructor.YamlConstructor CONSTRUCT_MAPPING
Constructor Detail

BaseConstructorImpl

public BaseConstructorImpl(Composer composer)
Method Detail

getYamlConstructor

public Constructor.YamlConstructor getYamlConstructor(java.lang.Object key)

getYamlMultiConstructor

public Constructor.YamlMultiConstructor getYamlMultiConstructor(java.lang.Object key)

getYamlMultiRegexp

public java.util.regex.Pattern getYamlMultiRegexp(java.lang.Object key)

getYamlMultiRegexps

public java.util.Set getYamlMultiRegexps()

addConstructor

public static void addConstructor(java.lang.String tag,
                                  Constructor.YamlConstructor ctor)

addMultiConstructor

public static void addMultiConstructor(java.lang.String tagPrefix,
                                       Constructor.YamlMultiConstructor ctor)

checkData

public boolean checkData()
Specified by:
checkData in interface Constructor

getData

public java.lang.Object getData()
Specified by:
getData in interface Constructor

eachDocument

public java.util.Iterator eachDocument()
Specified by:
eachDocument in interface Constructor

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface Constructor

constructDocument

public java.lang.Object constructDocument(Node node)
Specified by:
constructDocument in interface Constructor

constructObject

public java.lang.Object constructObject(Node node)
Specified by:
constructObject in interface Constructor

constructPrimitive

public java.lang.Object constructPrimitive(Node node)
Specified by:
constructPrimitive in interface Constructor

constructScalar

public java.lang.Object constructScalar(Node node)
Specified by:
constructScalar in interface Constructor

constructPrivateType

public java.lang.Object constructPrivateType(Node node)
Specified by:
constructPrivateType in interface Constructor

constructSequence

public java.lang.Object constructSequence(Node node)
Specified by:
constructSequence in interface Constructor

constructMapping

public java.lang.Object constructMapping(Node node)
Specified by:
constructMapping in interface Constructor

constructPairs

public java.lang.Object constructPairs(Node node)
Specified by:
constructPairs in interface Constructor

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception