kr.co.hit.live.profile.visitor
Class ValueObjectVisitor
java.lang.Object
kr.co.hit.live.profile.visitor.ValueObjectVisitor
- All Implemented Interfaces:
- ProfileNodeVisitor
public class ValueObjectVisitor
- extends Object
- implements ProfileNodeVisitor
ProfileNode의 탐색결과를 주어진 ValueObject 객체에 담는 ProfileNodeVisitor의 구현 클래스이다.
ValueObject에 담기는 내용은 다음과 같다.
- depth : node의 깊이
- size : 하위 노드를 포함한 전체 크기 (bytes)
- contents : 노드의 profile 내용
- Since:
- 4.0
- Author:
- 김형도
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValueObjectVisitor
public ValueObjectVisitor(ValueObject vo,
int maxDepth)
- 생성자이다. ValueObject 객체를 전달한다.
- Parameters:
vo - 로그 출력용 ValueObject 객체maxDepth - 출력 대상이 되는 객체의 최대 깊이
beforeVisit
public void beforeVisit(ProfileNode node)
- Specified by:
beforeVisit in interface ProfileNodeVisitor
afterVisit
public void afterVisit(ProfileNode node)
- Specified by:
afterVisit in interface ProfileNodeVisitor
Copyright © 2014. All Rights Reserved.